Skip to content

Commit

Permalink
Merge branch 'n00bje-develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 6, 2017
2 parents 8685b04 + 5631e25 commit 4732b1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/1.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- Fix not updating the text of `TimePicker` and `DateTimePicker` after changing the culture.
- `Badged` control has now a different look when disabled. thx [@xxMUROxx](https://github.com/xxMUROxx)
+ Adds new brush to light and dark themes `MahApps.Metro.Brushes.Badged.DisabledBackgroundBrush`
- Don't catch `TextChangedEvent` in `NumericUpDown` [#3066](https://github.com/MahApps/MahApps.Metro/pull/3066) [@Silv3rcircl3](https://github.com/Silv3rcircl3)

## Breaking Change

Expand Down Expand Up @@ -85,3 +86,4 @@ More informations about the reason of this decision can be found here:
- [#2990](https://github.com/MahApps/MahApps.Metro/issues/2990) TextBox memory leak
- [#3017](https://github.com/MahApps/MahApps.Metro/issues/3017) SplitButton with custom ItemTemplate - Source change does not always update layout
- [#2977](https://github.com/MahApps/MahApps.Metro/issues/2977) Badge must have a different look when disabled
- [#2937](https://github.com/MahApps/MahApps.Metro/issues/2937) Fuzzy button outline [#3064](https://github.com/MahApps/MahApps.Metro/pull/3064) [@n00bje](https://github.com/n00bje)
11 changes: 9 additions & 2 deletions src/MahApps.Metro/MahApps.Metro/Styles/Controls.Buttons.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Setter Property="FontSize" Value="{DynamicResource FlatButtonFontSize}" />
<Setter Property="Foreground" Value="{DynamicResource FlatButtonForegroundBrush}" />
<Setter Property="Padding" Value="10 5 10 5" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
Expand Down Expand Up @@ -56,6 +57,7 @@
<Setter Property="FontSize" Value="{DynamicResource FlatButtonFontSize}" />
<Setter Property="Foreground" Value="{DynamicResource FlatButtonForegroundBrush}" />
<Setter Property="Padding" Value="10 5 10 5" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
Expand Down Expand Up @@ -429,6 +431,7 @@
<Setter Property="Foreground" Value="{DynamicResource BlackBrush}" />
<Setter Property="MinHeight" Value="25" />
<Setter Property="Padding" Value="5 6" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
Expand Down Expand Up @@ -841,6 +844,7 @@
<Setter Property="Foreground" Value="{DynamicResource BlackBrush}" />
<Setter Property="MinHeight" Value="25" />
<Setter Property="Padding" Value="5 6" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
Expand Down Expand Up @@ -996,14 +1000,16 @@
<Setter Property="Foreground" Value="{DynamicResource BlackBrush}" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Padding" Value="12 4 12 4" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Grid>
<Border x:Name="Border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
BorderThickness="{TemplateBinding BorderThickness}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">

<Grid>
<Rectangle x:Name="MouseOverRectangle"
Expand Down Expand Up @@ -1111,7 +1117,8 @@
<Border x:Name="Border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
BorderThickness="{TemplateBinding BorderThickness}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">

<Grid>
<Rectangle x:Name="MouseOverRectangle"
Expand Down

0 comments on commit 4732b1c

Please sign in to comment.