|
1021 | 1021 | <Setter Property="Template"> |
1022 | 1022 | <ControlTemplate> |
1023 | 1023 | <Grid Background="Transparent" ColumnDefinitions="Auto,*"> |
1024 | | - <Border x:Name="Border" Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" BorderBrush="{DynamicResource Brush.Border1}" BorderThickness="1" Background="Transparent" CornerRadius="2"> |
| 1024 | + <Border x:Name="Border" Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" BorderBrush="{DynamicResource Brush.CheckBox.Border}" BorderThickness="1" Background="Transparent" CornerRadius="2"> |
1025 | 1025 | <Path x:Name="Icon" Height="12" Width="12" Data="{DynamicResource Icons.Check}" Fill="{DynamicResource Brush.Accent}" IsVisible="False" Margin="0,2,0,0"/> |
1026 | 1026 | </Border> |
1027 | 1027 |
|
|
1038 | 1038 | <Style Selector="^:pointerover /template/ Border#Border"> |
1039 | 1039 | <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/> |
1040 | 1040 | </Style> |
| 1041 | + <Style Selector="^:checked /template/ Border#Border"> |
| 1042 | + <Setter Property="Background" Value="{DynamicResource Brush.CheckBox.CheckedBackground}"/> |
| 1043 | + <Setter Property="BorderBrush" Value="{DynamicResource Brush.CheckBox.CheckedBorder}"/> |
| 1044 | + </Style> |
1041 | 1045 | <Style Selector="^:checked /template/ Path#Icon"> |
1042 | 1046 | <Setter Property="IsVisible" Value="True"/> |
| 1047 | + <Setter Property="Fill" Value="{DynamicResource Brush.CheckBox.CheckedFG}"/> |
1043 | 1048 | </Style> |
1044 | 1049 | <Style Selector="^:focus-visible /template/ Border#Border"> |
1045 | 1050 | <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/> |
1046 | 1051 | <Setter Property="BorderThickness" Value="2"/> |
1047 | 1052 | </Style> |
1048 | 1053 | <Style Selector="^:focus-visible:checked /template/ Border#Border"> |
1049 | 1054 | <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/> |
1050 | | - <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/> |
| 1055 | + <Setter Property="Background" Value="{DynamicResource Brush.CheckBox.CheckedBackground}"/> |
1051 | 1056 | </Style> |
1052 | 1057 | <Style Selector="^:focus-visible:checked /template/ Path#Icon"> |
1053 | | - <Setter Property="Fill" Value="White"/> |
| 1058 | + <Setter Property="Fill" Value="{DynamicResource Brush.CheckBox.CheckedFG}"/> |
1054 | 1059 | </Style> |
1055 | 1060 | </Style> |
1056 | 1061 |
|
|
0 commit comments