繁体   English   中英

为什么在弹出窗口中打开时,我的rect填充不同的颜色?

[英]Why is my rect fills a different color when opening in a popup?

我要在面板中添加一个包含Rect填充的组。 该面板包含正常和normalWithControlBar两个状态。 该组位于normalWithControlBar中。 在隔离测试中,它可以正常工作。 当它在我的应用程序中显示时,Rect背景填充不会以正确的颜色显示。

我认为可能在某个地方设置了blendMode,但我不确定是否是它,或者在哪里以及为什么应用它。

我也有可能是Rotate3D效果的原因。 由于它是一个大型应用程序,因此我正在尽力解决可能出现的问题,但是在此之前,还没有人听说过此问题或可能由什么原因引起的吗? 谢谢

示例代码:

在面板中:

<MyPanel>
    <s:controlBarContent>
        <local:MyGroup width="500" height="230"/><!--appears tinted-->
    </s:controlBarContent>

    <local:MyGroup width="500" height="230"/><!--appears normal-->
</MyPanel>

在MyGroup中:

<s:Rect width="100%" height="80"
        top="100"
            >
    <s:fill>
        <s:SolidColor color="#dddddd"/>
    </s:fill>
</s:Rect>

找到了。 发生这种情况的原因是,该组未添加到面板的外观类的排除列表中,并且在Application CSS中指定了chromeColor。

在MyPanelSkin中:

之前:

/* Define the skin elements that should not be colorized. */
static private const exclusions:Array = ["background", "titleDisplay", "contentGroup", "controlBarGroup", "border"];

后:

/* Define the skin elements that should not be colorized. */
static private const exclusions:Array = ["myGroup", "background", "titleDisplay", "contentGroup", "controlBarGroup", "border"];

将皮肤部分添加到排除列表后,填充颜色将正确显示。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM