mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
small adjustment on dark mode
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
cc619e8947
commit
8c48debc06
1 changed files with 3 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
<header
|
||||
class="mb-2 flex flex-row items-center justify-end space-x-2 opacity-60"
|
||||
>
|
||||
<div @click="toggleMode">
|
||||
<div @click="() => toggleDark()">
|
||||
<IconLightDark class="h-6 w-6 cursor-pointer" />
|
||||
</div>
|
||||
<!-- <div><IconMenu class="h-8 w-8 cursor-pointer"></IconMenu></div> -->
|
||||
|
@ -10,11 +10,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useColorMode } from '@vueuse/core'
|
||||
import { useDark, useToggle } from '@vueuse/core'
|
||||
import { IconLightDark, IconMenu } from '@/components/icons'
|
||||
const mode = useColorMode()
|
||||
|
||||
const toggleMode = () => {
|
||||
mode.value = mode.value === 'dark' ? 'light' : 'dark'
|
||||
}
|
||||
const toggleDark = useToggle(useDark())
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue