1 Reply Latest reply on Jan 30, 2011 3:32 PM by FiveOtters

    Flex 4 Menubar. how to change submenu font color..?

    Ling's Level 1


      I have a working menu control bar with submenus,  the default coloring is white for the drop down background and the submenu fonts are black.

      I need to have the main menu font color white.I can changed the main level color white font.

      but submenu font color change to black, how to change this font color. thus the font is "invisible" on the submenu white background.



      With Regards


        • 1. Re: Flex 4 Menubar. how to change submenu font color..?



          In order to change the submenu styles, you need to change the styles for Menu vice attempting to change the MenuBar styles.  I spent about an hour trying to figure this out after I ran across the same program. This will allow your topMenu to have different text colors than your subMenu text colors.  You can also adjust all of the icons, background color, etc. for the menu as well.  This is my first post to the forum ever so please let me know if I need to fix myself.   I hope this helps you out.




          @namespace s "library://ns.adobe.com/flex/spark";

          @namespace mx "library://ns.adobe.com/flex/mx";





          color: #000000;

          selection-color: #00FF00;





          content-background-color: #555555;

          content-background-alpha: 0.5;

          color: #FFFFFF;





          Best regards