Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@lyswhut 你好,根据electron的说法,这个bug仅出现在mac的透明窗口中。桌面台词窗口就是这种窗口,该修复在mac下取消了该窗口的阴影效果。相较于invalidShadow()这种延迟清理的做法,直接取消阴影效果感觉更舒服。对于主窗口采取了同样的方案。
以下是修改后的效果:
桌面歌词不会有阴影残留了,感觉还不错。
主窗口虽然取消了阴影,可能macos会自动为窗体创建阴影,依然有阴影效果。
修改后不影响其他系统用户。