B4J Question TableView lost focus color lightblue

sigster

Active Member
Licensed User
Hi

when I select record in TableView I change the color in CSS file
then I select textbox the record I select in TableView get the color lightblue

how can I change TableView color lightblue when TableView lost focus

Regards
Sigster
 

sigster

Active Member
Licensed User
Google :)


B4X:
.table-row-cell:filled:focused:selected {
    -fx-background-color: red;
    -fx-background-insets: 0, 1, 2;
    -fx-background: -fx-accent;
    -fx-text-fill: -fx-selection-bar-text;
}
 

rwblinn

Well-Known Member
Licensed User
Hi,

attached an example based on previous TableView Row Selection Styling but then extended with TableView Cell Selection Styling.

Thanks for bringing up.
 

Attachments

Top