mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
Applications: Add fullscreen for Office category
This commit is contained in:
parent
4aca883d51
commit
8886324cbf
3 changed files with 15 additions and 0 deletions
|
@ -746,6 +746,11 @@ ErrorOr<void> SpreadsheetWidget::initialize_menubar(GUI::Window& window)
|
|||
edit_menu->add_action(*m_paste_action);
|
||||
edit_menu->add_action(*m_insert_emoji_action);
|
||||
|
||||
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(*m_search_action);
|
||||
help_menu->add_action(*m_functions_help_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue