图标的颜色变化按钮的颜色,当 [英] Color of icon when changing color of button

查看:221
本文介绍了图标的颜色变化按钮的颜色,当的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果我有一个带图标的按钮。我想有灰色,所以我改变按钮的的chromeColor 但是当我这样做,图标变得更暗。


I have a button with an icon. I want to have the button in gray so I change the chromeColor but when I do that, the icon became darker.

在不改变颜色,在右边,与灰色按钮和图标较深左侧的按钮。结果怎样才可以有一个灰色按钮而不改变图标的​​颜色

On the left the button without changing the color, on the right, the gray button with and darker icon.
How can I have a gray button without changing the icon color ?

推荐答案

您可以通过修改皮肤类,并加入iconDisplay到排除阵列做到这一点。在结束该行应该是这样的:

You can do this by modifying the skin class and adding "iconDisplay" to the exclusion array. At the end the line should look like this:

static private const exclusions:Array = ["labelDisplay","iconDisplay"];

希望这有助于。

这篇关于图标的颜色变化按钮的颜色,当的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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