Kambi Victor
10/17/2024, 10:07 PMicon.xml
that has a gradient. when using Res.drawable.icon
the icon appears black only showing the outline. Is it possible to display icons with gradients in compose-multiplatform?Stylianos Gakis
10/17/2024, 10:19 PMImage
instead of Icon
is there any difference?
Icon applies a tint by default which may affect how things renderKambi Victor
10/18/2024, 11:05 AMImage
solves the problem. The default tint is only used in Icon
.Stylianos Gakis
10/18/2024, 11:11 AMtint = Color.Unspecified
explicitly on your Icon and I think it will also not apply any tint. But yeah, it's a common gotcha in compose.Kambi Victor
10/18/2024, 1:10 PMcoil-svg
to solve it, but your solution is much better.