Skip to content

Commit 76ee7cd

Browse files
committed
Remove null false stuff
1 parent 78d2f8b commit 76ee7cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MaterialDesignThemes.Wpf/PaletteHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public void ReplacePrimaryColor(Swatch swatch, bool mahapps = false)
4949

5050
foreach (var color in swatch.PrimaryHues)
5151
{
52-
ReplaceEntry(color.Name, color.Color, null, false);
53-
ReplaceEntry(color.Name + "Foreground", color.Foreground, null, false);
52+
ReplaceEntry(color.Name, color.Color);
53+
ReplaceEntry(color.Name + "Foreground", color.Foreground);
5454
}
5555

5656
ReplaceEntry("PrimaryHueLightBrush", new SolidColorBrush(light.Color));
@@ -96,8 +96,8 @@ public void ReplaceAccentColor(Swatch swatch)
9696

9797
foreach (var color in swatch.AccentHues)
9898
{
99-
ReplaceEntry(color.Name, color.Color,null, false);
100-
ReplaceEntry(color.Name + "Foreground", color.Foreground, null, false);
99+
ReplaceEntry(color.Name, color.Color);
100+
ReplaceEntry(color.Name + "Foreground", color.Foreground);
101101
}
102102

103103
ReplaceEntry("SecondaryAccentBrush", new SolidColorBrush(swatch.AccentExemplarHue.Color));

0 commit comments

Comments
 (0)