Browse Source

feat: remove unnecessary style for fullscreen button. (#20934)

pull/20850/merge
Dong Bin 5 days ago
committed by GitHub
parent
commit
f2d1fcc08b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml
  2. 5
      src/Avalonia.Themes.Simple/Controls/WindowDrawnDecorations.xaml

7
src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml

@ -190,12 +190,7 @@
<Style Selector="^:maximized /template/ Path#RestoreButtonPath">
<Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" />
</Style>
<!-- Fullscreen: update fullscreen button icon to "exit fullscreen" -->
<Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath">
<Setter Property="Data" Value="M205 1024h819v-819h-205v469l-674 -674l-145 145l674 674h-469v205zM1374 1229h469v-205h-819v819h205v-469l674 674l145 -145z" />
</Style>
<!-- Disabled buttons -->
<Style Selector="^ /template/ Button:disabled">
<Setter Property="Opacity" Value="0.2"/>

5
src/Avalonia.Themes.Simple/Controls/WindowDrawnDecorations.xaml

@ -197,11 +197,6 @@
<Setter Property="Data" Value="M2048 410h-410v-410h-1638v1638h410v410h1638v-1638zM1434 1434h-1229v-1229h1229v1229zM1843 1843h-1229v-205h1024v-1024h205v1229z" />
</Style>
<!-- Fullscreen: update fullscreen button icon to "exit fullscreen" -->
<Style Selector="^:fullscreen /template/ Path#FullScreenButtonPath">
<Setter Property="Data" Value="M205 1024h819v-819h-205v469l-674 -674l-145 145l674 674h-469v205zM1374 1229h469v-205h-819v819h205v-469l674 674l145 -145z" />
</Style>
<!-- Disabled buttons -->
<Style Selector="^ /template/ Button:disabled">
<Setter Property="Opacity" Value="0.2"/>

Loading…
Cancel
Save