更改按钮颜色时的图标颜色 [英] Color of icon when changing color of button
本文介绍了更改按钮颜色时的图标颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有图标的按钮。我想让按钮为灰色,所以我改变 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屋!
查看全文