You can use the fx-background-color
css property to set the menu bar background color.
Regarding the Scene Builder menu bar background color, you can use:
-fx-background-color:
derive(#e0e0e0, -0.291),
linear-gradient(
to bottom,
derive(#e0e0e0, 0.353) 0%,
derive(#e0e0e0, -0.058) 100%
);
-fx-background-insets: 0, 0 0 1 0;
I extracted these css "coordinates" from Scene Builder jar, located at SceneBuilderInstalationRoot/lib/SceneBuilder.jar
. In the jar, its on the package com.oracle.javafx.authoring.css_stylesheets
, file SceneBuilderTheme.css. This css file uses a named constant -fx-color
which I inferred to have value #e0e0e0
.