https://kotlinlang.org logo
k

Kshitij Patil

11/07/2020, 11:42 AM
Looks like using custom vector drawables using
vectorResource()
messes up with the fill color of vector drawable based on the current theme (dark theme inverts the color). I tried using same vector drawable in a non-compose project and colors remained the same.
n

Nader Jawad

11/07/2020, 2:48 PM
If you don't need to tint you can use the
Image
composable. In an upcoming release we updated the
Icon
composable to consume
Color.Unspecified
which will not tint the actual vector
👍 3
k

Kshitij Patil

11/07/2020, 2:49 PM
Oh Okay, thanks!
21 Views