mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Initiate Lara panel
This commit is contained in:
parent
40ef030944
commit
684823f5a4
7 changed files with 99 additions and 56 deletions
4
app.vue
4
app.vue
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue