Im trying to change bg color of a list item dynami...
# tornadofx
e
Im trying to change bg color of a list item dynamically, but it doesnt work. Any suggestions?
Copy code
kotlin
 style {
            Bindings.`when`(it.isInjectedProperty)
                    .then{backgroundColor += c("#28ffff")}
                    .otherwise { backgroundColor += c("#28aabb") }

            borderColor += box(c("#282828"))
        }