Skip to content

Commit

Permalink
Make Disabled Button foreground consistent with OS
Browse files Browse the repository at this point in the history
  • Loading branch information
krlvm committed Oct 16, 2021
1 parent 9acc251 commit eaf5bff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FluentWPF/Styles/Button.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<animation:BrushAnimation Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="contentPresenter"
Duration="0:0:0.100" AutoReverse="False">
<animation:BrushAnimation.To>
<SolidColorBrush Color="#FF838383"/>
<SolidColorBrush Color="{DynamicResource SystemDisabledTextColor}"/>
</animation:BrushAnimation.To>
<animation:BrushAnimation.EasingFunction>
<SineEase EasingMode="EaseInOut"/>
Expand Down
1 change: 1 addition & 0 deletions FluentWPF/Styles/Colors.Dark.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
<Color x:Key="SystemControlAcrylicWindowTintColor">#FF000000</Color>
<Color x:Key="SystemControlAcrylicWindowFallbackColor">#FF1F1F1F</Color>
<SolidColorBrush x:Key="SystemControlAcrylicWindowForegroundBrush" Color="{StaticResource SystemBaseHighColor}" />
<Color x:Key="SystemDisabledTextColor">#33FFFFFF</Color>

</ResourceDictionary>
1 change: 1 addition & 0 deletions FluentWPF/Styles/Colors.Light.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
<Color x:Key="SystemControlAcrylicWindowTintColor">#FFFFFFFF</Color>
<Color x:Key="SystemControlAcrylicWindowFallbackColor">#FFE6E6E6</Color>
<SolidColorBrush x:Key="SystemControlAcrylicWindowForegroundBrush" Color="{StaticResource SystemBaseHighColor}" />
<Color x:Key="SystemDisabledTextColor">#FF8F8F8F</Color>

</ResourceDictionary>

0 comments on commit eaf5bff

Please sign in to comment.