[英]Tornadofx CSS Seleccted row
I am trying to change the background color selected row and the same for a listview like when I do cell{backgroundColor += Color.BLACK}
that works but it removes or atlest makes the selection color black aswell I have tried the below but that dossnt work sadly.我试图改变背景颜色选择的行,当我喜欢同一个列表视图
cell{backgroundColor += Color.BLACK}
该作品,但它消除或atlest使得选择黑色藏汉我曾尝试以下但dossnt悲伤地工作。 Thank you for your time!感谢您的时间!
val tableView by cssclass()
tableView {
tableRowCell {
selected {
backgroundColor += Color.RED
}
}
}
Use the and() function使用 and() 函数
tableView {
tableRowCell {
and(selected) {
backgroundColor += Color.GREEN
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.