Skip to content

Commit 5c0b52d

Browse files
committed
🐛fix(lyric):修复 macOS 切换桌面歌词时的渲染残留问题
- 通过在窗口创建时设置 'hasShadow: false' 禁用了 macOS 透明窗口的阴影,从而解决了切换歌词时因系统默认淡出动画导致的渲染残留问题。 - 此修改仅针对 macOS 平台,确保了 Windows 和 Linux 平台的原有功能和视觉效果不受任何影响。 - 保留了桌面歌词的透明和锁定穿透核心功能。
1 parent d03b4e7 commit 5c0b52d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

electron/main/windows/lyric-window.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class LyricWindow {
6060
x,
6161
y,
6262
transparent: true,
63+
hasShadow: false,
6364
backgroundColor: "rgba(0, 0, 0, 0)",
6465
alwaysOnTop: true,
6566
resizable: true,

0 commit comments

Comments
 (0)