summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-29 16:24:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-29 16:25:02 +0200
commitbf727eb44cfde732886a434e5c4587702c5fec28 (patch)
tree9c99cd9c017b91e46124cc274c39d340dd8e083b /Applications
parente8a044390ef8cfe4ca73f2b5c293e4b0bd93f8dd (diff)
downloadserenity-bf727eb44cfde732886a434e5c4587702c5fec28.zip
DisplaySettings: Arrange buttons in "OK, Cancel, Apply" order
Diffstat (limited to 'Applications')
-rw-r--r--Applications/DisplaySettings/DisplaySettings.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Applications/DisplaySettings/DisplaySettings.cpp b/Applications/DisplaySettings/DisplaySettings.cpp
index 74967fca2b..137cb5aeb3 100644
--- a/Applications/DisplaySettings/DisplaySettings.cpp
+++ b/Applications/DisplaySettings/DisplaySettings.cpp
@@ -236,14 +236,6 @@ void DisplaySettingsWidget::create_frame()
bottom_widget.set_size_policy(Orientation::Vertical, GUI::SizePolicy::Fixed);
bottom_widget.set_preferred_size(1, 22);
- auto& apply_button = bottom_widget.add<GUI::Button>();
- apply_button.set_text("Apply");
- apply_button.set_size_policy(Orientation::Horizontal, GUI::SizePolicy::Fixed);
- apply_button.set_preferred_size(60, 22);
- apply_button.on_click = [this] {
- send_settings_to_window_server();
- };
-
auto& ok_button = bottom_widget.add<GUI::Button>();
ok_button.set_text("OK");
ok_button.set_size_policy(Orientation::Horizontal, GUI::SizePolicy::Fixed);
@@ -260,6 +252,14 @@ void DisplaySettingsWidget::create_frame()
cancel_button.on_click = [] {
GUI::Application::the().quit();
};
+
+ auto& apply_button = bottom_widget.add<GUI::Button>();
+ apply_button.set_text("Apply");
+ apply_button.set_size_policy(Orientation::Horizontal, GUI::SizePolicy::Fixed);
+ apply_button.set_preferred_size(60, 22);
+ apply_button.on_click = [this] {
+ send_settings_to_window_server();
+ };
}
void DisplaySettingsWidget::load_current_settings()