mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
WindowServer: Add ability to show/hide window menubars
This patch adds a toggle item to the window menu that controls window menubar visibility. This is available in all windows with a menu.
This commit is contained in:
parent
ccf84a4709
commit
526b4bbfdb
3 changed files with 25 additions and 4 deletions
|
@ -302,6 +302,8 @@ public:
|
|||
void set_frameless(bool);
|
||||
bool is_frameless() const { return m_frameless; }
|
||||
|
||||
bool should_show_menubar() const { return m_should_show_menubar; }
|
||||
|
||||
int progress() const { return m_progress; }
|
||||
void set_progress(int);
|
||||
|
||||
|
@ -403,8 +405,10 @@ private:
|
|||
MenuItem* m_window_menu_minimize_item { nullptr };
|
||||
MenuItem* m_window_menu_maximize_item { nullptr };
|
||||
MenuItem* m_window_menu_close_item { nullptr };
|
||||
MenuItem* m_window_menu_menubar_visibility_item { nullptr };
|
||||
int m_minimize_animation_step { -1 };
|
||||
int m_progress { -1 };
|
||||
bool m_should_show_menubar { true };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue