Guys, I am having a bit of hard time setting svg i...
# tornadofx
a
Guys, I am having a bit of hard time setting svg image into a button using css dsl. The below solution set the size right but the end result is not near to the ImageView solution at all
Copy code
backgroundImage += URI("/close.svg")
backgroundSize += BackgroundSize(16.0, 16.0, false, false, false, false)
backgroundRepeat += Pair(BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT)
backgroundPosition = multi(BackgroundPosition.CENTER)
Is there any way I can set an image and scale smoothly using css?
👍 1