diff options
-rw-r--r-- | Userland/Games/GameOfLife/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Games/GameOfLife/main.cpp b/Userland/Games/GameOfLife/main.cpp index 46c92a7ccb..2bd42f02c0 100644 --- a/Userland/Games/GameOfLife/main.cpp +++ b/Userland/Games/GameOfLife/main.cpp @@ -85,27 +85,27 @@ int main(int argc, char** argv) auto paused_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/pause.png"); auto play_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/play.png"); - auto toggle_running_action = GUI::Action::create("Toggle Running", { Mod_None, Key_Return }, *play_icon, [&](GUI::Action&) { + auto toggle_running_action = GUI::Action::create("&Toggle Running", { Mod_None, Key_Return }, *play_icon, [&](GUI::Action&) { board_widget.set_running(!board_widget.is_running()); }); toggle_running_action->set_checkable(true); main_toolbar.add_action(toggle_running_action); - auto run_one_generation_action = GUI::Action::create("Run Next Generation", { Mod_Ctrl, Key_Equal }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [&](const GUI::Action&) { + auto run_one_generation_action = GUI::Action::create("Run &Next Generation", { Mod_Ctrl, Key_Equal }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [&](const GUI::Action&) { statusbar.set_text(click_tip); board_widget.run_generation(); }); main_toolbar.add_action(run_one_generation_action); - auto clear_board_action = GUI::Action::create("Clear board", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/delete.png"), [&](auto&) { + auto clear_board_action = GUI::Action::create("&Clear board", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/delete.png"), [&](auto&) { statusbar.set_text(click_tip); board_widget.clear_cells(); board_widget.update(); }); main_toolbar.add_action(clear_board_action); - auto randomize_cells_action = GUI::Action::create("Randomize board", { Mod_Ctrl, Key_R }, Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"), [&](auto&) { + auto randomize_cells_action = GUI::Action::create("&Randomize board", { Mod_Ctrl, Key_R }, Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"), [&](auto&) { statusbar.set_text(click_tip); board_widget.randomize_cells(); board_widget.update(); @@ -113,7 +113,7 @@ int main(int argc, char** argv) main_toolbar.add_action(randomize_cells_action); auto menubar = GUI::Menubar::construct(); - auto& game_menu = menubar->add_menu("Game"); + auto& game_menu = menubar->add_menu("&Game"); game_menu.add_action(clear_board_action); game_menu.add_action(randomize_cells_action); @@ -125,7 +125,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("GameOfLife", app_icon, window)); window->set_menubar(move(menubar)); |