diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-26 01:59:17 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-26 01:59:17 +0100 |
commit | cce40ab1d2ad8cc1b60fabb4cc8281ea0490a123 (patch) | |
tree | bb96df2676934a9cd4ef2bc5a48957e8b32fb646 /packages/shared/src/stores/SharedStore.ts | |
parent | refactor: Simplify browserViewBounds handling (diff) | |
download | sophie-cce40ab1d2ad8cc1b60fabb4cc8281ea0490a123.tar.gz sophie-cce40ab1d2ad8cc1b60fabb4cc8281ea0490a123.tar.zst sophie-cce40ab1d2ad8cc1b60fabb4cc8281ea0490a123.zip |
feat: Set nativeTheme theme source on dark mode
Diffstat (limited to 'packages/shared/src/stores/SharedStore.ts')
-rw-r--r-- | packages/shared/src/stores/SharedStore.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index 9c7d5ad..9f0afb1 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts | |||
@@ -26,11 +26,15 @@ import { | |||
26 | SnapshotOut, | 26 | SnapshotOut, |
27 | } from 'mobx-state-tree'; | 27 | } from 'mobx-state-tree'; |
28 | 28 | ||
29 | import { config, defaultConfig } from './Config'; | ||
30 | |||
29 | export const sharedStore = types.model("SharedStore", { | 31 | export const sharedStore = types.model("SharedStore", { |
32 | config, | ||
30 | shouldUseDarkColors: true, | 33 | shouldUseDarkColors: true, |
31 | }); | 34 | }); |
32 | 35 | ||
33 | export const emptySharedStore: SharedStoreSnapshotIn = { | 36 | export const emptySharedStore: SharedStoreSnapshotIn = { |
37 | config: defaultConfig, | ||
34 | }; | 38 | }; |
35 | 39 | ||
36 | export interface SharedStore extends Instance<typeof sharedStore> {} | 40 | export interface SharedStore extends Instance<typeof sharedStore> {} |