WPrefs: set default to 1st color in gradient texture
commit7082561a42c8d6d173d653ca76ef138939c59e2f
authorDavid Maciejak <david.maciejak@gmail.com>
Sun, 7 Sep 2014 02:47:21 +0000 (7 10:47 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 2 Nov 2014 11:50:03 +0000 (2 12:50 +0100)
tree4646fed8204d3676e0431719bf6427696800fa51
parent10e0bdf39b6268e78dbe399e3f9abee0bb0ea7c4
WPrefs: set default to 1st color in gradient texture

This patch is updating the gradient texture user experience
by auto selecting the first color in the list when possible
and fixing the autoselection after a delete action.

In fact what that is called gradient colors is just a list of colors
with hue/saturation/brightness value.
That patch is loading the first one from the list (color, hue,
saturation, brightness) and setting the 3 sliders according to that
value instead of using some default hardcoded values.
The default color value on the top-right is never modified.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
WPrefs.app/TexturePanel.c