I just added a vertical gradient slider. To me the values seems backwards: the bottom should be 0, the top should be 100.
It's a gradient slider, the actual value is arbitrary, when used in cnonjuntion withy a colour wheel, you allow the colour wheel to setup the values, and the brrightest colour is at the top.
But it is the opposite. If it were a volume control, the top is max volume, not mute.
It's not a volume knob though is it?
Even the colors are backwards.
Only because you put them backwards.
Is there a formula, or function, to reverse the values?
If at top 0->100.
If at 75% 25->75
If at 50% 50->50
If at 25% 75->25
If at bottom 100->0
Seriously?
If a value varies from 0 to range, to convert it to range to 0 just do value = range - value.
SliderGadget has SLIDER_Invert, looks like gradient could use that, too.
Whilst it could be added the gradient is picking arbitrary values that represent a colour, whereas the silder gadget is picking the actual values, and, more to the point, can display those values
There is no need for the reverse state in the Gradient, the develeoper just needs to do some trival maths.