开发者

NSButton's images lose transparency on selection

开发者 https://www.devze.com 2023-02-07 05:52 出处:网络
I have edited some NSButtons in my Mac OS X application and set a custom image to them. The images are in png format with transparency. When I sele开发者_如何学Goct a button, the background of the ima

I have edited some NSButtons in my Mac OS X application and set a custom image to them. The images are in png format with transparency. When I sele开发者_如何学Goct a button, the background of the image goes white.

Does anyone know of a way to fix this?


The issue was that I was customising a 'Bevel' button. I changed the button bezel to 'Square' and changed the button type to 'Momentary Change'.

Hope this helps some people in the future!

0

精彩评论

暂无评论...
验证码 换一张
取 消