NSButton的图像在选择上失去透明度 [英] NSButton's images lose transparency on selection

查看:129
本文介绍了NSButton的图像在选择上失去透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X应用程序中编辑了一些NSButtons,并为它们设置了自定义图像。图像是以透明度的png格式。当我选择一个按钮时,图像的背景变白。

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?

推荐答案

问题是,我正在定制一个斜角按钮。我将按钮面板更改为正方形,并将按钮类型更改为瞬时更改。

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!

这篇关于NSButton的图像在选择上失去透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆