Fix missing color vars in theme thumbnails

This commit is contained in:
JannisX11 2024-06-13 21:40:13 +02:00
parent b732728a8a
commit e979d7a4a6
3 changed files with 5 additions and 0 deletions

View File

@ -185,6 +185,9 @@ const CustomTheme = {
}, },
getThemeThumbnailStyle(theme) { getThemeThumbnailStyle(theme) {
let style = {}; let style = {};
for (let key in CustomTheme.defaultColors) {
style[`--color-${key}`] = CustomTheme.defaultColors[key];
}
for (let key in theme.colors) { for (let key in theme.colors) {
style[`--color-${key}`] = theme.colors[key]; style[`--color-${key}`] = theme.colors[key];
} }

View File

@ -20,6 +20,7 @@
"light": "#f4f3ff", "light": "#f4f3ff",
"accent_text": "#000006", "accent_text": "#000006",
"subtle_text": "#848891", "subtle_text": "#848891",
"bright_ui_text": "#000006",
"grid": "#495061", "grid": "#495061",
"wireframe": "#576f82", "wireframe": "#576f82",
"checkerboard": "#1c2026" "checkerboard": "#1c2026"

View File

@ -20,6 +20,7 @@
"light": "#111111", "light": "#111111",
"accent_text": "#000006", "accent_text": "#000006",
"subtle_text": "#6b6d72", "subtle_text": "#6b6d72",
"bright_ui_text": "#000006",
"grid": "#b0b2b8", "grid": "#b0b2b8",
"wireframe": "#8797a3", "wireframe": "#8797a3",
"checkerboard": "#eeeeee" "checkerboard": "#eeeeee"