This commit is contained in:
bietiaop committed 2025-02-08 23:45:33 +08:00
1 parent c2c2bcbce0
commit 80d03e7688
3 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -87,12 +87,12 @@ export async function InitWebUi(logger: LogWrapper, pathWrapper: NapCatPathWrapp
// 生成css(分为亮色和暗色,靠class和[data-theme="light"])
let css = '.dark, [data-theme="dark"] {';
for (const key in colors.dark) {
css += `--${key}: ${colors.dark[key]};`;
css += `${key}: ${colors.dark[key]};`;
}
css += '}';
css += '.light, [data-theme="light"] {';
for (const key in colors.light) {
css += `--${key}: ${colors.light[key]};`;
css += `${key}: ${colors.light[key]};`;
}
css += '}';