mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:38:13 +00:00
KeyboardSettings: Use typical OK-Cancel-Apply arrangement
This brings KeyboardSettings in line with the other settings applications.
This commit is contained in:
parent
6629af8bed
commit
3be472176d
1 changed files with 7 additions and 7 deletions
|
@ -155,13 +155,6 @@ int main(int argc, char** argv)
|
|||
bottom_widget.layout()->add_spacer();
|
||||
bottom_widget.set_fixed_height(22);
|
||||
|
||||
auto& apply_button = bottom_widget.add<GUI::Button>();
|
||||
apply_button.set_text("Apply");
|
||||
apply_button.set_fixed_width(60);
|
||||
apply_button.on_click = [&](auto) {
|
||||
apply_settings(false);
|
||||
};
|
||||
|
||||
auto& ok_button = bottom_widget.add<GUI::Button>();
|
||||
ok_button.set_text("OK");
|
||||
ok_button.set_fixed_width(60);
|
||||
|
@ -176,6 +169,13 @@ int main(int argc, char** argv)
|
|||
app->quit();
|
||||
};
|
||||
|
||||
auto& apply_button = bottom_widget.add<GUI::Button>();
|
||||
apply_button.set_text("Apply");
|
||||
apply_button.set_fixed_width(60);
|
||||
apply_button.on_click = [&](auto) {
|
||||
apply_settings(false);
|
||||
};
|
||||
|
||||
auto quit_action = GUI::CommonActions::make_quit_action(
|
||||
[&](auto&) {
|
||||
app->quit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue