mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	WindowServer: Control menu title font from menubar
It makes a little more sense for the menubar to control what the font of the menu title is, as opposed to the menu manager. Menumanager now simply uses the font that the menu wants it to use.
This commit is contained in:
		
							parent
							
								
									dc0b091c31
								
							
						
					
					
						commit
						e9687ee50e
					
				
					 6 changed files with 30 additions and 24 deletions
				
			
		|  | @ -56,6 +56,16 @@ Menu::~Menu() | |||
| { | ||||
| } | ||||
| 
 | ||||
| void Menu::set_title_font(const Gfx::Font& font) | ||||
| { | ||||
|     m_title_font = &font; | ||||
| } | ||||
| 
 | ||||
| const Gfx::Font& Menu::title_font() const | ||||
| { | ||||
|     return *m_title_font; | ||||
| } | ||||
| 
 | ||||
| const Gfx::Font& Menu::font() const | ||||
| { | ||||
|     return Gfx::Font::default_font(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth