Skip to content

Commit 92de64c

Browse files
committed
Update PaletteHelper.cs
1 parent 9291a78 commit 92de64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/PaletteHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public virtual void SetLightDark(bool isDark)
2727

2828
var existingMahAppsResourceDictionary = Application.Current.Resources.MergedDictionaries
2929
.Where(rd => rd.Source != null)
30-
.SingleOrDefault(rd => Regex.Match(rd.Source.OriginalString, @"(\/MahApps.Metro;component\/Styles\/Accents\/)((BaseLight)|(BaseDark))").Success);
30+
.SingleOrDefault(rd => Regex.Match(rd.Source.AbsolutePath, @"(\/MahApps.Metro;component\/Styles\/Accents\/)((BaseLight)|(BaseDark))").Success);
3131
if (existingMahAppsResourceDictionary == null) return;
3232

3333
source =

0 commit comments

Comments
 (0)