Forráskód Böngészése

Icon improvements

CPKreuz 2 éve
szülő
commit
8eeb6e5868

BIN
src/PixiEditor/Images/Commands/PixiEditor/Layer/DuplicateSelectedLayer.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Selection/Clear.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Selection/InvertSelection.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Selection/SelectAll.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Window/OpenAboutWindow.png


BIN
src/PixiEditor/Images/Commands/PixiEditor/Window/OpenShortcutWindow.png


+ 8 - 0
src/PixiEditor/PixiEditor.csproj

@@ -421,6 +421,14 @@
 		<Resource Include="Images\Commands\PixiEditor\Clipboard\PasteAsNewLayer.png" />
 		<None Remove="Images\Commands\PixiEditor\File\OpenFileFromClipboard.png" />
 		<Resource Include="Images\Commands\PixiEditor\File\OpenFileFromClipboard.png" />
+		<None Remove="Images\Commands\PixiEditor\Window\OpenShortcutWindow.png" />
+		<Resource Include="Images\Commands\PixiEditor\Window\OpenShortcutWindow.png" />
+		<None Remove="Images\Commands\PixiEditor\Window\OpenAboutWindow.png" />
+		<Resource Include="Images\Commands\PixiEditor\Window\OpenAboutWindow.png" />
+		<None Remove="Images\Commands\PixiEditor\Layer\DuplicateSelectedLayer.png" />
+		<Resource Include="Images\Commands\PixiEditor\Layer\DuplicateSelectedLayer.png" />
+		<None Remove="Images\Commands\PixiEditor\Selection\InvertSelection.png" />
+		<Resource Include="Images\Commands\PixiEditor\Selection\InvertSelection.png" />
 	</ItemGroup>
 	<ItemGroup>
 		<None Include="..\LICENSE">

+ 1 - 1
src/PixiEditor/ViewModels/SubViewModels/Main/WindowViewModel.cs

@@ -44,7 +44,7 @@ internal class WindowViewModel : SubViewModel<ViewModelMain>
         this.commandController = commandController;
     }
 
-    [Command.Basic("PixiEditor.Window.CreateNewViewport", "NEW_WINDOW_FOR_IMG", "NEW_WINDOW_FOR_IMG", CanExecute = "PixiEditor.HasDocument")]
+    [Command.Basic("PixiEditor.Window.CreateNewViewport", "NEW_WINDOW_FOR_IMG", "NEW_WINDOW_FOR_IMG", IconPath = "@Images/Plus-square.png", CanExecute = "PixiEditor.HasDocument")]
     public void CreateNewViewport()
     {
         var doc = ViewModelMain.Current?.DocumentManagerSubViewModel.ActiveDocument;

+ 5 - 1
src/PixiEditor/Views/MainWindow.xaml

@@ -209,7 +209,11 @@
                         <Separator />
                         <MenuItem
                             views:Translator.Key="EXIT"
-                            Command="{x:Static SystemCommands.CloseWindowCommand}" />
+                            Command="{x:Static SystemCommands.CloseWindowCommand}">
+                            <MenuItem.Icon>
+                                <TextBlock Text="&#xE106;" FontFamily="{DynamicResource NativeIconFont}" FontSize="20"/>
+                            </MenuItem.Icon>
+                        </MenuItem>
                     </MenuItem>
                     <MenuItem
                         Focusable="False"