Is there anyway to change the fillcolor of a parti...
# compose
r
Is there anyway to change the fillcolor of a particular pathdata in a vector drawable loaded in compose?
j
fwiw I'm using following if this is what you're looking to do?
Copy code
Image(asset = vectorResource(R.drawable.ic_bike),
    colorFilter = ColorFilter.tint(if (station.freeBikes() < 5) lowAvailabilityColor else highAvailabilityColor))
likewise for an
Icon
am using
Copy code
Icon(imageVector = Icons.Filled.Favorite, tint = maroon500)