javafx - css: How to change row color of a table after its been selected and clicked away -
i have .css when row selected fine.
however when click off row changes row color grey black font, there way edit css?
.table-view { -fx-base: transparent; -fx-control-inner-background: transparent; -fx-background-color: #507ca6; -fx-padding: 5; } .table-view .column-header-background { -fx-background-color: transparent; } .table-view .column-header, .table-view .filler { -fx-size: 35; -fx-border-width: 0 0 1 0; -fx-background-color: transparent; -fx-border-color: #b4d9fd; -fx-border-insets: 0 10 1 0; } .table-view .column-header .label { -fx-font-size: 14pt; -fx-font-family: "segoe ui light"; -fx-text-fill: white; -fx-alignment: center-left; -fx-opacity: 1; } .table-view:focused .table-row-cell:filled:focused:selected { -fx-background-color: #273d51; }
any appreciated.
try this:
/* when control selected not focused */ .table-row-cell:filled:selected, .table-row-cell:filled > .table-cell:selected { -fx-background: red; }
Comments
Post a Comment