gpt4 book ai didi

kotlin - Tornadofx CSS选定的行

转载 作者:行者123 更新时间:2023-12-02 13:38:10 26 4
gpt4 key购买 nike

我正在尝试更改选中的背景颜色的行和列表 View 的背景颜色,就像当我执行cell{backgroundColor += Color.BLACK}时一样,但是它删除了或者至少使选择颜色变黑了,我尝试了以下操作,但是可悲的是它没有起作用。感谢您的时间!

val tableView by cssclass()

tableView {
tableRowCell {
selected {
backgroundColor += Color.RED
}
}
}

最佳答案

使用and()函数

    tableView {
tableRowCell {
and(selected) {
backgroundColor += Color.GREEN
}
}
}

关于kotlin - Tornadofx CSS选定的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51574309/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com