mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:27:34 +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
|
@ -41,11 +41,7 @@ public:
|
|||
ClientConnection& client() { return m_client; }
|
||||
const ClientConnection& client() const { return m_client; }
|
||||
int menubar_id() const { return m_menubar_id; }
|
||||
void add_menu(Menu& menu)
|
||||
{
|
||||
menu.set_menubar(this);
|
||||
m_menus.append(&menu);
|
||||
}
|
||||
void add_menu(Menu&);
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_menu(Callback callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue