You could do a google search with the words: javafx css gradient
The AI overview gives you all the possible css settings.
View attachment 167592
Changes in your MyMenu.css file:
CSS:
{
-fx-my-menu-color: linear-gradient(from 0% 0% to 100% 100%, #ff0000, #0000ff); /*#0134fa;*/
}
.menu-bar {
-fx-background-color: -fx-my-menu-color;
}
In your Main module you can comment the line:
B4X:
' b4x.SetColorAndBorder(xui.color_blue,2dip,xui.Color_Black,5dip)