新增桌面歌词是否延迟滚动设置

This commit is contained in:
lyswhut
2022-01-16 20:00:22 +08:00
parent dbb7f0c683
commit 53078f79a6
9 changed files with 20 additions and 5 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ const path = require('path')
const os = require('os')
const defaultSetting = {
version: '1.0.47',
version: '1.0.48',
player: {
togglePlayMethod: 'listLoop',
highQuality: false,
@@ -27,6 +27,7 @@ const defaultSetting = {
y: null,
theme: 0,
isLockScreen: true,
isDelayScroll: true,
style: {
font: '',
fontSize: 120,
+1
View File
@@ -230,6 +230,7 @@
"setting__click_open": "Click to open",
"setting__desktop_lyric": "Desktop Lyric Settings",
"setting__desktop_lyric_always_on_top": "Make the lyrics always above other windows",
"setting__desktop_lyric_delay_scroll": "Delayed lyrics scroll",
"setting__desktop_lyric_enable": "Display lyrics",
"setting__desktop_lyric_font": "Lyric font",
"setting__desktop_lyric_font_default": "Default",
+1
View File
@@ -230,6 +230,7 @@
"setting__click_open": "点击打开",
"setting__desktop_lyric": "桌面歌词设置",
"setting__desktop_lyric_always_on_top": "使歌词总是在其他窗口之上",
"setting__desktop_lyric_delay_scroll": "延迟歌词滚动",
"setting__desktop_lyric_enable": "显示歌词",
"setting__desktop_lyric_font": "歌词字体",
"setting__desktop_lyric_font_default": "默认",
+1
View File
@@ -230,6 +230,7 @@
"setting__click_open": "點擊打開",
"setting__desktop_lyric": "桌面歌詞設置",
"setting__desktop_lyric_always_on_top": "使歌詞總是在其他窗口之上",
"setting__desktop_lyric_delay_scroll": "延遲歌詞滾動",
"setting__desktop_lyric_enable": "顯示歌詞",
"setting__desktop_lyric_font": "歌詞字體",
"setting__desktop_lyric_font_default": "默認",
+1
View File
@@ -33,6 +33,7 @@ export default {
enable: false,
isLock: true,
isAlwaysOnTop: false,
isDelayScroll: true,
width: 600,
height: 700,
x: -1,
+9 -4
View File
@@ -22,6 +22,7 @@ export default {
type: Object,
default() {
return {
isDelayScroll: true,
style: {
font: '',
fontSize: 125,
@@ -127,10 +128,14 @@ export default {
if (n < 0) return
if (n == 0 && this.isSetedLines) return this.isSetedLines = false
if (o == null || n - o != 1) return this.handleScrollLrc()
delayScrollTimeout = setTimeout(() => {
delayScrollTimeout = null
this.handleScrollLrc(600)
}, 600)
if (this.lrcConfig.isDelayScroll) {
delayScrollTimeout = setTimeout(() => {
delayScrollTimeout = null
this.handleScrollLrc(600)
}, 600)
} else {
this.handleScrollLrc()
}
},
immediate: true,
},
@@ -5,6 +5,8 @@ dd
base-checkbox(id="setting_desktop_lyric_enable" v-model="currentStting.desktopLyric.enable" :label="$t('setting__desktop_lyric_enable')")
.gap-top
base-checkbox(id="setting_desktop_lyric_lock" v-model="currentStting.desktopLyric.isLock" :label="$t('setting__desktop_lyric_lock')")
.gap-top
base-checkbox(id="setting_desktop_lyric_delayScroll" v-model="currentStting.desktopLyric.isDelayScroll" :label="$t('setting__desktop_lyric_delay_scroll')")
.gap-top
base-checkbox(id="setting_desktop_lyric_alwaysOnTop" v-model="currentStting.desktopLyric.isAlwaysOnTop" :label="$t('setting__desktop_lyric_always_on_top')")
.gap-top
+2
View File
@@ -17,6 +17,8 @@ export const currentStting = ref({
x: -1,
y: -1,
theme: '',
isLockScreen: true,
isDelayScroll: true,
style: {
font: '',
fontSize: 125,