mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
WindowServer+LibGUI: Paint exclusive actions as radio buttons in menus
Actions that are checkable and members of a GActionGroup will now be painted with a radio button appearance in menus.
This commit is contained in:
parent
cc8c26c39b
commit
463ed77024
5 changed files with 34 additions and 10 deletions
|
@ -50,6 +50,9 @@ public:
|
|||
|
||||
WSMenu* submenu();
|
||||
|
||||
bool is_exclusive() const { return m_exclusive; }
|
||||
void set_exclusive(bool exclusive) { m_exclusive = exclusive; }
|
||||
|
||||
private:
|
||||
WSMenu& m_menu;
|
||||
Type m_type { None };
|
||||
|
@ -62,4 +65,5 @@ private:
|
|||
Rect m_rect;
|
||||
RefPtr<GraphicsBitmap> m_icon;
|
||||
int m_submenu_id { -1 };
|
||||
bool m_exclusive { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue