ux: new style for CheckBox:focus-visible

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-03-09 18:08:49 +08:00
parent e71c5f2751
commit ed4bfb0831

View File

@@ -1099,20 +1099,23 @@
</Grid>
</ControlTemplate>
</Setter>
<Style Selector="^:focus-visible /template/ Border#Border">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="^:focus-visible /template/ Path#Icon">
<Setter Property="Fill" Value="White"/>
</Style>
<Style Selector="^:pointerover /template/ Border#Border">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="^:checked /template/ Path#Icon">
<Setter Property="IsVisible" Value="True"/>
</Style>
<Style Selector="^:focus-visible /template/ Border#Border">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="^:focus-visible:checked /template/ Border#Border">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="^:focus-visible:checked /template/ Path#Icon">
<Setter Property="Fill" Value="White"/>
</Style>
</Style>
<Style Selector="RadioButton">