From 94097443e4421f81f09ee6445c7b84fc876a5566 Mon Sep 17 00:00:00 2001 From: punker76 Date: Tue, 29 Oct 2019 22:33:02 +0100 Subject: [PATCH] (GH-3623) Win10 styles for CleanWindow WindowButtonCommands - Add new style `MahApps.Styles.Button.CleanWindow.Close.Light.Win10` - Add new style `MahApps.Styles.Button.CleanWindow.Close.Dark.Win10` - Add new style `MahApps.Styles.WindowButtonCommands.Clean.Win10` --- .../ExampleWindows/CleanWindowDemo.xaml | 4 +++ .../Clean/CleanWindowButtonCommands.xaml | 8 +++++ .../Styles/Clean/CleanWindowButtons.xaml | 30 +++++++++++++++++++ .../Styles/Controls.Buttons.xaml | 16 +++------- .../Themes/WindowButtonCommands.xaml | 4 ++- 5 files changed, 49 insertions(+), 13 deletions(-) diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/CleanWindowDemo.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/CleanWindowDemo.xaml index 903f7c0f1b..30c29f2a80 100644 --- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/CleanWindowDemo.xaml +++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleWindows/CleanWindowDemo.xaml @@ -52,6 +52,10 @@ + + + + + + \ No newline at end of file diff --git a/src/MahApps.Metro/Styles/Clean/CleanWindowButtons.xaml b/src/MahApps.Metro/Styles/Clean/CleanWindowButtons.xaml index 337a42b8e1..7c3750dd98 100644 --- a/src/MahApps.Metro/Styles/Clean/CleanWindowButtons.xaml +++ b/src/MahApps.Metro/Styles/Clean/CleanWindowButtons.xaml @@ -71,4 +71,34 @@ + + + + \ No newline at end of file diff --git a/src/MahApps.Metro/Styles/Controls.Buttons.xaml b/src/MahApps.Metro/Styles/Controls.Buttons.xaml index 5545209893..e1c1e556c0 100644 --- a/src/MahApps.Metro/Styles/Controls.Buttons.xaml +++ b/src/MahApps.Metro/Styles/Controls.Buttons.xaml @@ -273,6 +273,7 @@ + @@ -287,15 +288,9 @@ ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" - Opacity="0.6" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> - - - - - @@ -303,6 +298,7 @@ + @@ -362,14 +358,12 @@ + - - - @@ -379,14 +373,12 @@ + - - - diff --git a/src/MahApps.Metro/Themes/WindowButtonCommands.xaml b/src/MahApps.Metro/Themes/WindowButtonCommands.xaml index f9f250c455..e57fa54182 100644 --- a/src/MahApps.Metro/Themes/WindowButtonCommands.xaml +++ b/src/MahApps.Metro/Themes/WindowButtonCommands.xaml @@ -190,7 +190,9 @@ RelativeSource="{RelativeSource AncestorType={x:Type Controls:MetroWindow}}" /> - +