Skip to content

Commit da53020

Browse files
feat: add accent color block
1 parent 2517085 commit da53020

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

app/components/AccentColorPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { accentColors, selectedAccentColor, setAccentColor } = useAccentColor()
55
</script>
66

77
<template>
8-
<div role="listbox" aria-label="Accent colors" class="flex items-center justify-between">
8+
<div role="listbox" aria-label="Accent colors" class="flex items-center gap-4">
99
<button
1010
v-for="color in accentColors"
1111
:key="color.id"

app/pages/settings.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,13 @@ useSeoMeta({
120120
</a>
121121
</div>
122122

123-
<div class="p-3 border-t border-border">
124-
<AccentColorPicker />
123+
<div class="pt-2 mt-2 border-t border-border">
124+
<h2 class="text-xs text-fg-subtle uppercase tracking-wider px-2 py-1">
125+
{{ $t('settings.accent_colors') }}
126+
</h2>
127+
<div class="px-2 py-2">
128+
<AccentColorPicker />
129+
</div>
125130
</div>
126131
</div>
127132
</main>

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"theme_dark": "Dark",
4949
"theme_system": "System",
5050
"language": "Language",
51-
"help_translate": "Help translate npmx"
51+
"help_translate": "Help translate npmx",
52+
"accent_colors": "Accent colors"
5253
},
5354
"common": {
5455
"loading": "Loading...",

i18n/locales/it.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"relative_dates": "Date relative",
3838
"include_types": "Includi {'@'}types durante l'installazione",
3939
"language": "Lingua",
40-
"help_translate": "Aiuta a tradurre npmx"
40+
"help_translate": "Aiuta a tradurre npmx",
41+
"accent_colors": "Colori di accento"
4142
},
4243
"common": {
4344
"loading": "Caricando...",

0 commit comments

Comments
 (0)