carlw
05/12/2018, 1:08 PMJohn
05/12/2018, 4:13 PMcarlw
05/12/2018, 4:16 PMbjonnh
05/12/2018, 10:37 PMbjonnh
05/12/2018, 11:40 PMJohn
05/13/2018, 5:35 AMedvin
05/13/2018, 7:19 PMedvin
05/13/2018, 8:21 PMSackCastellon
05/14/2018, 8:30 PM-fx-prop-a: -fx-prop-b;
using the CSS DSL?SackCastellon
05/14/2018, 8:36 PMmyCssRule {
textFill = baseColor
}
But I get kotlin.TypeCastException: null cannot be cast to non-null type javafx.scene.paint.Color
Ruckus
05/14/2018, 8:51 PMunsafe("-fx-text-fill", raw("-fx-base-color"))
Ruckus
05/14/2018, 8:56 PM// Assuming you have these defined:
val fill by cssproperty<Paint>("-fx-text-fill")
val base by cssproperty<Paint>("-fx-base")
// You can use:
fill force base
SackCastellon
05/14/2018, 9:48 PMdanielmcq
05/15/2018, 6:53 AMdanielmcq
05/15/2018, 7:11 AMclass LibraryView: View("Library View"){
val model:LibrariesViewModel by inject()
override val root = anchorpane {
tilepane {
model.currentLibraryProperty.libraryItems.forEach {
vbox {
label(it.name)
alignment = Pos.TOP_LEFT
}
}
...
carlw
05/15/2018, 1:55 PMdanielmcq
05/15/2018, 9:02 PMcarlw
05/15/2018, 9:29 PMcarlw
05/15/2018, 9:30 PMcarlw
05/15/2018, 9:30 PMdanielmcq
05/15/2018, 9:40 PMcellFormat
an item renderer for each cell if you want to make a more complex component that contains, e.g. an svg path and a label and maybe some logic that handles drag/drop, etc.? If you don't know off the top of your head, no worries, I'm going to dig into this approach today (thanks to your suggestion)carlw
05/15/2018, 9:44 PMdanielmcq
05/15/2018, 11:32 PMcarlw
05/15/2018, 11:46 PMdanielmcq
05/15/2018, 11:47 PMcarlw
05/15/2018, 11:52 PMcarlw
05/15/2018, 11:52 PMdanielmcq
05/16/2018, 12:24 AMListCellFragment
but perhaps that's too heavyweight for this.bjonnh
05/16/2018, 8:37 PMbjonnh
05/16/2018, 8:52 PM