aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/SharedStore.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 01:59:17 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 01:59:17 +0100
commitcce40ab1d2ad8cc1b60fabb4cc8281ea0490a123 (patch)
treebb96df2676934a9cd4ef2bc5a48957e8b32fb646 /packages/shared/src/stores/SharedStore.ts
parentrefactor: Simplify browserViewBounds handling (diff)
downloadsophie-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.ts4
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
29import { config, defaultConfig } from './Config';
30
29export const sharedStore = types.model("SharedStore", { 31export const sharedStore = types.model("SharedStore", {
32 config,
30 shouldUseDarkColors: true, 33 shouldUseDarkColors: true,
31}); 34});
32 35
33export const emptySharedStore: SharedStoreSnapshotIn = { 36export const emptySharedStore: SharedStoreSnapshotIn = {
37 config: defaultConfig,
34}; 38};
35 39
36export interface SharedStore extends Instance<typeof sharedStore> {} 40export interface SharedStore extends Instance<typeof sharedStore> {}