diff options
author | electrikmilk <brandonjordan124@gmail.com> | 2022-08-23 19:26:06 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-24 12:01:19 +0200 |
commit | 1a9d4ffecfd59ec50d3067243436f41d42344624 (patch) | |
tree | 3c8572519549714e3ffa61e18f8bc6ff62df1423 /Userland/Applications/PixelPaint/MainWidget.cpp | |
parent | 07a7d3e136cf1303fd9eec8f23a57c95afe45dc6 (diff) | |
download | serenity-1a9d4ffecfd59ec50d3067243436f41d42344624.zip |
PixelPaint: Add more icons
This adds menu item icons for Add Mask, Flatten Image, Fit Image To
View, and Generic 5x5 Convolution.
This modifies the menu item icon for Swap Colors to make the action more
obvious and improve accessibility.
Diffstat (limited to 'Userland/Applications/PixelPaint/MainWidget.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index f3de3a0f3d..0d63b9ed4b 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -450,7 +450,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) m_view_menu->add_action(*m_zoom_out_action); m_view_menu->add_action(*m_reset_zoom_action); m_view_menu->add_action(GUI::Action::create( - "Fit Image To &View", [&](auto&) { + "Fit Image To &View", g_icon_bag.fit_image_to_view, [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); editor->fit_image_to_view(); @@ -594,7 +594,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) m_layer_menu->add_separator(); m_layer_menu->add_action(GUI::Action::create( - "Add M&ask", { Mod_Ctrl | Mod_Shift, Key_M }, nullptr, [&](auto&) { + "Add M&ask", { Mod_Ctrl | Mod_Shift, Key_M }, g_icon_bag.add_mask, [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); auto active_layer = editor->active_layer(); @@ -691,7 +691,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) }; m_layer_menu->add_separator(); m_layer_menu->add_action(GUI::Action::create( - "Fl&atten Image", { Mod_Ctrl, Key_F }, [&](auto&) { + "Fl&atten Image", { Mod_Ctrl, Key_F }, g_icon_bag.flatten_image, [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); editor->image().flatten_all_layers(); @@ -784,7 +784,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) })); m_filter_menu->add_separator(); - m_filter_menu->add_action(GUI::Action::create("Generic 5x5 &Convolution", [&](auto&) { + m_filter_menu->add_action(GUI::Action::create("Generic 5x5 &Convolution", g_icon_bag.generic_5x5_convolution, [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); if (auto* layer = editor->active_layer()) { |