Skip to content
Snippets Groups Projects
Commit c331b94b authored by Mohamed Anis Koubaa's avatar Mohamed Anis Koubaa :speech_balloon:
Browse files

Make theme toggle-able.

parent d60f4db9
No related branches found
No related tags found
No related merge requests found
<script setup>
import { useTheme } from 'vuetify'
const theme = useTheme()
function toggleTheme () {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
</script>
<template>
<v-app-bar
app
......@@ -48,9 +58,9 @@
>
git
</v-btn>
<v-btn @click="toggleTheme">
toggle theme
</v-btn>
<v-spacer />
</v-app-bar>
</template>
<script setup>
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment