mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
PixelPaint: Add action to invert selection
This commit is contained in:
parent
295fcd639f
commit
d3353ee0e7
6 changed files with 16 additions and 0 deletions
|
@ -365,6 +365,12 @@ void MainWidget::initialize_menubar(GUI::Window& window)
|
|||
VERIFY(editor);
|
||||
editor->image().selection().clear();
|
||||
}));
|
||||
m_edit_menu->add_action(GUI::Action::create(
|
||||
"&Invert Selection", g_icon_bag.invert_selection, [&](auto&) {
|
||||
auto* editor = current_image_editor();
|
||||
VERIFY(editor);
|
||||
editor->image().selection().invert();
|
||||
}));
|
||||
|
||||
m_edit_menu->add_separator();
|
||||
m_edit_menu->add_action(GUI::Action::create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue