Skip to content

Commit

Permalink
Fix enabled/disabled brush
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Dec 30, 2017
1 parent e6a54e3 commit df0cdc4
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/MahApps.Metro/MahApps.Metro/Styles/Controls.Buttons.xaml
Expand Up @@ -463,14 +463,26 @@
<Setter Property="Foreground" Value="Black" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource DarkIdealForegroundDisabledBrush}" />
<Setter Property="Foreground" Value="{DynamicResource IdealForegroundDisabledBrush}" />
</Trigger>
</Style.Triggers>
</Style>

<Style x:Key="MahApps.Metro.Styles.WindowButton.Close.Dark.Win10"
BasedOn="{StaticResource LightMetroWindowButtonStyle}"
BasedOn="{StaticResource DarkMetroWindowButtonStyle}"
TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#E81123" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#F1707A" />
<Setter Property="Foreground" Value="Black" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource DarkIdealForegroundDisabledBrush}" />
</Trigger>
</Style.Triggers>
</Style>

<!-- style for default button -->
Expand Down

0 comments on commit df0cdc4

Please sign in to comment.