为什么禁用的NSButton(或NSButtonCell)的文本是灰色的? [英] Why the text of a disabled NSButton (or NSButtonCell) is gray?

查看:393
本文介绍了为什么禁用的NSButton(或NSButtonCell)的文本是灰色的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我设置一个Button(NSButton)被禁用时,其文本颜色变为灰色。
我如何修改此属性?

When i set a Button (NSButton) to be disabled, its text color changes to gray. How can i modify this property? I want the text to stay black.

推荐答案

要回答您的标题,如果不是问题的主体:它实际上是一个行业标准以这种方式表示禁用的屏幕元素,并且可能是用户期望的。

To answer your Title if not the body of the question: it's practically an industry standard to represent disabled screen elements this way, and probably what users expect.

做不同的事情可能会令人困惑。

To do something different might be confusing.

这篇关于为什么禁用的NSButton(或NSButtonCell)的文本是灰色的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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