Skip to content

Commit

Permalink
fix app issue #391 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
zendre4 authored Jan 14, 2025
1 parent 8b68f57 commit aea14a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/configuration-store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { setCssVar } from 'quasar';
import { setCssVar, Dark } from 'quasar';
import { Notify } from 'quasar';
import { get } from 'lodash';
import { _fetch } from 'src/util/fetch_api';
Expand Down Expand Up @@ -100,6 +100,8 @@ export const useConfigurationStore = defineStore('configuration-store', {
// apply theme settings
setCssVar('primary', this.getConfigElement('uisettings.PRIMARY_COLOR', 'black'));
setCssVar('secondary', this.getConfigElement('uisettings.SECONDARY_COLOR', 'black'));
const theme = this.getConfigElement('uisettings.theme', 'system');
Dark.set(theme === 'system' ? 'auto' : theme === 'dark');
},
initStore(forceReload = false) {
console.log('loading configuration store');
Expand Down

0 comments on commit aea14a1

Please sign in to comment.