ux: style for left panel of repository view

This commit is contained in:
leo 2024-09-27 17:12:13 +08:00
parent a7f609d479
commit a78cf611c0
No known key found for this signature in database
2 changed files with 28 additions and 27 deletions

View file

@ -962,12 +962,14 @@
</Style>
</Style>
<Style Selector="RadioButton.icon_button">
<Style Selector="RadioButton.switch_button">
<Setter Property="Width" Value="48"/>
<Setter Property="Height" Value="24"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<ControlTemplate>
<Border Background="Transparent">
<Border CornerRadius="12" Background="{TemplateBinding Background}">
<ContentPresenter x:Name="PART_ContentPresenter"
Margin="0"
HorizontalAlignment="Center"
@ -980,9 +982,11 @@
</ControlTemplate>
</Setter>
<Style Selector="^:checked">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="^:checked Path">
<Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Opacity" Value="0.65"/>
<Setter Property="Fill" Value="White"/>
</Style>
</Style>