TitleWindow的标题文本颜色

时间:2010-04-28 11:36:55

标签: css flex

如何设置TitleWindow标题中文字的颜色?我使用'header-colors'改变了标题本身的颜色,但我还没想出如何更改标题中文本的颜色。

编辑:一些代码:

我的css文件:

.popupWindow
{
    border-color: #000000;
    border-alpha: 1;
    header-colors: #000000, #000000; /* This colors the header black, but the text in the header should be white */
}

我的标题窗口:

<mx:TitleWindow
    xmlns:mx="http://www.adobe.com/2006/mxml"
    styleName="popupWindow"
    title="This text should be white!"
>
    <!-- Some stuff to fill the TitleWindow -->
</mx:TitleWindow>

1 个答案:

答案 0 :(得分:3)

除了styleName

之外,请使用titleStyleName
.popupWindow
{
  border-color: #000000;
  header-colors: #00FF00, #0000FF; 
}
.popupWindowTitle
{
  color:#FF0000;
  fontStyle:italic;
}
<mx:TitleWindow
    xmlns:mx="http://www.adobe.com/2006/mxml"
    styleName="popupWindow"
    titleStyleName="popupWindowTitle"
    title="This text will be red in a blue-green gradient - and italic!">

    <!-- Some stuff to fill the TitleWindow -->

</mx:TitleWindow>