Gradient colortransform

Hi all,

I am building an application that would allow me to change it’s theme. I am planning to do this by loading a color code via xml and then setting the color of all the graphics in the application to that color. Of course this can be done with a color transform, but this is not what I am looking for. Color transform only enables to change a solid color, In order to keep my graphics somewhat interesting I am looking into a way to colortransform a gradient.

I know I could do this with an overlay of a solid white color which I can give an alpha gradient but I would like to do this in code.

Is there any way this could be done in code?

Thanks in advance!