mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 16:28:04 +08:00
fixed custom themes using properties from other themes
This commit is contained in:
parent
c9a44d0897
commit
427df3282d
1 changed files with 2 additions and 0 deletions
|
|
@ -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, "");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue