diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-04 17:02:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-04 17:32:19 +0200 |
commit | 04c3cddb1e4bb4bf7bc5f28fe2cd2108e1936250 (patch) | |
tree | 910fac77131b7afcd38ebce43df9d9e926f46a79 /Userland/Games/Snake/main.cpp | |
parent | d136fafde7edb4dceac3d034824d07383b4f5683 (diff) | |
download | serenity-04c3cddb1e4bb4bf7bc5f28fe2cd2108e1936250.zip |
Snake: Spruce up the GUI a tiny bit
Give the game window a GUI::Frame appearance, and make sure the
menus have Alt shortcuts. :^)
Diffstat (limited to 'Userland/Games/Snake/main.cpp')
-rw-r--r-- | Userland/Games/Snake/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Snake/main.cpp b/Userland/Games/Snake/main.cpp index a4d7d954cb..0b5e873440 100644 --- a/Userland/Games/Snake/main.cpp +++ b/Userland/Games/Snake/main.cpp @@ -54,7 +54,7 @@ int main(int argc, char** argv) window->set_double_buffering_enabled(false); window->set_title("Snake"); - window->resize(320, 320); + window->resize(324, 344); auto& game = window->set_main_widget<SnakeGame>(); @@ -70,7 +70,7 @@ int main(int argc, char** argv) GUI::Application::the()->quit(); })); - auto& help_menu = menubar->add_menu("Help"); + auto& help_menu = menubar->add_menu("&Help"); help_menu.add_action(GUI::CommonActions::make_about_action("Snake", app_icon, window)); window->set_menubar(move(menubar)); |