I have set up a choicebox and applied colors using a css stylesheet:
/* Text in all labels */
.choice-box .label {
-fx-text-fill: red;
}
.choice-box {
-fx-backgroundcolor: #ADD8E6;
-fx-focus-color: midnightblue;
-fx-faint-focus-color: #ADD8E6;
-fx-control-inner-background: #ADD8E6;
-fx-selection-bar: "midnightblue";
-fx-selection-bar-text-fill: "white";
}
The result is:
The last line in the stylesheet was supposed to change the text in the selected item (the one with the white checkmark) to white, but it doesn't work.
I have tried applying every combination of properties I can think of but have not hit on the correct one.
None of the suggestions I have seen on stackoverflow have worked.
Can anyone tell me what to use to change text in the selection bar to white?