mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
LibGUI: Use "OK, Cancel" button order in ColorPicker
This commit is contained in:
parent
51ab0e967e
commit
77916f030f
1 changed files with 8 additions and 8 deletions
|
@ -132,6 +132,14 @@ void ColorPicker::build_ui()
|
|||
button_container.layout()->set_spacing(4);
|
||||
button_container.layout()->add_spacer();
|
||||
|
||||
auto& ok_button = button_container.add<Button>();
|
||||
ok_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
ok_button.set_preferred_size(80, 0);
|
||||
ok_button.set_text("OK");
|
||||
ok_button.on_click = [this] {
|
||||
done(ExecOK);
|
||||
};
|
||||
|
||||
auto& cancel_button = button_container.add<Button>();
|
||||
cancel_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
cancel_button.set_preferred_size(80, 0);
|
||||
|
@ -139,14 +147,6 @@ void ColorPicker::build_ui()
|
|||
cancel_button.on_click = [this] {
|
||||
done(ExecCancel);
|
||||
};
|
||||
|
||||
auto& ok_button = button_container.add<Button>();
|
||||
ok_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
ok_button.set_preferred_size(80, 0);
|
||||
ok_button.set_text("Select");
|
||||
ok_button.on_click = [this] {
|
||||
done(ExecOK);
|
||||
};
|
||||
}
|
||||
|
||||
void ColorPicker::build_ui_palette(Widget& root_container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue