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:
Shannon Booth 2020-03-10 20:56:07 +13:00 committed by Andreas Kling
commit e9687ee50e
Notes: sideshowbarker 2024-07-19 08:47:39 +09:00
6 changed files with 30 additions and 24 deletions

View file

@ -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();