mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:28:12 +00:00
DevTools: Add fullscreen option
All except SQLStudio, as that causes a crash
This commit is contained in:
parent
eb5e8ac11b
commit
13c66ebf12
6 changed files with 29 additions and 0 deletions
|
@ -210,6 +210,11 @@ ErrorOr<void> MainWidget::initialize_fallibles(GUI::Window& window)
|
|||
GUI::Application::the()->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 go_menu = window.add_menu("&Go"_string);
|
||||
go_menu->add_action(*m_go_back_action);
|
||||
go_menu->add_action(*m_go_forward_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue