lx-music-desktop/src/renderer-lyric/useApp/useLyric.ts
2022-10-29 11:36:35 +08:00

14 lines
493 B
TypeScript

import { watch } from '@common/utils/vueTools'
import { setLyric, setVertical } from '@lyric/core/lyric'
import { setting } from '@lyric/store/state'
export default () => {
watch(() => setting['player.isShowLyricTranslation'], setLyric)
watch(() => setting['player.isShowLyricRoma'], setLyric)
watch(() => setting['player.isPlayLxlrc'], setLyric)
watch(() => setting['desktopLyric.direction'], (direction) => {
setVertical(direction == 'vertical')
// if (isPlay.value)
})
}