a lot more extra slots for themes

This commit is contained in:
Henry Jameson 2024-10-23 21:54:01 +03:00
parent f85972310c
commit f1d0a6b0a2
2 changed files with 21 additions and 2 deletions

View file

@ -75,9 +75,17 @@ const paletteKeys = [
'cBlue',
'cGreen',
'cOrange',
'wallpaper',
'extra1',
'extra2',
'extra3'
'extra3',
'extra4',
'extra5',
'extra6',
'extra7',
'extra8',
'extra9',
'extra10'
]
const fallback = (key) => {
@ -88,6 +96,9 @@ const fallback = (key) => {
return props.modelValue.accent
}
if (key.startsWith('extra')) {
return '#FF00FF'
}
if (key.startsWith('wallpaper')) {
return '#008080'
}
}
@ -105,7 +116,7 @@ const updatePalette = (paletteKey, value) => {
display: grid;
justify-content: space-around;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 1fr) auto;
grid-template-rows: repeat(5, 1fr) auto;
grid-gap: 0.5em;
align-items: baseline;

View file

@ -770,9 +770,17 @@
"cBlue": "Blue color",
"cGreen": "Green color",
"cOrange": "Orange color",
"wallpaper": "Wallpaper",
"extra1": "Extra 1",
"extra2": "Extra 2",
"extra3": "Extra 3",
"extra4": "Extra 4",
"extra5": "Extra 5",
"extra6": "Extra 6",
"extra7": "Extra 7",
"extra8": "Extra 8",
"extra9": "Extra 9",
"extra10": "Extra 10",
"v2_unsupported": "Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes"
},
"editor": {