Browse Source
Initialize "darkMode" with the user client's preference. (#105)
Relates to #88 but doesn't fix it.
pull/108/head
Michel Jung
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/core/stores/appStore.ts
|
|
|
@ -48,7 +48,7 @@ export const useAppStore = create<AppState>()((set) => ({ |
|
|
|
currentPage: "messages", |
|
|
|
rasterSources: [], |
|
|
|
commandPaletteOpen: false, |
|
|
|
darkMode: false, |
|
|
|
darkMode: window.matchMedia('(prefers-color-scheme: dark)').matches, |
|
|
|
accent: "orange", |
|
|
|
connectDialogOpen: false, |
|
|
|
|
|
|
|
|