mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
Mail: Add fullscreen option
This commit is contained in:
parent
4c31049d0c
commit
4aca883d51
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/hughdavenport
Commit: 4aca883d51
Pull-request: https://github.com/SerenityOS/serenity/pull/22591
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
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);
|
||||
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));
|
||||
help_menu->add_action(GUI::CommonActions::make_about_action("Mail"_string, app_icon, window));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue