commit: f1d0a6b0a2c3cba9d757782859b0188c367e9c72
parent f85972310c1ff9cb2553a88b0d2243957102ab93
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 23 Oct 2024 21:54:01 +0300
a lot more extra slots for themes
Diffstat:
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/components/palette_editor/palette_editor.vue b/src/components/palette_editor/palette_editor.vue
@@ -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;
diff --git a/src/i18n/en.json b/src/i18n/en.json
@@ -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": {