在歌词滚动结束后清理窗口阴影,缓解Mac下桌面歌词出现残留阴影的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user