mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
WindowServer+LibGUI: Show action icons in the menus when possible
Any GAction that has an icon assigned will now show up with that icon when added to a menu as well. I made the menu items 2px taller to accomodate the icons. I think this turned out quite nice as well :^)
This commit is contained in:
parent
d522a6fe4c
commit
1e604b7984
11 changed files with 61 additions and 11 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
String text() const { return m_text; }
|
||||
GShortcut shortcut() const { return m_shortcut; }
|
||||
const GraphicsBitmap* icon() const { return m_icon.ptr(); }
|
||||
void set_icon(const GraphicsBitmap* icon) { m_icon = icon; }
|
||||
|
||||
Function<void(GAction&)> on_activation;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue