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