mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibGUI: Register a whole bunch of properties in various widgets
This commit is contained in:
parent
20b74e4ede
commit
90aeacbb58
Notes:
sideshowbarker
2024-07-19 00:23:50 +09:00
Author: https://github.com/alimpfard
Commit: 90aeacbb58
Pull-request: https://github.com/SerenityOS/serenity/pull/4652
Reviewed-by: https://github.com/awesomekling
14 changed files with 65 additions and 7 deletions
|
@ -41,6 +41,11 @@ Button::Button(String text)
|
|||
set_min_width(32);
|
||||
set_fixed_height(22);
|
||||
set_focus_policy(GUI::FocusPolicy::StrongFocus);
|
||||
|
||||
REGISTER_ENUM_PROPERTY(
|
||||
"button_style", button_style, set_button_style, Gfx::ButtonStyle,
|
||||
{ Gfx::ButtonStyle::Normal, "Normal" },
|
||||
{ Gfx::ButtonStyle::CoolBar, "CoolBar" });
|
||||
}
|
||||
|
||||
Button::~Button()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue