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

标签

工具导航Map