新增桌面歌词是否延迟滚动设置
parent
dbb7f0c683
commit
53078f79a6
|
@ -3,6 +3,7 @@
|
||||||
- 新增“便携”功能,在Windows平台下,若程序目录下存在 portable 目录,则自动使用此目录作为数据存储目录
|
- 新增“便携”功能,在Windows平台下,若程序目录下存在 portable 目录,则自动使用此目录作为数据存储目录
|
||||||
- 新增 Scheme URL 支持,同时发布lx-music-script项目配合使用(一个油猴脚本,可以在浏览器中的官方平台网页直接调用LX Music),Scheme URL的调用说明看Readme.md文档的Scheme URL支持部分
|
- 新增 Scheme URL 支持,同时发布lx-music-script项目配合使用(一个油猴脚本,可以在浏览器中的官方平台网页直接调用LX Music),Scheme URL的调用说明看Readme.md文档的Scheme URL支持部分
|
||||||
- 新增启动参数`-proxy-server`与`-proxy-bypass-list`,详细介绍看Readme.md文档的启动参数部分
|
- 新增启动参数`-proxy-server`与`-proxy-bypass-list`,详细介绍看Readme.md文档的启动参数部分
|
||||||
|
- 新增桌面歌词是否延迟滚动设置,默认开启,若你不想要桌面歌词延迟滚动可以去设置-桌面歌词设置关掉
|
||||||
|
|
||||||
### 优化
|
### 优化
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ const path = require('path')
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
|
|
||||||
const defaultSetting = {
|
const defaultSetting = {
|
||||||
version: '1.0.47',
|
version: '1.0.48',
|
||||||
player: {
|
player: {
|
||||||
togglePlayMethod: 'listLoop',
|
togglePlayMethod: 'listLoop',
|
||||||
highQuality: false,
|
highQuality: false,
|
||||||
|
@ -27,6 +27,7 @@ const defaultSetting = {
|
||||||
y: null,
|
y: null,
|
||||||
theme: 0,
|
theme: 0,
|
||||||
isLockScreen: true,
|
isLockScreen: true,
|
||||||
|
isDelayScroll: true,
|
||||||
style: {
|
style: {
|
||||||
font: '',
|
font: '',
|
||||||
fontSize: 120,
|
fontSize: 120,
|
||||||
|
|
|
@ -230,6 +230,7 @@
|
||||||
"setting__click_open": "Click to open",
|
"setting__click_open": "Click to open",
|
||||||
"setting__desktop_lyric": "Desktop Lyric Settings",
|
"setting__desktop_lyric": "Desktop Lyric Settings",
|
||||||
"setting__desktop_lyric_always_on_top": "Make the lyrics always above other windows",
|
"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_enable": "Display lyrics",
|
||||||
"setting__desktop_lyric_font": "Lyric font",
|
"setting__desktop_lyric_font": "Lyric font",
|
||||||
"setting__desktop_lyric_font_default": "Default",
|
"setting__desktop_lyric_font_default": "Default",
|
||||||
|
|
|
@ -230,6 +230,7 @@
|
||||||
"setting__click_open": "点击打开",
|
"setting__click_open": "点击打开",
|
||||||
"setting__desktop_lyric": "桌面歌词设置",
|
"setting__desktop_lyric": "桌面歌词设置",
|
||||||
"setting__desktop_lyric_always_on_top": "使歌词总是在其他窗口之上",
|
"setting__desktop_lyric_always_on_top": "使歌词总是在其他窗口之上",
|
||||||
|
"setting__desktop_lyric_delay_scroll": "延迟歌词滚动",
|
||||||
"setting__desktop_lyric_enable": "显示歌词",
|
"setting__desktop_lyric_enable": "显示歌词",
|
||||||
"setting__desktop_lyric_font": "歌词字体",
|
"setting__desktop_lyric_font": "歌词字体",
|
||||||
"setting__desktop_lyric_font_default": "默认",
|
"setting__desktop_lyric_font_default": "默认",
|
||||||
|
|
|
@ -230,6 +230,7 @@
|
||||||
"setting__click_open": "點擊打開",
|
"setting__click_open": "點擊打開",
|
||||||
"setting__desktop_lyric": "桌面歌詞設置",
|
"setting__desktop_lyric": "桌面歌詞設置",
|
||||||
"setting__desktop_lyric_always_on_top": "使歌詞總是在其他窗口之上",
|
"setting__desktop_lyric_always_on_top": "使歌詞總是在其他窗口之上",
|
||||||
|
"setting__desktop_lyric_delay_scroll": "延遲歌詞滾動",
|
||||||
"setting__desktop_lyric_enable": "顯示歌詞",
|
"setting__desktop_lyric_enable": "顯示歌詞",
|
||||||
"setting__desktop_lyric_font": "歌詞字體",
|
"setting__desktop_lyric_font": "歌詞字體",
|
||||||
"setting__desktop_lyric_font_default": "默認",
|
"setting__desktop_lyric_font_default": "默認",
|
||||||
|
|
|
@ -33,6 +33,7 @@ export default {
|
||||||
enable: false,
|
enable: false,
|
||||||
isLock: true,
|
isLock: true,
|
||||||
isAlwaysOnTop: false,
|
isAlwaysOnTop: false,
|
||||||
|
isDelayScroll: true,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 700,
|
height: 700,
|
||||||
x: -1,
|
x: -1,
|
||||||
|
|
|
@ -22,6 +22,7 @@ export default {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {
|
||||||
return {
|
return {
|
||||||
|
isDelayScroll: true,
|
||||||
style: {
|
style: {
|
||||||
font: '',
|
font: '',
|
||||||
fontSize: 125,
|
fontSize: 125,
|
||||||
|
@ -127,10 +128,14 @@ export default {
|
||||||
if (n < 0) return
|
if (n < 0) return
|
||||||
if (n == 0 && this.isSetedLines) return this.isSetedLines = false
|
if (n == 0 && this.isSetedLines) return this.isSetedLines = false
|
||||||
if (o == null || n - o != 1) return this.handleScrollLrc()
|
if (o == null || n - o != 1) return this.handleScrollLrc()
|
||||||
|
if (this.lrcConfig.isDelayScroll) {
|
||||||
delayScrollTimeout = setTimeout(() => {
|
delayScrollTimeout = setTimeout(() => {
|
||||||
delayScrollTimeout = null
|
delayScrollTimeout = null
|
||||||
this.handleScrollLrc(600)
|
this.handleScrollLrc(600)
|
||||||
}, 600)
|
}, 600)
|
||||||
|
} else {
|
||||||
|
this.handleScrollLrc()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
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')")
|
base-checkbox(id="setting_desktop_lyric_enable" v-model="currentStting.desktopLyric.enable" :label="$t('setting__desktop_lyric_enable')")
|
||||||
.gap-top
|
.gap-top
|
||||||
base-checkbox(id="setting_desktop_lyric_lock" v-model="currentStting.desktopLyric.isLock" :label="$t('setting__desktop_lyric_lock')")
|
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
|
.gap-top
|
||||||
base-checkbox(id="setting_desktop_lyric_alwaysOnTop" v-model="currentStting.desktopLyric.isAlwaysOnTop" :label="$t('setting__desktop_lyric_always_on_top')")
|
base-checkbox(id="setting_desktop_lyric_alwaysOnTop" v-model="currentStting.desktopLyric.isAlwaysOnTop" :label="$t('setting__desktop_lyric_always_on_top')")
|
||||||
.gap-top
|
.gap-top
|
||||||
|
|
|
@ -17,6 +17,8 @@ export const currentStting = ref({
|
||||||
x: -1,
|
x: -1,
|
||||||
y: -1,
|
y: -1,
|
||||||
theme: '',
|
theme: '',
|
||||||
|
isLockScreen: true,
|
||||||
|
isDelayScroll: true,
|
||||||
style: {
|
style: {
|
||||||
font: '',
|
font: '',
|
||||||
fontSize: 125,
|
fontSize: 125,
|
||||||
|
|
Loading…
Reference in New Issue