I currently have a JavaFX button that is set as the Default Button, allowing users to select it with the Enter key. The button has a blue background:
https://i.sstatic.net/SYvIj.png
However, I would like to change its appearance to that of a normal button:
https://i.sstatic.net/oXb8B.png
After reviewing the JavaFX CSS Guide, it seems there is only one feature that can be overridden (-fx-base
).
https://i.sstatic.net/KRFMb.png
Adjusting this feature sometimes causes unexpected results - it may remove the button's gradient or make it transparent.
Is there an easy way to simply remove the styling of the Default Button?