Rudolf Tammekivi
05/01/2021, 2:32 PMandroid:fillColor="?attr/ferryOutside"
) . This allowed me to reuse the same SVG for different colored images. I am wondering if there is a way to do this in Compose and maybe there is a better way? I need to use multiple colors in the SVG, it seems like LocalContentColor is not suitable for this use.Colton Idle
05/01/2021, 2:33 PMColton Idle
05/01/2021, 2:34 PMRudolf Tammekivi
05/01/2021, 2:41 PMCompositionLocalProvider(LocalContentColor provides MaterialTheme.colors.ferryOutside)
ferryOutside = Color(0xff232350)
But my problem is that the image has another color that I would like to draw with a different color, but I couldn't find a way to do this. Before Compose ContextThemeWrapper could set a custom style where I defined different attributes for my image and I would refer to them as attributes in the image. Then I could have multiple styles and change between them with ContextThemeWrapper.