1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

DevTools: Add fullscreen option

All except SQLStudio, as that causes a crash
This commit is contained in:
Hugh Davenport 2024-01-05 08:57:23 +13:00 committed by Andrew Kaster
parent eb5e8ac11b
commit 13c66ebf12
6 changed files with 29 additions and 0 deletions

View file

@ -555,6 +555,11 @@ ErrorOr<void> HexEditorWidget::initialize_menubar(GUI::Window& window)
little_endian_mode->set_checked(use_little_endian);
big_endian_mode->set_checked(!use_little_endian);
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_help_action([](auto&) {