I am currently working on styling a JavaFX scene with CSS in a stylesheet. The goal is to apply styles to all the "basic" elements of the scene when it loads.
My issue lies in finding the correct code combination to change the background color of a button within a standard JavaFX checkbox.
This is what I have tried so far:
.check-box:selected{
-fx-background-color: #00FF00;
}
I have experimented with variations like:
.check-box .button{
-fx-fill: #00FF00;
-fx-background-color: #00FF00;
}
However, none of my attempts have been successful in achieving the desired result.
In essence, how can I target a button within a checkbox using CSS?
Thank you for any assistance provided :-)