mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 23:38:32 +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: [
|
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
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue