diff --git a/src/main/window/desktopLyricWindow.ts b/src/main/window/desktopLyricWindow.ts index 24d2fb8..a1e6320 100644 --- a/src/main/window/desktopLyricWindow.ts +++ b/src/main/window/desktopLyricWindow.ts @@ -76,7 +76,11 @@ export function toggleDesktopLyric(show: boolean): void { }) lyricWindow.setBackgroundColor('#00000000') lyricWindow.setAlwaysOnTop(true, 'screen-saver') - lyricWindow.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true }) + // skipTransformProcessType:避免 macOS 把进程切成 UIElementApplication 导致 Dock 图标消失 + lyricWindow.setVisibleOnAllWorkspaces(true, { + visibleOnFullScreen: true, + skipTransformProcessType: true + }) // 在页面样式生效前强制透明,避免 body 默认 --bg 露出白底 lyricWindow.webContents.on('dom-ready', () => { diff --git a/src/renderer/src/pages/Lyric.tsx b/src/renderer/src/pages/Lyric.tsx index 9888238..40d5bab 100644 --- a/src/renderer/src/pages/Lyric.tsx +++ b/src/renderer/src/pages/Lyric.tsx @@ -472,7 +472,8 @@ export default function Lyric(): JSX.Element {
) : null}