mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 11:54:53 +03:00
PixelPaint: Add new icons for layer actions
Add icons for three more layer actions.
This commit is contained in:
parent
578318ca0f
commit
1026819135
Notes:
sideshowbarker
2024-07-18 03:20:13 +09:00
Author: https://github.com/metmo Commit: https://github.com/SerenityOS/serenity/commit/10268191356 Pull-request: https://github.com/SerenityOS/serenity/pull/10092 Reviewed-by: https://github.com/mustafaquraish ✅
BIN
Base/res/icons/16x16/bottom-layer.png
Normal file
BIN
Base/res/icons/16x16/bottom-layer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
Base/res/icons/16x16/new-layer.png
Normal file
BIN
Base/res/icons/16x16/new-layer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
Base/res/icons/16x16/top-layer.png
Normal file
BIN
Base/res/icons/16x16/top-layer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user