B4J Question TableView lost focus color lightblue

sigster

Active Member
Licensed User
Longtime 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
Longtime 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;
}
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime 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

  • TableViewSelectionStyle.zip
    2.3 KB · Views: 381
Upvote 0
Top