NSStatusBar item glow without the glow image on Xcode
-
12-06-2021 - |
题
How can i make something like this glow on a status bar item?
I know that i can do that with another png, but i have seen some other applications where they only have the black icon of the statusbar, no glow.
How can i do that?
Thanks
解决方案
Just draw your image with a white drop shadow (some blur radius, no offset) in a custom view. NSShadow
makes this very easy to do.
不隶属于 StackOverflow