Skip to content

Commit 5d46ece

Browse files
ahmediddmaKeboo
authored andcommitted
Change the MahApps Window Title Background color from Accent to PrimaryDark (#1504)
* Add Highlight Light/Dark color to MaterialDesignAssist for MahApps * Change the MahApps Window Title Background color from Accent to HighlightDark
1 parent dff6e3b commit 5d46ece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MaterialDesignThemes.MahApps/MaterialDesignAssist.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Linq;
3-
using System.Text.RegularExpressions;
42
using System.Windows;
53
using System.Windows.Media;
64
using System.Windows.Media.Animation;
@@ -17,7 +15,9 @@ public static void SetMahApps(this ResourceDictionary resourceDictionary, ITheme
1715

1816
resourceDictionary.SetBrush("Theme.ShowcaseBrush", new SolidColorBrush(theme.SecondaryMid.Color));
1917

18+
resourceDictionary.SetColor("MahApps.Colors.HighlightLight", theme.PrimaryLight.Color);
2019
resourceDictionary.SetColor("MahApps.Colors.Highlight", theme.PrimaryMid.Color);
20+
resourceDictionary.SetColor("MahApps.Colors.HighlightDark", theme.PrimaryDark.Color);
2121
resourceDictionary.SetColor("MahApps.Colors.AccentBase", theme.SecondaryDark.Color);
2222
resourceDictionary.SetColor("MahApps.Colors.Accent", theme.SecondaryMid.Color);
2323
resourceDictionary.SetColor("MahApps.Colors.Accent2", theme.SecondaryMid.Color);
@@ -37,7 +37,7 @@ public static void SetMahApps(this ResourceDictionary resourceDictionary, ITheme
3737
resourceDictionary.SetBrush("MahApps.Brushes.WhiteColor", (Color)resourceDictionary["MahApps.Colors.White"]);
3838
resourceDictionary.SetBrush("MahApps.Brushes.BlackColor", (Color)resourceDictionary["MahApps.Colors.Black"]);
3939

40-
resourceDictionary.SetBrush("MahApps.Brushes.WindowTitle", (Color)resourceDictionary["MahApps.Colors.Accent"]);
40+
resourceDictionary.SetBrush("MahApps.Brushes.WindowTitle", (Color)resourceDictionary["MahApps.Colors.HighlightDark"]);
4141
resourceDictionary.SetBrush("MahApps.Brushes.WindowTitle.NonActive", Color.FromRgb(0x80, 0x80, 0x80));
4242
resourceDictionary.SetBrush("MahApps.Brushes.Border.NonActive", Color.FromRgb(0x80, 0x80, 0x80));
4343

0 commit comments

Comments
 (0)