mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
PixelPaint: Add fullscreen option
This commit is contained in:
parent
64edf6913f
commit
4c31049d0c
Notes:
sideshowbarker
2024-07-17 06:51:10 +09:00
Author: https://github.com/hughdavenport
Commit: 4c31049d0c
Pull-request: https://github.com/SerenityOS/serenity/pull/22591
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 5 additions and 0 deletions
|
@ -605,6 +605,11 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
|
||||||
scopes_menu->add_action(histogram_action);
|
scopes_menu->add_action(histogram_action);
|
||||||
scopes_menu->add_action(vectorscope_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_tool_menu = window.add_menu("&Tool"_string);
|
||||||
m_toolbox->for_each_tool([&](auto& tool) {
|
m_toolbox->for_each_tool([&](auto& tool) {
|
||||||
if (tool.action())
|
if (tool.action())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue