2024-02-23 17:34:31 +01:00
|
|
|
<template>
|
|
|
|
<v-app-bar :elevation="12">
|
2024-02-24 18:36:48 +01:00
|
|
|
<RouterMenu />
|
2024-02-23 17:34:31 +01:00
|
|
|
<v-app-bar-title>Brain Blast</v-app-bar-title>
|
|
|
|
|
|
|
|
<template v-slot:append>
|
|
|
|
<v-btn @click="toggleTheme" icon="mdi-theme-light-dark"></v-btn>
|
|
|
|
</template>
|
|
|
|
</v-app-bar>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { useTheme } from 'vuetify'
|
2024-02-24 18:36:48 +01:00
|
|
|
import RouterMenu from '@/components/RouterMenu.vue'
|
2024-02-23 17:34:31 +01:00
|
|
|
|
|
|
|
const theme = useTheme()
|
|
|
|
|
|
|
|
function toggleTheme () {
|
|
|
|
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
|
|
|
}
|
|
|
|
</script>
|