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

View file

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