### MenuBar change Colors

To change the color of the MenuBar and the MenuItems, use a CSS Stylesheet and add this
stylesheet dynamically to a form.
Example adding a menu stylesheet to the MainForm
Define the stylesheet, save it in the files folder and add it to the files list (Tab Files).
Example CSS file B4JHowToMenu.css:
/*
CSS File defining a white menubar with menu text items in red
*/
.menu .label {
-fx-text-fill: red;
}
.menu-item .label {
-fx-text-fill: red;
}
.menu-bar {
-fx-background-color: white;
}
In the AppStart Sub add after MainForm.Show:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "B4JHowToMenu.css"))

Changed: , Category: Menu, File: T6C220M1616.htm, ID: 1616