Skip to content

Commit

Permalink
dont pick random mahapps colours when switching palettes
Browse files Browse the repository at this point in the history
  • Loading branch information
ButchersBoy committed May 25, 2016
1 parent b90e113 commit b905201
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions MaterialDesignThemes.Wpf/PaletteHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,18 @@ private static void ReplacePrimaryColor(Swatch swatch, Hue light, Hue mid, Hue d

//mahapps brushes
ReplaceEntry("HighlightBrush", new SolidColorBrush(dark.Color));
ReplaceEntry("AccentColorBrush", new SolidColorBrush(allHues[5].Color));
ReplaceEntry("AccentColorBrush2", new SolidColorBrush(allHues[4].Color));
ReplaceEntry("AccentColorBrush3", new SolidColorBrush(allHues[3].Color));
ReplaceEntry("AccentColorBrush4", new SolidColorBrush(allHues[2].Color));
ReplaceEntry("AccentColorBrush", new SolidColorBrush(dark.Color));
ReplaceEntry("AccentColorBrush2", new SolidColorBrush(mid.Color));
ReplaceEntry("AccentColorBrush3", new SolidColorBrush(light.Color));
ReplaceEntry("AccentColorBrush4", new SolidColorBrush(light.Color) { Opacity = .82 });
ReplaceEntry("WindowTitleColorBrush", new SolidColorBrush(dark.Color));
ReplaceEntry("AccentSelectedColorBrush", new SolidColorBrush(allHues[5].Foreground));
ReplaceEntry("ProgressBrush", new LinearGradientBrush(dark.Color, allHues[3].Color, 90.0));
ReplaceEntry("CheckmarkFill", new SolidColorBrush(allHues[5].Color));
ReplaceEntry("RightArrowFill", new SolidColorBrush(allHues[5].Color));
ReplaceEntry("IdealForegroundColorBrush", new SolidColorBrush(allHues[5].Foreground));
ReplaceEntry("AccentSelectedColorBrush", new SolidColorBrush(dark.Foreground));
ReplaceEntry("ProgressBrush", new LinearGradientBrush(dark.Color, mid.Color, 90.0));
ReplaceEntry("CheckmarkFill", new SolidColorBrush(dark.Color));
ReplaceEntry("RightArrowFill", new SolidColorBrush(dark.Color));
ReplaceEntry("IdealForegroundColorBrush", new SolidColorBrush(dark.Foreground));
ReplaceEntry("IdealForegroundDisabledBrush", new SolidColorBrush(dark.Color) { Opacity = .4 });
}
}

private static int GetHueIndex(Swatch swatch, Color color, bool isAccent)
{
Expand Down

0 comments on commit b905201

Please sign in to comment.