summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)