mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix missing color vars in theme thumbnails
This commit is contained in:
parent
b732728a8a
commit
e979d7a4a6
@ -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];
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user