How to change preview color of the drawable icons in Android Studio depending on theme color?

Viewed 10

All vector icons in Android are white by default (generated by Google Fonts or Vector Assets), but have a tint set to ?attr/colorControlNormal. When we look at asset previews, Android Studio doesn't render this tint, it just uses the base color. In the Dark theme it looks fine, but I'm using a Light theme and the icons are indistinguishable on a light background. How can I change the color of this background in Android Studio without resorting to changing the color in the icons themselves?

Light theme Dark theme

0 Answers
Related