在歌词滚动结束后清理窗口阴影,缓解Mac下桌面歌词出现残留阴影的问题

This commit is contained in:
lyswhut
2024-04-24 18:51:53 +08:00
parent 10028cf500
commit 1f6a6bbb39
7 changed files with 33 additions and 7 deletions
+5
View File
@@ -194,6 +194,11 @@ export const getMainFrame = (): Electron.WebFrameMain | null => {
return browserWindow.webContents.mainFrame
}
export const invalidateShadow = () => {
if (!browserWindow) return
browserWindow.invalidateShadow()
}
interface AlwaysOnTopTools {
timeout: NodeJS.Timeout | null
setAlwaysOnTop: (isLoop: boolean) => void