Hello everyone, I encountered a problem. I don't think there is a solution but I hope I am wrong. 
I have to redo the strategic view and I stumble on the unit flags. Civ5 uses those kind of icons for the strategic view:
Is there any way to make civ5 transforms red into the primary player's color, and green into the secondary color?
Afaik, it seems like civ5 does not expose any API (or some property in XML UI files) to do that, although it obviously uses it in private. Of course there is a "color" property on images but it doesn't work: it seems to only be able to performs a simple blending operation ( a multiplication I guess). The best match I could find are the "color0","colorLayer0", "color1", "colorLayer1" but they are only available on labels and do not seem to have any effect on images elements.
Now let's say it's not possible... Then I will have to use the regular unit flags (IconAtlas + UnitFlagIconOffset in Civ5Units.xml) rather than the ones made specially for the strategic map (UnitArtInfo in Civ5Units.xml), because the regular flags are pure white: only their alpha channel varies, so the "color" property would be enough to do the job. Now, at first glance, it seems like the unit icons for both maps are roughly the same, but I guess I am missing something, am I? Is there any little annoying detail I may have to know, especially when it comes to mods compatibility?
In any way, even if using the regular flags is the best way, I am still interested in the color transform problem because I already encountered it and a solution would make my life easier.
Thank you for taking the time to read this!

I have to redo the strategic view and I stumble on the unit flags. Civ5 uses those kind of icons for the strategic view:

Is there any way to make civ5 transforms red into the primary player's color, and green into the secondary color?
Afaik, it seems like civ5 does not expose any API (or some property in XML UI files) to do that, although it obviously uses it in private. Of course there is a "color" property on images but it doesn't work: it seems to only be able to performs a simple blending operation ( a multiplication I guess). The best match I could find are the "color0","colorLayer0", "color1", "colorLayer1" but they are only available on labels and do not seem to have any effect on images elements.
Now let's say it's not possible... Then I will have to use the regular unit flags (IconAtlas + UnitFlagIconOffset in Civ5Units.xml) rather than the ones made specially for the strategic map (UnitArtInfo in Civ5Units.xml), because the regular flags are pure white: only their alpha channel varies, so the "color" property would be enough to do the job. Now, at first glance, it seems like the unit icons for both maps are roughly the same, but I guess I am missing something, am I? Is there any little annoying detail I may have to know, especially when it comes to mods compatibility?
In any way, even if using the regular flags is the best way, I am still interested in the color transform problem because I already encountered it and a solution would make my life easier.

Thank you for taking the time to read this!