1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

PixelPaint: Add option to make new layer from selection

New actions in the Layer Menu allows for the creation of a new layer
from the current selection. Layers can be made by copying the
selection or cutting it from the current layer. The new layer will be
sized to the bounding box of the selection. The newly produced layer
will be added to the layer stack.
This commit is contained in:
Timothy Slater 2022-08-31 17:53:23 -05:00 committed by Sam Atkins
parent e66763c223
commit 7fda016217
2 changed files with 40 additions and 0 deletions

View file

@ -101,6 +101,9 @@ private:
RefPtr<GUI::Action> m_show_guides_action;
RefPtr<GUI::Action> m_show_rulers_action;
RefPtr<GUI::Action> m_show_active_layer_boundary_action;
RefPtr<GUI::Action> m_layer_via_copy;
RefPtr<GUI::Action> m_layer_via_cut;
};
}