2020-01-21 15:51:51 +01:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-08-03 18:40:05 +02:00
|
|
|
import { getCurrentInstance } from 'vue'
|
2020-01-21 15:51:51 +01:00
|
|
|
import { getDarkMode } from '../../utils/localStorage'
|
|
|
|
|
|
|
|
|
|
export default {
|
2021-11-19 21:44:36 +01:00
|
|
|
name: 'ThemedLayout',
|
2022-08-03 18:40:05 +02:00
|
|
|
setup() {
|
|
|
|
|
const instance = getCurrentInstance()
|
|
|
|
|
if (instance) {
|
|
|
|
|
instance.proxy.$vuetify.theme.dark = getDarkMode()
|
|
|
|
|
}
|
2020-01-21 15:51:51 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|