@@ -15,17 +15,29 @@ public static void SetMahApps(this ResourceDictionary resourceDictionary, ITheme
15
15
resourceDictionary . SetMahAppsBaseTheme ( baseTheme ) ;
16
16
17
17
resourceDictionary . SetBrush ( "HighlightBrush" , theme . PrimaryDark . Color ) ;
18
+ resourceDictionary . SetBrush ( "AccentBaseColorBrush" , theme . PrimaryDark . Color ) ;
18
19
resourceDictionary . SetBrush ( "AccentColorBrush" , theme . PrimaryDark . Color ) ;
19
- resourceDictionary . SetBrush ( "AccentColorBrush2" , theme . PrimaryMid . Color ) ;
20
+ resourceDictionary . SetBrush ( "AccentColorBrush2" , theme . PrimaryMid . Color , 0.8 ) ;
20
21
resourceDictionary . SetBrush ( "AccentColorBrush3" , theme . PrimaryLight . Color ) ;
21
- resourceDictionary . SetBrush ( "AccentColorBrush4" , theme . PrimaryLight . Color , 0.82 ) ;
22
+ resourceDictionary . SetBrush ( "AccentColorBrush4" , theme . PrimaryLight . Color , 0.8 ) ;
22
23
resourceDictionary . SetBrush ( "WindowTitleColorBrush" , theme . PrimaryDark . Color ) ;
23
- resourceDictionary . SetBrush ( "AccentSelectedColorBrush" , theme . PrimaryDark . GetForegroundColor ( ) ) ;
24
+ resourceDictionary . SetBrush ( "AccentSelectedColorBrush" , theme . PrimaryMid . GetForegroundColor ( ) ) ;
24
25
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 ( ) ) ;
28
29
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 ) ;
29
41
}
30
42
31
43
private static void SetBrush ( this ResourceDictionary sourceDictionary , string name , Color value , double opacity = 1.0 )
0 commit comments