1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

PixelPaint: Add fullscreen option

This commit is contained in:
Hugh Davenport 2024-01-05 10:02:32 +13:00 committed by Andrew Kaster
parent 64edf6913f
commit 4c31049d0c

View file

@ -605,6 +605,11 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
scopes_menu->add_action(histogram_action);
scopes_menu->add_action(vectorscope_action);
m_view_menu->add_separator();
m_view_menu->add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
window.set_fullscreen(!window.is_fullscreen());
}));
m_tool_menu = window.add_menu("&Tool"_string);
m_toolbox->for_each_tool([&](auto& tool) {
if (tool.action())