NSButton's images lose transparency on selection

妖精的绣舞 提交于 2019-12-05 00:10:01

问题


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 select a button, the background of the image goes white.

Does anyone know of a way to fix this?


回答1:


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!



来源:https://stackoverflow.com/questions/4801418/nsbuttons-images-lose-transparency-on-selection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!