新增设置-桌面歌词设置-鼠标移入歌词区域时降低歌词透明度(#883)

This commit is contained in:
lyswhut
2022-06-14 11:43:18 +08:00
parent 283bdd6246
commit aa5e621184
10 changed files with 88 additions and 7 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ const setLrcConfig = () => {
if (isLock != desktopLyric.isLock) {
isLock = desktopLyric.isLock
if (desktopLyric.isLock) {
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: true })
} else {
global.modules.lyricWindow.setIgnoreMouseEvents(false)
global.modules.lyricWindow.setIgnoreMouseEvents(false, { forward: true })
}
}
if (isAlwaysOnTop != desktopLyric.isAlwaysOnTop) {
+1 -1
View File
@@ -64,7 +64,7 @@ const winEvent = lyricWindow => {
lyricWindow.once('ready-to-show', () => {
lyricWindow.show()
if (global.appSetting.desktopLyric.isLock) {
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: true })
}
// linux下每次重开时貌似要重新设置置顶
if (isLinux && global.appSetting.desktopLyric.isAlwaysOnTop) {