Browse Source

Merge pull request #408 from PtrStruct/#406-fix-center-titlebar

Fix the center issue.
Krzysztof Krysiński 3 years ago
parent
commit
5cc372f360
2 changed files with 3 additions and 2 deletions
  1. 1 0
      PixiEditor/Styles/Titlebar.xaml
  2. 2 2
      PixiEditor/Views/MainWindow.xaml

+ 1 - 0
PixiEditor/Styles/Titlebar.xaml

@@ -29,6 +29,7 @@
 
     <Style x:Key="MinimizeButtonStyle" TargetType="Button" BasedOn="{StaticResource CaptionButtonStyle}">
         <Setter Property="Content" Value="&#xE949;" />
+        <Setter Property="Margin" Value="0,1,0,0" />
     </Style>
 
     <Style x:Key="MaximizeButtonStyle" TargetType="Button" BasedOn="{StaticResource CaptionButtonStyle}">

+ 2 - 2
PixiEditor/Views/MainWindow.xaml

@@ -74,8 +74,8 @@
         </i:Interaction.Behaviors>
         <DockPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Background="{StaticResource MainColor}">
             <Image DockPanel.Dock="Left" HorizontalAlignment="Left" VerticalAlignment="Top"
-                   Source="/Images/PixiEditorLogo.png" Width="20" Height="20" Margin="5,5,0,0" />
-            <Menu WindowChrome.IsHitTestVisibleInChrome="True" Margin="10, 4, 0, 0" DockPanel.Dock="Left"
+                   Source="/Images/PixiEditorLogo.png" Width="20" Height="20" Margin="5,2,0,0" />
+            <Menu WindowChrome.IsHitTestVisibleInChrome="True" Margin="10, 0, 0, 0" DockPanel.Dock="Left"
                   HorizontalAlignment="Left" VerticalAlignment="Top" Background="Transparent" IsMainMenu="True">
                 <Menu.Resources>
                     <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource menuItemStyle}" />