PixelPaint: Add new icons for layer actions

Add icons for three more layer actions.
This commit is contained in:
Marcus Nilsson 2021-08-03 17:40:18 +02:00 committed by Andreas Kling
parent 578318ca0f
commit 1026819135
Notes: sideshowbarker 2024-07-18 03:20:13 +09:00
4 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -431,7 +431,7 @@ void MainWidget::initialize_menubar(GUI::Window& window)
auto& layer_menu = window.add_menu("&Layer");
layer_menu.add_action(GUI::Action::create(
"New &Layer...", { Mod_Ctrl | Mod_Shift, Key_N }, [&](auto&) {
"New &Layer...", { Mod_Ctrl | Mod_Shift, Key_N }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/new-layer.png"), [&](auto&) {
auto* editor = current_image_editor();
if (!editor)
return;
@ -458,11 +458,11 @@ void MainWidget::initialize_menubar(GUI::Window& window)
m_layer_list_widget->cycle_through_selection(-1);
}));
layer_menu.add_action(GUI::Action::create(
"Select &Top Layer", { 0, Key_Home }, [&](auto&) {
"Select &Top Layer", { 0, Key_Home }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/top-layer.png"), [&](auto&) {
m_layer_list_widget->select_top_layer();
}));
layer_menu.add_action(GUI::Action::create(
"Select B&ottom Layer", { 0, Key_End }, [&](auto&) {
"Select B&ottom Layer", { 0, Key_End }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/bottom-layer.png"), [&](auto&) {
m_layer_list_widget->select_bottom_layer();
}));
layer_menu.add_separator();