mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Settings: Add fullscreen option
This commit is contained in:
parent
7fa0cf194f
commit
e6d0239c23
|
@ -97,6 +97,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
app->quit();
|
app->quit();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
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);
|
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_command_palette_action(window));
|
||||||
help_menu->add_action(GUI::CommonActions::make_about_action("Settings"_string, app_icon, window));
|
help_menu->add_action(GUI::CommonActions::make_about_action("Settings"_string, app_icon, window));
|
||||||
|
|
Loading…
Reference in a new issue