mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
SQLStudio: Add fullscreen option
This commit is contained in:
parent
e6d0239c23
commit
5f56c946c2
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/hughdavenport Commit: https://github.com/SerenityOS/serenity/commit/5f56c946c2 Pull-request: https://github.com/SerenityOS/serenity/pull/22591 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 5 additions and 0 deletions
|
@ -322,6 +322,11 @@ ErrorOr<void> MainWidget::initialize_menu(GUI::Window* window)
|
|||
edit_menu->add_separator();
|
||||
edit_menu->add_action(*m_run_script_action);
|
||||
|
||||
auto view_menu = window->add_menu("&View"_string);
|
||||
view_menu->add_action(GUI::CommonActions::make_fullscreen_action([window](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([](auto&) {
|
||||
|
|
Loading…
Reference in a new issue