I'm struggling to customize the appearance of a JFXButton
using CSS stylesheets. While some properties are working fine, such as background color and size, I can't seem to get font color and weight to apply:
.eliminarBtn {
-fx-background-color: #eb490f; //This works
-fx-font-color: WHITE; //This doesn't work
-fx-font-weight: bold; //This doesn't work. Edit: had to refresh (works)
-fx-font-size: 20px; //This works
-fx-background-radius: 8px; //This works
}
In this scenario, I have been able to identify certain values by using Scene Builder's drop-down options and directly typing them into the stylesheet. However, others like font color and weight have proven more elusive. How can I successfully modify these aspects of the button text? Additionally, I am open to setting CSS classes for other button nodes if needed.
If you happen to have any resources or guides on styling JavaFX elements or JFoenix components, please share the link with me. Thank you.