feat: checked ButtonRadioButton disable style.

This commit is contained in:
Zhang Dian
2023-03-27 19:55:54 +08:00
parent 3124c5e2cc
commit 2bb175bb16
3 changed files with 5 additions and 0 deletions

View File

@@ -207,6 +207,9 @@
<Style Selector="^:checked">
<Setter Property="RadioButton.Background" Value="{DynamicResource RadioButtonButtonCheckedBackground}" />
<Setter Property="RadioButton.Foreground" Value="{DynamicResource RadioButtonButtonCheckedForeground}" />
<Style Selector="^:disabled">
<Setter Property="RadioButton.Foreground" Value="{DynamicResource RadioButtonButtonCheckedDisabledForeground}" />
</Style>
</Style>
<Style Selector="^.Small">
<Setter Property="RadioButton.FontSize" Value="{DynamicResource RadioButtonButtonSmallFontSize}" />

View File

@@ -52,6 +52,7 @@
<SolidColorBrush x:Key="RadioButtonButtonUncheckedDisabledForeground" Color="#78787A" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedBackground" Color="#43444A" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedForeground" Color="#54A9FF" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedDisabledForeground" Color="#78787A" />
<Thickness x:Key="RadioButtonCardPadding">16 12</Thickness>

View File

@@ -52,6 +52,7 @@
<SolidColorBrush x:Key="RadioButtonButtonUncheckedDisabledForeground" Color="#A9AAAB" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedForeground" Color="#0077FA" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedBackground" Color="White" />
<SolidColorBrush x:Key="RadioButtonButtonCheckedDisabledForeground" Color="#A9AAAB" />
<Thickness x:Key="RadioButtonCardPadding">16 12</Thickness>