ソースを参照

Added OpenFileFromClipboard.png and improved paste command icons

CPKreuz 2 年 前
コミット
95e19e4d6a

BIN
src/PixiEditor/Images/Commands/PixiEditor/Clipboard/PasteAsNewLayer.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Clipboard/PasteReferenceLayer.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/File/OpenFileFromClipboard.png


+ 6 - 0
src/PixiEditor/PixiEditor.csproj

@@ -399,6 +399,12 @@
 		<Resource Include="Images\Commands\PixiEditor\Selection\AddToMask.png" />
 		<None Remove="Images\Commands\PixiEditor\Selection\NewToMask.png" />
 		<Resource Include="Images\Commands\PixiEditor\Selection\NewToMask.png" />
+		<None Remove="Images\Commands\PixiEditor\Clipboard\PasteReferenceLayer.png" />
+		<Resource Include="Images\Commands\PixiEditor\Clipboard\PasteReferenceLayer.png" />
+		<None Remove="Images\Commands\PixiEditor\Clipboard\PasteAsNewLayer.png" />
+		<Resource Include="Images\Commands\PixiEditor\Clipboard\PasteAsNewLayer.png" />
+		<None Remove="Images\Commands\PixiEditor\File\OpenFileFromClipboard.png" />
+		<Resource Include="Images\Commands\PixiEditor\File\OpenFileFromClipboard.png" />
 	</ItemGroup>
 	<ItemGroup>
 		<None Include="..\LICENSE">

+ 2 - 2
src/PixiEditor/ViewModels/SubViewModels/Main/ClipboardViewModel.cs

@@ -29,7 +29,7 @@ internal class ClipboardViewModel : SubViewModel<ViewModelMain>
     }
 
     [Command.Basic("PixiEditor.Clipboard.Paste", false, "Paste", "Paste from clipboard", CanExecute = "PixiEditor.Clipboard.CanPaste", Key = Key.V, Modifiers = ModifierKeys.Shift)]
-    [Command.Basic("PixiEditor.Clipboard.PasteAsNewLayer", true, "Paste as new layer", "Paste from clipboard as new layer", CanExecute = "PixiEditor.Clipboard.CanPaste", IconPath = "$PixiEditor.Clipboard.Paste", Key = Key.V, Modifiers = ModifierKeys.Control)]
+    [Command.Basic("PixiEditor.Clipboard.PasteAsNewLayer", true, "Paste as new layer", "Paste from clipboard as new layer", CanExecute = "PixiEditor.Clipboard.CanPaste", Key = Key.V, Modifiers = ModifierKeys.Control)]
     public void Paste(bool pasteAsNewLayer)
     {
         if (Owner.DocumentManagerSubViewModel.ActiveDocument is null) 
@@ -37,7 +37,7 @@ internal class ClipboardViewModel : SubViewModel<ViewModelMain>
         ClipboardController.TryPasteFromClipboard(Owner.DocumentManagerSubViewModel.ActiveDocument, pasteAsNewLayer);
     }
     
-    [Command.Basic("PixiEditor.Clipboard.PasteReferenceLayer", "Paste reference layer", "Paste reference layer from clipboard", CanExecute = "PixiEditor.Clipboard.CanPaste", IconPath = "Commands/PixiEditor/Clipboard/Paste.png")]
+    [Command.Basic("PixiEditor.Clipboard.PasteReferenceLayer", "Paste reference layer", "Paste reference layer from clipboard", CanExecute = "PixiEditor.Clipboard.CanPaste")]
     public void PasteReferenceLayer(DataObject data)
     {
         var doc = Owner.DocumentManagerSubViewModel.ActiveDocument;