mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibGUI: Use "OK, Cancel" button order in ColorPicker
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user