feat: add auto/system color scheme option
- Extend ColorScheme type to include 'auto' alongside 'light' and 'dark' - Allow 'auto' to persist to DB and cookie (remove the explicit guard) - Server default and new-user default both changed to 'auto' - layout.tsx: omit inline backgroundColor when scheme is 'auto' - Avatar menu: replace toggle item with a Combobox (Auto/Light/Dark) mirroring the existing language selector pattern - Appearance settings form and color scheme comboboxes updated with IconDeviceDesktop for the new auto option - Spotlight command handles 'auto' state via useComputedColorScheme - Old import: map legacy 'environment' value to 'auto' - Add translation keys for 'auto' in all three relevant scopes
This commit is contained in:
1 parent
327611dfc6
commit
0d2675e1bb
12 files changed
+124
-67
No files matched your search
@@ -36,7 +36,7 @@ export const createSessionAsync = async (
|
||||
...user,
|
||||
email: user.email ?? "",
|
||||
permissions: await getCurrentUserPermissionsAsync(db, user.id),
|
||||
colorScheme: "dark",
|
||||
colorScheme: "auto",
|
||||
},
|
||||
} as Session;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user