|
182 | 182 | <Setter Property="FontSize" Value="{Binding Source={x:Static vm:Preferences.Instance}, Path=DefaultFontSize}"/> |
183 | 183 | </Style> |
184 | 184 |
|
| 185 | + <Style Selector="AdornerLayer"> |
| 186 | + <Setter Property="DefaultFocusAdorner"> |
| 187 | + <FocusAdornerTemplate> |
| 188 | + <Rectangle Margin="0" Stroke="{DynamicResource Brush.FG1}" StrokeDashArray="1,2" StrokeThickness="1"/> |
| 189 | + </FocusAdornerTemplate> |
| 190 | + </Setter> |
| 191 | + </Style> |
| 192 | + |
185 | 193 | <Style Selector="ToolTip"> |
186 | 194 | <Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/> |
187 | 195 | <Setter Property="Background" Value="{DynamicResource Brush.Popup}"/> |
|
1067 | 1075 | </Style> |
1068 | 1076 |
|
1069 | 1077 | <Style Selector="CheckBox"> |
| 1078 | + <Setter Property="FocusAdorner"> |
| 1079 | + <FocusAdornerTemplate> |
| 1080 | + <Border/> |
| 1081 | + </FocusAdornerTemplate> |
| 1082 | + </Setter> |
| 1083 | + |
1070 | 1084 | <Setter Property="VerticalAlignment" Value="Center"/> |
1071 | 1085 | <Setter Property="Template"> |
1072 | 1086 | <ControlTemplate> |
|
1085 | 1099 | </Grid> |
1086 | 1100 | </ControlTemplate> |
1087 | 1101 | </Setter> |
1088 | | - |
| 1102 | + |
| 1103 | + <Style Selector="^:focus-visible /template/ Border#Border"> |
| 1104 | + <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/> |
| 1105 | + <Setter Property="Background" Value="{DynamicResource Brush.Accent}"/> |
| 1106 | + </Style> |
| 1107 | + <Style Selector="^:focus-visible /template/ Path#Icon"> |
| 1108 | + <Setter Property="Fill" Value="White"/> |
| 1109 | + </Style> |
1089 | 1110 | <Style Selector="^:pointerover /template/ Border#Border"> |
1090 | 1111 | <Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/> |
1091 | 1112 | </Style> |
|
1095 | 1116 | </Style> |
1096 | 1117 |
|
1097 | 1118 | <Style Selector="RadioButton"> |
| 1119 | + <Setter Property="FocusAdorner"> |
| 1120 | + <FocusAdornerTemplate> |
| 1121 | + <Border/> |
| 1122 | + </FocusAdornerTemplate> |
| 1123 | + </Setter> |
| 1124 | + |
1098 | 1125 | <Setter Property="Template"> |
1099 | 1126 | <ControlTemplate> |
1100 | 1127 | <Grid ColumnDefinitions="16,*" Background="Transparent"> |
|
1136 | 1163 | <Style Selector="^:checked /template/ Ellipse#Dot"> |
1137 | 1164 | <Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/> |
1138 | 1165 | </Style> |
| 1166 | + <Style Selector="^:focus-visible /template/ Ellipse#Border"> |
| 1167 | + <Setter Property="Stroke" Value="{DynamicResource Brush.Accent}"/> |
| 1168 | + <Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/> |
| 1169 | + </Style> |
| 1170 | + <Style Selector="^:focus-visible /template/ Ellipse#Dot"> |
| 1171 | + <Setter Property="Stroke" Value="White"/> |
| 1172 | + <Setter Property="Fill" Value="White"/> |
| 1173 | + </Style> |
| 1174 | + <Style Selector="^:focus-visible:checked /template/ Ellipse#Dot"> |
| 1175 | + <Setter Property="Fill" Value="{DynamicResource Brush.Accent}"/> |
| 1176 | + </Style> |
1139 | 1177 | </Style> |
1140 | 1178 |
|
1141 | 1179 | <Style Selector="RadioButton.switch_button"> |
| 1180 | + <Setter Property="FocusAdorner"> |
| 1181 | + <FocusAdornerTemplate> |
| 1182 | + <Rectangle Margin="0" Stroke="{DynamicResource Brush.FG1}" StrokeDashArray="1,2" StrokeThickness="1"/> |
| 1183 | + </FocusAdornerTemplate> |
| 1184 | + </Setter> |
| 1185 | + |
1142 | 1186 | <Setter Property="Height" Value="24"/> |
1143 | 1187 | <Setter Property="BorderThickness" Value="0"/> |
1144 | 1188 | <Setter Property="Background" Value="Transparent"/> |
|
0 commit comments