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); }
public static void ChangeTheme(Window window, Accent accent, Theme theme) { ChangeTheme(window.Resources, accent, theme); }
public static void ChangeTheme(Application app, Accent accent, Theme theme) { ChangeTheme(app.Resources, accent, theme); }