ClientTheme, QuickCSS: Cleanup redundant enabled property in setStyles calls

This commit is contained in:
Sqaaakoi 2025-01-20 05:33:02 +13:00
parent 0c349117da
commit 6235a7d9e5
No known key found for this signature in database
2 changed files with 5 additions and 10 deletions

View file

@ -163,8 +163,7 @@ function generateColorOffsets(styles) {
source: [ source: [
`.theme-light {\n ${genThemeSpecificOffsets(variableLightness, lightVariableRegex, "--primary-345-hsl")} \n}`, `.theme-light {\n ${genThemeSpecificOffsets(variableLightness, lightVariableRegex, "--primary-345-hsl")} \n}`,
`.theme-dark {\n ${genThemeSpecificOffsets(variableLightness, darkVariableRegex, "--primary-600-hsl")} \n}`, `.theme-dark {\n ${genThemeSpecificOffsets(variableLightness, darkVariableRegex, "--primary-600-hsl")} \n}`,
].join("\n\n"), ].join("\n\n")
enabled: true
}); });
} }
@ -197,8 +196,7 @@ function generateLightModeFixes(styles) {
reassignBackgrounds, reassignBackgrounds,
reassignBackgroundColors, reassignBackgroundColors,
reassignVariables, reassignVariables,
].join("\n\n"), ].join("\n\n")
enabled: true
}); });
} }
@ -220,8 +218,7 @@ function updateColorVars(color: string) {
--theme-h: ${hue}; --theme-h: ${hue};
--theme-s: ${saturation}%; --theme-s: ${saturation}%;
--theme-l: ${lightness}%; --theme-l: ${lightness}%;
}`, }`
enabled: true
}); });
} }

View file

@ -29,8 +29,7 @@ async function initSystemValues() {
setStyle({ setStyle({
name: "vencord-os-theme-values", name: "vencord-os-theme-values",
source: `:root{${variables}}`, source: `:root{${variables}}`
enabled: true
}); });
} }
@ -72,8 +71,7 @@ async function initThemes() {
setStyle({ setStyle({
name: "vencord-themes", name: "vencord-themes",
source: links.map(link => `@import url("${link.trim()}");`).join("\n"), source: links.map(link => `@import url("${link.trim()}");`).join("\n")
enabled: true
}); });
} }