Is there a transition option to actually SET the colors I want?

I’m pretty comfortable with the transition options offered by things like buttons and toggles in the new UI. But now I’m working on a project where the specific colors for selected and unselected elements are quite specific, and while you’d think this would be simple, I can’t see any way to do it short of rewriting the relevant UI classes (or creating sprites for every combination of color and shape I need).

The “Color Tint” option “tints” the base color of the image. Exactly what that means isn’t defined in the documentation. I thought for a while it was something like: newColor = (baseColor + tintColor * colorMultiplier)/2. But that can’t be, because when base color is black, no amount of tint and multiplier comes out as anything other than black.

So I can’t figure out if there’s any way to switch from, say, blue to orange (or from any arbitrary color 1 to arbitrary color 2). I really wish the “color multiplier” were instead a “color mix” parameter from 0 to 1, where 0 means ignore the tint completely, 1 means ignore the base color and use only the transition color, and 0.5 means mix them equally. But they didn’t implement it that way, alas.

So. Is there some magic combination of colors and multipliers that lets me actually set the specific color I want for each state?

OK, never mind, I’m an idiot (until I post my ignorance publicly, thus causing my IQ to jump up ten points).

The answer is: you set the base color to white, the color multiplier to 1, and then set the transition colors (including normal color!) to whatever you want.

I still don’t entirely understand the color-mixing formula at play here, but the above combination does what I want, so I’m content!

1 Like

That was not stupid. I had the same doubt and your post helped me quite a lot, thanks Joe!

1 Like