Esempio n. 1
0
 public static void ChangeTheme(ResourceDictionary r, Accent accent, Theme theme)
 {
     ThemeIsDark = (theme == Theme.Dark);
     var themeResource = (theme == Theme.Light) ? LightResource : DarkResource;
     Util.ApplyResourceDictionary(themeResource, r);
     Util.ApplyResourceDictionary(accent.Resources, r);
 }
Esempio n. 2
0
 public static void ChangeTheme(Window window, Accent accent, Theme theme)
 {
     ChangeTheme(window.Resources, accent, theme);
 }
Esempio n. 3
0
 public static void ChangeTheme(Application app, Accent accent, Theme theme)
 {
     ChangeTheme(app.Resources, accent, theme);
 }