JavaFx Css, Not selector

the following css will select all cells with the "new" style class and set the color to green

.table-view .new:filled{ -fx-background-color: green; 

}

but when choosing it stays green, I want it to follow the normal highlight color, so there is something like:

 .table-view .new:filled:not(selected){ -fx-background-color: green; 

}

I also noticed strange behavior following css

 .table-view :selected{ -fx-background-color: yellow; 

}

usually turns the Talbe selection color to yellow, where since the following css to set the selection color of the updated cells doesn't work

 .table-view .updated:selected{ -fx-background-color: yellow; 

}

+8
javafx-css
source share

No one has answered this question yet.

See related questions:

3
JavaFx menu item accelerator Javafx css
3
JavaFX-CSS: how to "move" a parent's style to a child?
2
equivalent javafx non css selector function
2
Hide row in JavaFX Tableview using FX-CSS?
one
Change JavaFX TreeTableView selection color
0
Javafx Combobox CSS Padding
0
CSS Properties CSS JavaFX Forms
0
JavaFX CSS Parallelogram
0
Javafx CSS: draw text with css
-one
JavaFX CSS Duplex Border

All Articles