mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
2048: Add action icons for New Game and Settings
This commit is contained in:
parent
fe3bd062b7
commit
79cdb5e3c8
Notes:
sideshowbarker
2024-07-19 17:10:56 +09:00
Author: https://github.com/dykatz Commit: https://github.com/SerenityOS/serenity/commit/79cdb5e3c80 Pull-request: https://github.com/SerenityOS/serenity/pull/11781 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto game_menu = TRY(window->try_add_menu("&Game"));
|
||||
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&New Game", { Mod_None, Key_F2 }, [&](auto&) {
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&New Game", { Mod_None, Key_F2 }, TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/reload.png")), [&](auto&) {
|
||||
start_a_new_game();
|
||||
})));
|
||||
|
||||
|
@ -186,7 +186,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
})));
|
||||
|
||||
TRY(game_menu->try_add_separator());
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings...", [&](auto&) {
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings...", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/settings.png")), [&](auto&) {
|
||||
change_settings();
|
||||
})));
|
||||
|
||||
|
|
Loading…
Reference in a new issue