I realized I've been using kotlinx.css not kotlin-css or kotlin-styled. I guess it is required by both of these which is why I don't see kotlinx.css in my gradle dependencies but I'm still able to use it.
Main Question: why can't I get background image to work but all these other background properties seem to translate.
Second Question: What else am I doing wrong? 😃
Gunslingor
08/21/2020, 3:16 PM
No background iamge
Gunslingor
08/21/2020, 3:24 PM
Crazy... I tried every way imaginable but this. I need to start searching slack before asking questions, many answers are here already:
Copy code
backgroundImage = Image("url(img/bg-gr-v.png)")
Gunslingor
08/21/2020, 3:32 PM
Any other tips for learning this undocumented framework? Wish I could remove the selector quotes and some of the precursor objects like BackgroundRepeat.repeatY, nice to just use repeaty
Gunslingor
08/21/2020, 3:35 PM
hmm.. guess I see why, without import kotlinx.css.* it would get out of hand... not sure I get why css should be this strongly typed though, especially when the end interpreter ignores it and is far more forgiving than even python. I wanna be able to chop and dice css like this, not sold on the typing of it. Open for debate, I'm learning.