启用桌面歌词时,取消对歌词窗口的聚焦(#1273)

pull/1295/head
lyswhut 2023-03-29 12:49:30 +08:00
parent 85946efd0b
commit f7a2d9fd06
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
### 优化
- 优化对系统Media Session的支持现在切歌不会再会导致信息丢失的问题了
- 启用桌面歌词时,取消对歌词窗口的聚焦
### 修复

View File

@ -81,6 +81,7 @@ const winEvent = () => {
// browserWindow!.setAlwaysOnTop(global.lx.appSetting['desktopLyric.isAlwaysOnTop'], 'screen-saver')
// }
if (global.lx.appSetting['desktopLyric.isAlwaysOnTop'] && global.lx.appSetting['desktopLyric.isAlwaysOnTopLoop']) alwaysOnTopTools.startLoop()
browserWindow!.blur()
})
}

View File

@ -1,11 +1,11 @@
<html lang="cn">
<!DOCTYPE html>
<html lang="en" style="background-color: transparent;">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>桌面歌词-洛雪音乐助手</title>
</head>
<body>
<body id="body" style="background-color: transparent;">
<div id="root"></div>
<script>
window.dom_style_theme = document.createElement('style')