Initiate Lara panel

This commit is contained in:
Cagatay Civici 2024-01-02 19:52:32 +03:00
parent 40ef030944
commit 684823f5a4
7 changed files with 99 additions and 56 deletions

View file

@ -34,12 +34,12 @@ export default {
});
},
mounted() {
const preferredColorScheme = localStorage.getItem(this.$appState.colorSchemeKey);
/*const preferredColorScheme = localStorage.getItem(this.$appState.colorSchemeKey);
const prefersDarkColorScheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
if ((preferredColorScheme === null && prefersDarkColorScheme) || preferredColorScheme === 'dark') {
this.applyTheme({ theme: 'lara-dark-green', dark: true });
}
})*/
EventBus.on('theme-change', this.themeChangeListener);
},