diff --git a/MahApps.Metro/Controls/MetroWindow.cs b/MahApps.Metro/Controls/MetroWindow.cs index 5ac6e47c79..3fa6f49b0b 100644 --- a/MahApps.Metro/Controls/MetroWindow.cs +++ b/MahApps.Metro/Controls/MetroWindow.cs @@ -80,10 +80,11 @@ public class MetroWindow : Window public static readonly DependencyProperty MetroDialogOptionsProperty = DependencyProperty.Register("MetroDialogOptions", typeof(MetroDialogSettings), typeof(MetroWindow), new PropertyMetadata(new MetroDialogSettings())); public static readonly DependencyProperty WindowTitleBrushProperty = DependencyProperty.Register("WindowTitleBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(Brushes.Transparent)); + public static readonly DependencyProperty NonActiveWindowTitleBrushProperty = DependencyProperty.Register("NonActiveWindowTitleBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(Brushes.Gray)); + public static readonly DependencyProperty NonActiveBorderBrushProperty = DependencyProperty.Register("NonActiveBorderBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(Brushes.Gray)); + public static readonly DependencyProperty GlowBrushProperty = DependencyProperty.Register("GlowBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(null)); public static readonly DependencyProperty NonActiveGlowBrushProperty = DependencyProperty.Register("NonActiveGlowBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(153, 153, 153)))); // #999999 - public static readonly DependencyProperty NonActiveBorderBrushProperty = DependencyProperty.Register("NonActiveBorderBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(Brushes.Gray)); - public static readonly DependencyProperty NonActiveWindowTitleBrushProperty = DependencyProperty.Register("NonActiveWindowTitleBrush", typeof(Brush), typeof(MetroWindow), new PropertyMetadata(Brushes.Gray)); public static readonly DependencyProperty IconTemplateProperty = DependencyProperty.Register("IconTemplate", typeof(DataTemplate), typeof(MetroWindow), new PropertyMetadata(null)); public static readonly DependencyProperty TitleTemplateProperty = DependencyProperty.Register("TitleTemplate", typeof(DataTemplate), typeof(MetroWindow), new PropertyMetadata(null)); diff --git a/MahApps.Metro/Styles/Colors.xaml b/MahApps.Metro/Styles/Colors.xaml index e0c051536d..e416b6a2f2 100644 --- a/MahApps.Metro/Styles/Colors.xaml +++ b/MahApps.Metro/Styles/Colors.xaml @@ -54,6 +54,9 @@ + + + diff --git a/MahApps.Metro/Styles/VS/Colors.xaml b/MahApps.Metro/Styles/VS/Colors.xaml index 084819d7d0..ba237e5e39 100644 --- a/MahApps.Metro/Styles/VS/Colors.xaml +++ b/MahApps.Metro/Styles/VS/Colors.xaml @@ -19,6 +19,8 @@ + + diff --git a/MahApps.Metro/Themes/MetroWindow.xaml b/MahApps.Metro/Themes/MetroWindow.xaml index dbd40e7d12..c217ae6d98 100644 --- a/MahApps.Metro/Themes/MetroWindow.xaml +++ b/MahApps.Metro/Themes/MetroWindow.xaml @@ -580,6 +580,8 @@ + + diff --git a/docs/release-notes/1.3.0.md b/docs/release-notes/1.3.0.md index 2435b7cc8f..72526374e3 100644 --- a/docs/release-notes/1.3.0.md +++ b/docs/release-notes/1.3.0.md @@ -94,6 +94,7 @@ MahApps.Metro v1.3.0 bug fix and feature release. - New dependency property `ShowDialogsOverTitleBar` for `MetroWindow? which allows showing title bar while showing dialogs (fixes #2109) #2534 (@Deadpikle) - Store/Restore focused element methods which will be used automatically with dialogs (but can be also used explicit) #2532 - Added new methods `ShowModalInputExternal`, `ShowModalLoginExternal` and `ShowModalMessageExternal`. #2518 (@adeniltonbs) +- New brush keys `NonActiveWindowTitleColorBrush` and `NonActiveBorderColorBrush` # Closed Issues @@ -159,3 +160,4 @@ MahApps.Metro v1.3.0 bug fix and feature release. - #2525 System.Windows.Media.Animation.DoubleAnimation' cannot use default origin value of 'Infinity - #2552 How to hide flyout title - #2556 Interact with DialogController from Background Thread (@xxMUROxx) +- #2551 Feature Request: NonActiveWindowTitleColorBrush