From f485a2d476b21c198462ee961923ad1b3f72e1ec Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Thu, 6 Aug 2026 15:24:20 +0200 Subject: [PATCH] feat(color-scheme): add color scheme settings Added an appearance settings section containing a color scheme setting and translations for that. --- src/features/settings/settings.json | 31 +++++++++++++++++++++++++++-- src/locales/de.json | 15 ++++++++++++++ src/locales/en.json | 15 ++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/src/features/settings/settings.json b/src/features/settings/settings.json index 1e36b85..76a4f69 100644 --- a/src/features/settings/settings.json +++ b/src/features/settings/settings.json @@ -1,3 +1,30 @@ { - "contents": [] -} \ No newline at end of file + "contents": [ + { + "name": "appearance", + "i18n": "settings.settings.appearance.title", + "content": [ + { + "name": "colorScheme", + "type": "selection", + "i18n": "settings.settings.appearance.contents.colorScheme.title", + "default": "auto", + "options": [ + { + "name": "auto", + "i18n": "settings.settings.appearance.contents.colorScheme.options.auto" + }, + { + "name": "light", + "i18n": "settings.settings.appearance.contents.colorScheme.options.light" + }, + { + "name": "dark", + "i18n": "settings.settings.appearance.contents.colorScheme.options.dark" + } + ] + } + ] + } + ] +} diff --git a/src/locales/de.json b/src/locales/de.json index 1b82c31..93f7593 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -60,6 +60,21 @@ "option": { "ariaLabel": "Wählt die Option {option} aus" } + }, + "settings": { + "appearance": { + "title": "Erscheinungsbild", + "contents": { + "colorScheme": { + "title": "Farbschema", + "options": { + "auto": "An Systemfarbschema anpassen", + "light": "Hell", + "dark": "Dunkel" + } + } + } + } } } } \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index c47a8c1..4c4c8a1 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -60,6 +60,21 @@ "option": { "ariaLabel": "Selects option {option}" } + }, + "settings": { + "appearance": { + "title": "Appearance", + "contents": { + "colorScheme": { + "title": "Color Scheme", + "options": { + "auto": "Adapt to system color scheme", + "light": "Light", + "dark": "Dark" + } + } + } + } } } } \ No newline at end of file