In B4A, it is possible to set different styles for the button: when the button is Enabled, Disabled, Pressed as in the screenshot below. Moreover, you can set both the fill with just color and the picture.
In B4J there is no such possibility, you can set only the color in the normal state. With the help of the CSS file, I can install everything that I need as in B4A. But I am very new to CSS.
How can I use different CSS or using B4J to set different pictures for all button states?
In B4J there is no such possibility, you can set only the color in the normal state. With the help of the CSS file, I can install everything that I need as in B4A. But I am very new to CSS.
CSS:
.button {
-fx-background-color: #095db1;
}
.button:hover {
-fx-background-color: #265685;
}
.button:pressed {
-fx-background-color: #033c73;
}
.button:disabled {
-fx-background-color: #959595;
}