@@ -183,18 +183,18 @@ private static void ReplacePrimaryColor(Swatch swatch, Hue light, Hue mid, Hue d
183
183
184
184
//mahapps brushes
185
185
ReplaceEntry ( "HighlightBrush" , new SolidColorBrush ( dark . Color ) ) ;
186
- ReplaceEntry ( "AccentColorBrush" , new SolidColorBrush ( allHues [ 5 ] . Color ) ) ;
187
- ReplaceEntry ( "AccentColorBrush2" , new SolidColorBrush ( allHues [ 4 ] . Color ) ) ;
188
- ReplaceEntry ( "AccentColorBrush3" , new SolidColorBrush ( allHues [ 3 ] . Color ) ) ;
189
- ReplaceEntry ( "AccentColorBrush4" , new SolidColorBrush ( allHues [ 2 ] . Color ) ) ;
186
+ ReplaceEntry ( "AccentColorBrush" , new SolidColorBrush ( dark . Color ) ) ;
187
+ ReplaceEntry ( "AccentColorBrush2" , new SolidColorBrush ( mid . Color ) ) ;
188
+ ReplaceEntry ( "AccentColorBrush3" , new SolidColorBrush ( light . Color ) ) ;
189
+ ReplaceEntry ( "AccentColorBrush4" , new SolidColorBrush ( light . Color ) { Opacity = .82 } ) ;
190
190
ReplaceEntry ( "WindowTitleColorBrush" , new SolidColorBrush ( dark . Color ) ) ;
191
- ReplaceEntry ( "AccentSelectedColorBrush" , new SolidColorBrush ( allHues [ 5 ] . Foreground ) ) ;
192
- ReplaceEntry ( "ProgressBrush" , new LinearGradientBrush ( dark . Color , allHues [ 3 ] . Color , 90.0 ) ) ;
193
- ReplaceEntry ( "CheckmarkFill" , new SolidColorBrush ( allHues [ 5 ] . Color ) ) ;
194
- ReplaceEntry ( "RightArrowFill" , new SolidColorBrush ( allHues [ 5 ] . Color ) ) ;
195
- ReplaceEntry ( "IdealForegroundColorBrush" , new SolidColorBrush ( allHues [ 5 ] . Foreground ) ) ;
191
+ ReplaceEntry ( "AccentSelectedColorBrush" , new SolidColorBrush ( dark . Foreground ) ) ;
192
+ ReplaceEntry ( "ProgressBrush" , new LinearGradientBrush ( dark . Color , mid . Color , 90.0 ) ) ;
193
+ ReplaceEntry ( "CheckmarkFill" , new SolidColorBrush ( dark . Color ) ) ;
194
+ ReplaceEntry ( "RightArrowFill" , new SolidColorBrush ( dark . Color ) ) ;
195
+ ReplaceEntry ( "IdealForegroundColorBrush" , new SolidColorBrush ( dark . Foreground ) ) ;
196
196
ReplaceEntry ( "IdealForegroundDisabledBrush" , new SolidColorBrush ( dark . Color ) { Opacity = .4 } ) ;
197
- }
197
+ }
198
198
199
199
private static int GetHueIndex ( Swatch swatch , Color color , bool isAccent )
200
200
{
0 commit comments