mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
DisplaySettings: Arrange buttons in "OK, Cancel, Apply" order
This commit is contained in:
parent
e8a044390e
commit
bf727eb44c
1 changed files with 8 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue