diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-01-08 21:41:11 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-01-08 21:41:11 +0100 |
commit | 6aab4ab890c0ca2f99bc615b7048533774f6ff68 (patch) | |
tree | 088d86001efa2a6d825ad51259a2df9b62b201fe /src/stores/UIStore.js | |
parent | wip (diff) | |
download | ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.tar.gz ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.tar.zst ferdium-app-6aab4ab890c0ca2f99bc615b7048533774f6ff68.zip |
Make packages work in electron, node and web
Diffstat (limited to 'src/stores/UIStore.js')
-rw-r--r-- | src/stores/UIStore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/UIStore.js b/src/stores/UIStore.js index e3c5103da..bb7965a4a 100644 --- a/src/stores/UIStore.js +++ b/src/stores/UIStore.js | |||
@@ -1,5 +1,5 @@ | |||
1 | import { action, observable, computed } from 'mobx'; | 1 | import { action, observable, computed } from 'mobx'; |
2 | import * as theme from '@meetfranz/theme'; | 2 | import { theme } from '@meetfranz/theme'; |
3 | 3 | ||
4 | import Store from './lib/Store'; | 4 | import Store from './lib/Store'; |
5 | 5 | ||
@@ -23,10 +23,10 @@ export default class UIStore extends Store { | |||
23 | 23 | ||
24 | @computed get theme() { | 24 | @computed get theme() { |
25 | if (this.stores.settings.all.app.darkMode) { | 25 | if (this.stores.settings.all.app.darkMode) { |
26 | return theme.default('dark'); | 26 | return theme('dark'); |
27 | } | 27 | } |
28 | 28 | ||
29 | return theme.default('default'); | 29 | return theme('default'); |
30 | } | 30 | } |
31 | 31 | ||
32 | // Actions | 32 | // Actions |