如何设置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>
答案 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>