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
parent
commit
7748d25886
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/stores/appStore.ts

2
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,

Loading…
Cancel
Save