Search code examples
cssapache-flextabnavigator

Flex TabNavigator Tab Color Not Working


I am trying to set the tabs in a TabNavigator to orange. I have tried a number of different ways, but none of them seem to work (i.e. the background is always standard grey).

<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
mx|TabNavigator {
   fillColors: #FBE0CC;
}
</fx:Style>

Also...

<fx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Tab {
   fillColors: #FBE0CC;
}
</fx:Style>

Also...

.myTabStyle {
    tabStyleName: "myTabs"
}
.myTabs {
    backgroundColor: #ff0000;
    fillColor: #FBE0CC;
}

With

<mx:TabNavigator ... styleName="myTabStyle" .. >

Solution

  • How about this one?

    mx|Tab {
        fillColors: #FBE0CC, #FBE0CC;
        fillAlphas: 1, 1;
    }