Test de commit avec une modif dans brainblatbar
This commit is contained in:
parent
7d6c8d0f10
commit
5aca026391
@ -4,18 +4,24 @@
|
|||||||
<v-app-bar-title>Brain Blast</v-app-bar-title>
|
<v-app-bar-title>Brain Blast</v-app-bar-title>
|
||||||
|
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<v-btn @click="toggleTheme" icon="mdi-theme-light-dark"></v-btn>
|
<v-btn icon @click="toggleTheme">
|
||||||
|
<v-icon>{{ darkTheme ? 'mdi-white-balance-sunny' : 'mdi-moon-waning-crescent' }}</v-icon>
|
||||||
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { ref } from 'vue'
|
||||||
import { useTheme } from 'vuetify'
|
import { useTheme } from 'vuetify'
|
||||||
import RouterMenu from '@/components/RouterMenu.vue'
|
import RouterMenu from '@/components/RouterMenu.vue'
|
||||||
|
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
|
const darkTheme = ref(true)
|
||||||
|
|
||||||
function toggleTheme() {
|
function toggleTheme() {
|
||||||
|
darkTheme.value = !darkTheme.value
|
||||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user