Pārlūkot izejas kodu

Added to smart layer option for folder

Krzysztof Krysiński 3 nedēļas atpakaļ
vecāks
revīzija
9374aa0339

+ 2 - 1
src/PixiEditor/Data/Localization/Languages/en.json

@@ -1251,5 +1251,6 @@
   "BUILT_IN": "Built-in",
   "LOCAL": "Local",
   "TOOL_CONFIG": "Tool Config",
-  "FORCE_PRESSURE_SETTING": "Force Pressure"
+  "FORCE_PRESSURE_SETTING": "Force Pressure",
+  "TO_SMART_LAYER": "To Smart Layer"
 }

+ 2 - 0
src/PixiEditor/Views/Layers/FolderControl.axaml

@@ -170,6 +170,8 @@
                 <MenuItem ui:Translator.Key="MERGE_SELECTED" Command="{xaml:Command PixiEditor.Layer.MergeSelected}" />
                 <MenuItem ui:Translator.Key="MERGE_WITH_ABOVE" Command="{xaml:Command PixiEditor.Layer.MergeWithAbove}" />
                 <MenuItem ui:Translator.Key="MERGE_WITH_BELOW" Command="{xaml:Command PixiEditor.Layer.MergeWithBelow}" />
+                <MenuItem ui:Translator.Key="TO_SMART_LAYER" Command="{xaml:Command PixiEditor.Layer.CreateNestedFromLayer, UseProvided=True}"
+                          CommandParameter="{Binding $parent[UserControl].Folder.Id}" />
             </ContextMenu>
         </Border.ContextMenu>
     </Border>