Unsolved Dynamically change SVG color or replace a color by another one
I have a menu with SVG images. I would like to change their color on focus. My SVG are simple logo made of transparent and black for example this one :
What I want is to replace the black color by white without having to handle many images.
Is that possible ?
I tried ColorOverlay but it also replace the transparent with white color.
Thank you in advance
I think that will help you:
I tried to use ColorOverlay but it make the transparent color turn to white also. And I don't want that. I wan't to turn black into white only.
Hi, I have no problems to color my svg files white with the approach mentioned by Bernd. Maybe the problem is in the format of your svg file (I had some problems with svg that contained groups or masks etc). To test that you could try a file from: https://material.io/tools/icons/?style=baseline
those usually work for me
Thank you for that answer, I believe is due to the device I'm trying to run it on, because on the computer it works quite good.
I hoped to have an other solution than this one. I will have to manage many images.