Browse Source

fix: align with naming convention.

pull/9216/head
rabbitism 4 years ago
parent
commit
2f124a9a48
  1. 4
      src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml
  2. 4
      src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml

4
src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml

@ -61,7 +61,7 @@
<Viewbox.RenderTransform> <Viewbox.RenderTransform>
<RotateTransform Angle="-90" /> <RotateTransform Angle="-90" />
</Viewbox.RenderTransform> </Viewbox.RenderTransform>
<Path Name="PART_RestoreButtonPath" <Path Name="RestoreButtonPath"
Stretch="UniformToFill" Stretch="UniformToFill"
Fill="{TemplateBinding Foreground}" Fill="{TemplateBinding Foreground}"
Data="M2048 2048v-2048h-2048v2048h2048zM1843 1843h-1638v-1638h1638v1638z"/> Data="M2048 2048v-2048h-2048v2048h2048zM1843 1843h-1638v-1638h1638v1638z"/>
@ -80,7 +80,7 @@
</StackPanel> </StackPanel>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
<Style Selector="^:maximized /template/ Path#PART_RestoreButtonPath"> <Style Selector="^:maximized /template/ Path#RestoreButtonPath">
<Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" /> <Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" />
</Style> </Style>
<Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath"> <Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath">

4
src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml

@ -69,7 +69,7 @@
<Viewbox.RenderTransform> <Viewbox.RenderTransform>
<RotateTransform Angle="-90" /> <RotateTransform Angle="-90" />
</Viewbox.RenderTransform> </Viewbox.RenderTransform>
<Path Name="PART_RestoreButtonPath" <Path Name="RestoreButtonPath"
Data="M2048 2048v-2048h-2048v2048h2048zM1843 1843h-1638v-1638h1638v1638z" Data="M2048 2048v-2048h-2048v2048h2048zM1843 1843h-1638v-1638h1638v1638z"
Fill="{TemplateBinding Foreground}" Fill="{TemplateBinding Foreground}"
Stretch="UniformToFill" /> Stretch="UniformToFill" />
@ -89,7 +89,7 @@
</StackPanel> </StackPanel>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
<Style Selector="^:maximized /template/ Path#PART_RestoreButtonPath"> <Style Selector="^:maximized /template/ Path#RestoreButtonPath">
<Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" /> <Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" />
</Style> </Style>
<Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath"> <Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath">

Loading…
Cancel
Save