style: windows/linux caption buttons

This commit is contained in:
leo 2024-03-26 11:00:15 +08:00
parent 43d50c5ded
commit cd42f2471a

View file

@ -7,7 +7,6 @@
xmlns:vm="using:SourceGit.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SourceGit.Views.CaptionButtons">
<Grid Classes="caption_button_box">
<StackPanel Orientation="Horizontal">
<Button Classes="caption_button" Click="MinimizeWindow">
<Path Data="{StaticResource Icons.Window.Minimize}"/>
@ -16,8 +15,7 @@
<Path Data="{Binding $parent[Window].WindowState, Converter={x:Static c:WindowStateConverters.ToMaxOrRestoreIcon}}"/>
</Button>
<Button Classes="caption_button" Click="CloseWindow">
<Path Data="{StaticResource Icons.Window.Close}"/>
<Path Data="{StaticResource Icons.Window.Close}" Width="9" Height="9"/>
</Button>
</StackPanel>
</Grid>
</UserControl>