From 5261c2526ddbb83c2a73e16fe93ed6cb5b65b2f7 Mon Sep 17 00:00:00 2001 From: zhushenwudi <55681140@163.com> Date: Sat, 8 Aug 2026 23:59:11 +0800 Subject: [PATCH] fix lyric bugs --- src/main/window/desktopLyricWindow.ts | 6 +++++- src/renderer/src/pages/Lyric.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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}