I am using JavaFX 8 and have a treeView populated with checkbox tree items as shown in this picture. I want to apply CSS so that I can:
- Change the background color of the checkbox
- Change the border color of the checkbox
- Change the color of the selection icons within the checkboxes
I have searched everywhere but have not been able to work out how to do this and have tried many variations of the commands below however have not been able to get it to work correctly.
.tree-view .check-box-tree-cell .check-box {
-fx-background-color: black;
-fx-border-color: orange
}
.tree-view .check-box {
-fx-background-color: black;
-fx-border-color: orange
}
.check-box-tree-cell {
-fx-background-color: black;
-fx-border-color: orange
}
.tree-cell .check-box {
-fx-background-color: black;
-fx-border-color: orange;
}
How can I go about solving this?
Aucun commentaire:
Enregistrer un commentaire