BrainBlast/src/components/BrainBlastBar.vue

22 lines
515 B
Vue
Raw Normal View History

2024-02-23 17:34:31 +01:00
<template>
<v-app-bar :elevation="12">
<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'
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>