finish up the color selector widgets (plug some leaks)
TODO:
* color_dialog needs a way of specifying initial color
* color_well needs to use this when showing its color dialog
* the grad dialog should remember the last selected colors
* the color dialog whould probably keep a list of favorite / recent colors
Also, it looks like there's a leak (according to valgrind at least) in e_editable.c when you set the text and it reallocs.
SVN revision: 24953
pass in a color struct to update
(use the change hook to know when changes have occured)
use a short timer instead of an idler to update the spectrum image data
-- ideally, we would add a pre/post render hooks for smart objects. then we could redraw int he pre-render callback.
SVN revision: 24676
Change the last test in e_test.c to #if 1 to play.
Issues:
Redrawing the H,S and V spectra is a bit slow. Needs to be optimized.
Spacing / Sizing of the various pieces of the csel widget needs to be cleaned up a bit.
I haven't actually themed anything yet. Just some fairly basic place holders to get it working. We should wrap each piece in shadowed cutout graphic, and make fancier cursors.
A color well widget
- show the currently selected color
- allows dnd of colors (this probably requires some reworking of ecore selection code)
For anyone wanting to play with this, a single E_Color struct is used by all parts of the selector, preventing the need to copy values around. This includes RGB *and* HSV values since the two spaces aren't 1:1.
SVN revision: 24669