fix: color mode preference (#36)
This commit is contained in:
1 parent
b1eaea501a
commit
d42083f93f
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
const color = useColorMode()
|
const color = useColorMode()
|
||||||
function toggleDark() {
|
function toggleDark() {
|
||||||
color.preference = color.preference === 'dark' ? 'light' : 'dark'
|
color.preference = color.value === 'dark' ? 'light' : 'dark'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user