summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-29 19:29:09 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-29 19:29:09 +0200
commit77916f030f588ce1ec33b455bf85362b9f21eaf4 (patch)
treede765259dfa0585d51df5884d99c4d3c18bd6bb6 /Libraries/LibGUI
parent51ab0e967e03d3f138fa93e7b3dd45de910c7a44 (diff)
downloadserenity-77916f030f588ce1ec33b455bf85362b9f21eaf4.zip
LibGUI: Use "OK, Cancel" button order in ColorPicker
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/ColorPicker.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Libraries/LibGUI/ColorPicker.cpp b/Libraries/LibGUI/ColorPicker.cpp
index 4c7e47d81e..c4fbea8c74 100644
--- a/Libraries/LibGUI/ColorPicker.cpp
+++ b/Libraries/LibGUI/ColorPicker.cpp
@@ -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)