mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
ClientTheme, QuickCSS: Cleanup redundant enabled property in setStyles calls
This commit is contained in:
parent
0c349117da
commit
6235a7d9e5
2 changed files with 5 additions and 10 deletions
|
@ -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
|
||||
}`
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue