Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSButton's images lose transparency on selection

Tags:

cocoa

nsbutton

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?

like image 333
Ricky Avatar asked Jan 26 '11 04:01

Ricky


1 Answers

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!

like image 172
Ricky Avatar answered Nov 14 '22 18:11

Ricky