spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
https://adaptive.fun
Apache License 2.0
3 stars 0 forks source link

[graphics] SVG sizing #73

Open toth-istvan-zoltan opened 1 month ago

toth-istvan-zoltan commented 1 month ago

This doesn't work:

    box(*instructions) {
        size(80.dp, 80.dp) .. alignItems.center
        svg(Res.drawable.eco) .. svgHeight(48.dp) .. svgWidth(48.dp) .. svgFill(colors.onSurface)
    }

This does:

    box(*instructions) {
        size(80.dp, 80.dp) .. alignItems.center
        box {
            size(48.dp, 48.dp)
            svg(Res.drawable.eco) .. svgHeight(48.dp) .. svgWidth(48.dp) .. svgFill(colors.onSurface)
        }
    }