mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Applications: Add fullscreen for Office category
This commit is contained in:
parent
4aca883d51
commit
8886324cbf
Notes:
sideshowbarker
2024-07-17 02:38:39 +09:00
Author: https://github.com/hughdavenport Commit: https://github.com/SerenityOS/serenity/commit/8886324cbf Pull-request: https://github.com/SerenityOS/serenity/pull/22591 Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 15 additions and 0 deletions
|
@ -109,6 +109,11 @@ ErrorOr<NonnullRefPtr<CalendarWidget>> CalendarWidget::create(GUI::Window* paren
|
|||
view_menu->add_action(*view_month_action);
|
||||
view_menu->add_action(*view_year_action);
|
||||
|
||||
view_menu->add_separator();
|
||||
view_menu->add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
|
||||
parent_window->set_fullscreen(!parent_window->is_fullscreen());
|
||||
}));
|
||||
|
||||
auto help_menu = parent_window->add_menu("&Help"_string);
|
||||
help_menu->add_action(GUI::CommonActions::make_command_palette_action(parent_window));
|
||||
help_menu->add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||
|
|
|
@ -241,6 +241,11 @@ ErrorOr<void> PDFViewerWidget::initialize_menubar(GUI::Window& window)
|
|||
view_menu->add_action(*m_zoom_out_action);
|
||||
view_menu->add_action(*m_reset_zoom_action);
|
||||
|
||||
view_menu->add_separator();
|
||||
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("PDF Viewer"_string, GUI::Icon::default_icon("app-pdf-viewer"sv), &window));
|
||||
|
|
|
@ -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…
Reference in a new issue