ux: style for branch/tag filter toggle button

This commit is contained in:
leo 2024-08-23 11:35:57 +08:00
parent 4120331eda
commit c6b26517c0
No known key found for this signature in database

View file

@ -1046,6 +1046,7 @@
<Setter Property="VerticalAlignment" Value="Stretch"/> <Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="Template"> <Setter Property="Template">
<ControlTemplate> <ControlTemplate>
<Border Background="Transparent">
<Path x:Name="PART_IndicatorIcon" <Path x:Name="PART_IndicatorIcon"
Width="12" Width="12"
Data="{StaticResource Icons.Filter}" Data="{StaticResource Icons.Filter}"
@ -1053,6 +1054,7 @@
StrokeThickness="1" StrokeThickness="1"
Stroke="{DynamicResource Brush.FG2}" Stroke="{DynamicResource Brush.FG2}"
HorizontalAlignment="Center" VerticalAlignment="Center"/> HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
</Style> </Style>
@ -1063,7 +1065,7 @@
<Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/> <Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/>
</Style> </Style>
<Style Selector="ToggleButton.filter:pointerover /template/ Path#PART_IndicatorIcon"> <Style Selector="ToggleButton.filter:pointerover /template/ Path#PART_IndicatorIcon">
<Setter Property="Stroke" Value="{DynamicResource Brush.AccentHovered}"/> <Setter Property="Stroke" Value="{DynamicResource Brush.Accent}"/>
</Style> </Style>
<Style Selector="ToggleButton.tree_expander"> <Style Selector="ToggleButton.tree_expander">
<Setter Property="Margin" Value="0" /> <Setter Property="Margin" Value="0" />