This commit is contained in:
Miodec 2022-03-08 01:51:05 +01:00
parent ebbfc53fee
commit f4ee12b77e

View file

@ -1168,6 +1168,7 @@ export function setAutoSwitchTheme(
export function setCustomTheme(boolean: boolean, nosave?: boolean): boolean {
if (!isConfigValueValid("custom theme", boolean, ["boolean"])) return false;
config.customTheme = boolean;
saveToLocalStorage("customTheme", nosave);
ConfigEvent.dispatch("customTheme", config.customTheme);