Thread
#compose
    k

    Kshitij Patil

    1 year ago
    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.
    Why Icon's default
    tint
    color is set to
    AmbientContentColor
    which defaults to Black? vectorDrawable's documentation says "By default, no tint is applied."
    Nader Jawad

    Nader Jawad

    1 year ago
    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
    k

    Kshitij Patil

    1 year ago
    Oh Okay, thanks!