1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

Applications: Add fullscreen option to Utilities

This commit is contained in:
Hugh Davenport 2024-01-05 10:18:35 +13:00 committed by Andrew Kaster
parent 8886324cbf
commit 7fa0cf194f
6 changed files with 30 additions and 0 deletions

View file

@ -129,6 +129,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
round_menu->action_at(last_rounding_mode.value())->activate();
auto view_menu = window->add_menu("&View"_string);
view_menu->add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
window->set_fullscreen(!window->is_fullscreen());
}));
auto help_menu = window->add_menu("&Help"_string);
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));
help_menu->add_action(GUI::CommonActions::make_help_action([&man_file](auto&) {