mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibGUI+WindowServer: Add support for enabled/disabled actions.
The enabled state of a GAction now propagates both to any toolbar buttons and any menu items linked to the action. Toolbar buttons are painted in a grayed out style when disabled. Menu items are gray when disabled. :^)
This commit is contained in:
parent
32e5c8c689
commit
054c982181
20 changed files with 308 additions and 53 deletions
|
@ -82,6 +82,7 @@ struct WSAPI_ServerMessage {
|
|||
DidSetApplicationMenubar,
|
||||
DidAddMenuItem,
|
||||
DidAddMenuSeparator,
|
||||
DidUpdateMenuItem,
|
||||
DidCreateWindow,
|
||||
DidDestroyWindow,
|
||||
DidGetWindowTitle,
|
||||
|
@ -171,6 +172,7 @@ struct WSAPI_ClientMessage {
|
|||
SetApplicationMenubar,
|
||||
AddMenuItem,
|
||||
AddMenuSeparator,
|
||||
UpdateMenuItem,
|
||||
CreateWindow,
|
||||
DestroyWindow,
|
||||
SetWindowTitle,
|
||||
|
@ -211,6 +213,7 @@ struct WSAPI_ClientMessage {
|
|||
unsigned identifier;
|
||||
char shortcut_text[32];
|
||||
int shortcut_text_length;
|
||||
bool enabled;
|
||||
} menu;
|
||||
struct {
|
||||
WSAPI_Rect rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue