1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

Snake: Spruce up the GUI a tiny bit

Give the game window a GUI::Frame appearance, and make sure the
menus have Alt shortcuts. :^)
This commit is contained in:
Andreas Kling 2021-05-04 17:02:36 +02:00
parent d136fafde7
commit 04c3cddb1e
3 changed files with 13 additions and 10 deletions

View file

@ -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));