fixed custom themes using properties from other themes

This commit is contained in:
Jack 2020-07-16 23:24:35 +01:00
parent c9a44d0897
commit 427df3282d

View file

@ -587,10 +587,12 @@ function applyCustomThemeColors() {
array = config.customThemeColors;
if (config.customTheme === true) {
previewTheme("serika_dark");
colorVars.forEach((e, index) => {
document.documentElement.style.setProperty(e, array[index]);
});
} else {
previewTheme(config.theme);
colorVars.forEach((e) => {
document.documentElement.style.setProperty(e, "");
});