### Button Background Color transparent

To set the color of buttons to transparent:
Create in the Project Files Folder a CSS file (like Main.css) with content:
.button {
-fx-background-color: transparent;
}
In B4J code set the MainForm style - this style applies to all controls:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "Main.css"))
Note
The CSS File Main.css can also include other settings, like change the Tooltip style:
.tooltip {
-fx-background-radius: 2 2 2 2;
-fx-background-color: linear-gradient(#FFFFFF, #DEDEDE);
-fx-text-fill: black;
-fx-font-size: 20px;
}
Note
As from B4J v4.20 the CSSUtils Library is avaibale to set styles.
See B4J HowTo CSSUtils.

Changed: , Category: Visual Designer, File: T6C276M2036.htm, ID: 2036