diff options
author | Tibor Nagy <xnagytibor@gmail.com> | 2020-08-17 13:20:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 17:39:56 +0200 |
commit | e3d1ea34ff3ab38acff29ea589844fbf55595daf (patch) | |
tree | eab56c467ea336ea54a00b41f6f43848f7de3e22 /Games | |
parent | a27d782dd6d0443604729dfc3511b96968c3ca0c (diff) | |
download | serenity-e3d1ea34ff3ab38acff29ea589844fbf55595daf.zip |
Games: Add missing separators to the application menus
Diffstat (limited to 'Games')
-rw-r--r-- | Games/2048/main.cpp | 1 | ||||
-rw-r--r-- | Games/Chess/main.cpp | 5 | ||||
-rw-r--r-- | Games/Snake/main.cpp | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/Games/2048/main.cpp b/Games/2048/main.cpp index 628270ce28..2d162d0c06 100644 --- a/Games/2048/main.cpp +++ b/Games/2048/main.cpp @@ -78,6 +78,7 @@ int main(int argc, char** argv) app_menu.add_action(GUI::CommonActions::make_undo_action([&](auto&) { game.undo(); })); + app_menu.add_separator(); app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { GUI::Application::the()->quit(); })); diff --git a/Games/Chess/main.cpp b/Games/Chess/main.cpp index 2eb6b811cb..45e52bc0a1 100644 --- a/Games/Chess/main.cpp +++ b/Games/Chess/main.cpp @@ -61,6 +61,7 @@ int main(int argc, char** argv) app_menu.add_action(GUI::Action::create("New game", { Mod_None, Key_F2 }, [&](auto&) { widget.reset(); })); + app_menu.add_separator(); app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { GUI::Application::the()->quit(); })); @@ -104,12 +105,12 @@ int main(int argc, char** argv) action->set_checked(true); board_theme_menu.add_action(*action); } - + auto& help_menu = menubar->add_menu("Help"); help_menu.add_action(GUI::Action::create("About", [&](auto&) { GUI::AboutDialog::show("Chess", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-chess.png"), window); })); - + app->set_menubar(move(menubar)); window->show(); diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp index 31c6fcf94a..e0f0aca8c9 100644 --- a/Games/Snake/main.cpp +++ b/Games/Snake/main.cpp @@ -64,6 +64,7 @@ int main(int argc, char** argv) app_menu.add_action(GUI::Action::create("New game", { Mod_None, Key_F2 }, [&](auto&) { game.reset(); })); + app_menu.add_separator(); app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { GUI::Application::the()->quit(); })); |