From 8d077d5e796b4325e7b4ec8b22d01170602febe6 Mon Sep 17 00:00:00 2001 From: Mato Date: Wed, 29 Oct 2014 16:38:00 +0100 Subject: [PATCH 1/3] Changes for PR #1600 and PR #1611 --- MahApps.Metro/Styles/Clean/CleanWindow.xaml | 37 ++++++++++++++++++++- MahApps.Metro/Styles/Controls.Buttons.xaml | 4 ++- MahApps.Metro/Themes/MetroWindow.xaml | 12 +++---- 3 files changed, 44 insertions(+), 9 deletions(-) diff --git a/MahApps.Metro/Styles/Clean/CleanWindow.xaml b/MahApps.Metro/Styles/Clean/CleanWindow.xaml index a7841eac20..74fef0d85e 100644 --- a/MahApps.Metro/Styles/Clean/CleanWindow.xaml +++ b/MahApps.Metro/Styles/Clean/CleanWindow.xaml @@ -108,7 +108,6 @@ Grid.Column="4" Grid.RowSpan="2" VerticalAlignment="Top" - Foreground="{DynamicResource BlackColorBrush}" Height="{Binding TitlebarHeight, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> @@ -239,6 +238,7 @@ + + + + \ No newline at end of file diff --git a/MahApps.Metro/Styles/Controls.Buttons.xaml b/MahApps.Metro/Styles/Controls.Buttons.xaml index 6d7f4ab947..f2f4a8ac55 100644 --- a/MahApps.Metro/Styles/Controls.Buttons.xaml +++ b/MahApps.Metro/Styles/Controls.Buttons.xaml @@ -215,7 +215,7 @@ + Value="{DynamicResource IdealForegroundColorBrush}" /> + diff --git a/MahApps.Metro/Themes/MetroWindow.xaml b/MahApps.Metro/Themes/MetroWindow.xaml index 6e32d57f93..c6643b8000 100644 --- a/MahApps.Metro/Themes/MetroWindow.xaml +++ b/MahApps.Metro/Themes/MetroWindow.xaml @@ -507,7 +507,6 @@ Focusable="False" Height="{Binding TitlebarHeight, Mode=OneWay, RelativeSource={RelativeSource AncestorType=Controls:MetroWindow}}" Style="{Binding WindowMinButtonStyle, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:MetroWindow}}}" - Foreground="{TemplateBinding Foreground}" ToolTip="{Binding Minimize, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:WindowButtonCommands}}}"> + Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}" /> From d6de3cbefe857d35356ca67de5c5cc2e0d2f08e2 Mon Sep 17 00:00:00 2001 From: Mato Date: Wed, 29 Oct 2014 20:59:47 +0100 Subject: [PATCH 2/3] fix vs window button command style --- MahApps.Metro/Styles/VS/Window.xaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/MahApps.Metro/Styles/VS/Window.xaml b/MahApps.Metro/Styles/VS/Window.xaml index 39b4de93d1..1d66a51b8c 100644 --- a/MahApps.Metro/Styles/VS/Window.xaml +++ b/MahApps.Metro/Styles/VS/Window.xaml @@ -11,6 +11,26 @@ Value="{DynamicResource WindowGlowBrush}" /> + + + + + + \ No newline at end of file From 40cf47495dbb68f955a47e15329081351dc52390 Mon Sep 17 00:00:00 2001 From: Mato Date: Sun, 2 Nov 2014 19:49:23 +0100 Subject: [PATCH 3/3] fix foreground for flyout --- MahApps.Metro/Styles/Clean/CleanWindow.xaml | 6 ------ MahApps.Metro/Styles/Controls.Buttons.xaml | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/MahApps.Metro/Styles/Clean/CleanWindow.xaml b/MahApps.Metro/Styles/Clean/CleanWindow.xaml index 74fef0d85e..668f10a74b 100644 --- a/MahApps.Metro/Styles/Clean/CleanWindow.xaml +++ b/MahApps.Metro/Styles/Clean/CleanWindow.xaml @@ -260,14 +260,8 @@