``` s(listCell and selected) { ...
# tornadofx
a
Copy code
s(listCell and selected) {
            backgroundColor += Color.TRANSPARENT
        }
🤔 1
👍 1
r
You can write that as
Copy code
listCell and selected {
    ...
}
You really only need the
s(...)
for multiple selections (e.g.
Copy code
s(
    listCell and selected,
    customCell and selected
) {
    ...
}
)
😮 1
In that case, you could also do
Copy code
s(listCell, customCell) {
    and(selected) {
        ...
    }
}
And the Cartesian selectors would be generated for you.
👍 1
t
Okay and TableView applies as well, with
tableCell
?
r
I don't remember the substructure and selectors of
TableView
, but assuming that's the appropriate selector, sure.
Or are you asking if that's the correct selector?
t
Yeah because I didn't see it 🤔
r
I don't think that selector is in the DSL, because it doesn't appear to be in the JavaFX CSS reference anywhere, though I do see it used on SO. https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
It looks like both
.table-cell
and
.table-row-cell
are used in Modena, so maybe they should be added, along with
.tree-table-cell
and
.tree-table-row-cell
.
t
@Ruckus Yep, SO is where I found it. I need to do a PR soon for TornadoFX. I have a small laundry list of things I want to add
👍 2