Improve auth UI: theme toggle, inline register/login links, and mobile guest frame.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-06 20:14:41 +02:00
co-authored by Cursor
parent 72ff454c90
commit 38864704f1
7 changed files with 151 additions and 29 deletions
+13
View File
@@ -25,10 +25,23 @@ export const useThemeStore = defineStore('theme', () => {
preference.value = value
}
function cyclePreference() {
const order: ThemePreference[] = ['light', 'dark', 'system']
const index = order.indexOf(preference.value)
preference.value = order[(index + 1) % order.length]!
}
/** Explicit light ↔ dark toggle (skips system). */
function toggleLightDark() {
preference.value = isDark.value ? 'light' : 'dark'
}
return {
preference,
resolved,
isDark,
setPreference,
cyclePreference,
toggleLightDark,
}
})