From cd67bf486f4bbf10dddfa7cdd93f03cc0c74eb26 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Sun, 17 May 2026 17:54:09 +0200 Subject: [PATCH] Add color theme button 'auto' state --- .../components/ColorThemeButton.vue | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/features/colorTheme/components/ColorThemeButton.vue b/src/features/colorTheme/components/ColorThemeButton.vue index 887c060..728e1ba 100644 --- a/src/features/colorTheme/components/ColorThemeButton.vue +++ b/src/features/colorTheme/components/ColorThemeButton.vue @@ -21,18 +21,30 @@ const colorTheme = inject('colorTheme'); const colorThemeNextMapper = { 'light': 'dark', - 'dark': 'light' + 'dark': 'auto', + 'auto': 'light' }; + +const colorThemeTextMapper = { + 'light': 'Switch to light mode', + 'dark': 'Switch to dark mode', + 'auto': 'Switch to the system theme' +} + +const colorThemeIconMapper = { + 'dark': '⏾', + 'light': '☀', + 'auto': '◐' +}