Skip to content

Commit aaa875e

Browse files
committed
2 parents 5540ae9 + 5b6161f commit aaa875e

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

MaterialDesignThemes.MahApps/MaterialDesignAssist.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,29 @@ public static void SetMahApps(this ResourceDictionary resourceDictionary, ITheme
1515
resourceDictionary.SetMahAppsBaseTheme(baseTheme);
1616

1717
resourceDictionary.SetBrush("HighlightBrush", theme.PrimaryDark.Color);
18+
resourceDictionary.SetBrush("AccentBaseColorBrush", theme.PrimaryDark.Color);
1819
resourceDictionary.SetBrush("AccentColorBrush", theme.PrimaryDark.Color);
19-
resourceDictionary.SetBrush("AccentColorBrush2", theme.PrimaryMid.Color);
20+
resourceDictionary.SetBrush("AccentColorBrush2", theme.PrimaryMid.Color, 0.8);
2021
resourceDictionary.SetBrush("AccentColorBrush3", theme.PrimaryLight.Color);
21-
resourceDictionary.SetBrush("AccentColorBrush4", theme.PrimaryLight.Color, 0.82);
22+
resourceDictionary.SetBrush("AccentColorBrush4", theme.PrimaryLight.Color, 0.8);
2223
resourceDictionary.SetBrush("WindowTitleColorBrush", theme.PrimaryDark.Color);
23-
resourceDictionary.SetBrush("AccentSelectedColorBrush", theme.PrimaryDark.GetForegroundColor());
24+
resourceDictionary.SetBrush("AccentSelectedColorBrush", theme.PrimaryMid.GetForegroundColor());
2425
resourceDictionary.SetBrush("ProgressBrush", new LinearGradientBrush(theme.PrimaryDark.Color, theme.PrimaryMid.Color, 90.0));
25-
resourceDictionary.SetBrush("CheckmarkFill", theme.PrimaryDark.Color);
26-
resourceDictionary.SetBrush("RightArrowFill", theme.PrimaryDark.Color);
27-
resourceDictionary.SetBrush("IdealForegroundColorBrush", theme.PrimaryDark.GetForegroundColor());
26+
resourceDictionary.SetBrush("CheckmarkFill", theme.PrimaryMid.Color);
27+
resourceDictionary.SetBrush("RightArrowFill", theme.PrimaryMid.Color);
28+
resourceDictionary.SetBrush("IdealForegroundColorBrush", theme.PrimaryMid.GetForegroundColor());
2829
resourceDictionary.SetBrush("IdealForegroundDisabledBrush", theme.PrimaryDark.GetForegroundColor(), 0.4);
30+
31+
resourceDictionary.SetBrush("MetroDataGrid.HighlightBrush", theme.PrimaryMid.Color);
32+
resourceDictionary.SetBrush("MetroDataGrid.HighlightTextBrush", theme.PrimaryMid.GetForegroundColor());
33+
resourceDictionary.SetBrush("MetroDataGrid.MouseOverHighlightBrush", theme.PrimaryLight.Color);
34+
resourceDictionary.SetBrush("MetroDataGrid.FocusBorderBrush", theme.PrimaryMid.Color);
35+
resourceDictionary.SetBrush("MetroDataGrid.InactiveSelectionHighlightBrush", theme.PrimaryMid.Color);
36+
resourceDictionary.SetBrush("MetroDataGrid.InactiveSelectionHighlightTextBrush", theme.PrimaryMid.GetForegroundColor());
37+
38+
resourceDictionary.SetBrush("MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchBrush.Win10", theme.PrimaryMid.Color);
39+
resourceDictionary.SetBrush("MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchMouseOverBrush.Win10", theme.PrimaryMid.Color, 0.8);
40+
resourceDictionary.SetBrush("MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorCheckedBrush.Win10", theme.PrimaryMid.GetForegroundColor(), 0.8);
2941
}
3042

3143
private static void SetBrush(this ResourceDictionary sourceDictionary, string name, Color value, double opacity = 1.0)

0 commit comments

Comments
 (0)