Skip to content

Commit

Permalink
fix: WaveThemeFish isDark
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Jul 22, 2024
1 parent 59acd33 commit 3340546
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions theme/components/themes/WaveThemeFish.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<script lang="ts" setup>
import { onMounted, watch } from 'vue'
import { useCssVar } from '@vueuse/core'
import { isDark } from '../../client'
import { useAppStore } from 'valaxy'
const props = withDefaults(defineProps<{
color?: string
}>(), { })
const appStore = useAppStore()
let renderer: Renderer
watch(isDark, async () => {
watch(() => appStore.isDark, async () => {
setTimeout(() => {
renderer.setFishColor(useCssVar('--va-c-bg').value)
}, 0)
Expand Down

0 comments on commit 3340546

Please sign in to comment.