Skip to content

Commit eaf5bff

Browse files
committed
Make Disabled Button foreground consistent with OS
1 parent 9acc251 commit eaf5bff

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

FluentWPF/Styles/Button.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<animation:BrushAnimation Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="contentPresenter"
149149
Duration="0:0:0.100" AutoReverse="False">
150150
<animation:BrushAnimation.To>
151-
<SolidColorBrush Color="#FF838383"/>
151+
<SolidColorBrush Color="{DynamicResource SystemDisabledTextColor}"/>
152152
</animation:BrushAnimation.To>
153153
<animation:BrushAnimation.EasingFunction>
154154
<SineEase EasingMode="EaseInOut"/>

FluentWPF/Styles/Colors.Dark.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
<Color x:Key="SystemControlAcrylicWindowTintColor">#FF000000</Color>
4040
<Color x:Key="SystemControlAcrylicWindowFallbackColor">#FF1F1F1F</Color>
4141
<SolidColorBrush x:Key="SystemControlAcrylicWindowForegroundBrush" Color="{StaticResource SystemBaseHighColor}" />
42+
<Color x:Key="SystemDisabledTextColor">#33FFFFFF</Color>
4243

4344
</ResourceDictionary>

FluentWPF/Styles/Colors.Light.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
<Color x:Key="SystemControlAcrylicWindowTintColor">#FFFFFFFF</Color>
4040
<Color x:Key="SystemControlAcrylicWindowFallbackColor">#FFE6E6E6</Color>
4141
<SolidColorBrush x:Key="SystemControlAcrylicWindowForegroundBrush" Color="{StaticResource SystemBaseHighColor}" />
42+
<Color x:Key="SystemDisabledTextColor">#FF8F8F8F</Color>
4243

4344
</ResourceDictionary>

0 commit comments

Comments
 (0)