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) {
let style = {};
for (let key in CustomTheme.defaultColors) {
style[`--color-${key}`] = CustomTheme.defaultColors[key];
}
for (let key in theme.colors) {
style[`--color-${key}`] = theme.colors[key];
}

View File

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

View File

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