Color Picker work:
authorMatt Ebb <matt@mke3.net>
Thu, 7 Jan 2010 09:55:11 +0000 (09:55 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 7 Jan 2010 09:55:11 +0000 (09:55 +0000)
commitcf9b728c6a1cb600c721bea1823206047ab1c5c7
tree981352c911d626f84da09010b00a50d0201524fe
parent4463597dcd382a84be8a2a59e03adcfe149c23b2
Color Picker work:

Restored the old Eyedropper tool from the 2.4 colour picker. Now it's an operator,
working nicely using rna properties (fixes #19475 and some todo items)

This ended up being a bit more work than expected, it involved converting the
colour picker to use RNA properties directly, rather than temporary values. This has
several advantages, including being able to type in RGB values greater than 1,
however there are still some redraw issues with sliders.

Also removed the alternate color pickers after this time spent testing, the current one
should be sufficient, or alternatives to the wheel can possibly become preferences
in the current design.

Converting the picker to RNA also made it very trivial to make a cool new
ColorWheel template, which can be embedded in UI layouts. I've enabled it already
in texture/vertex paint brush properties and the sequence editor color correction:
http://mke3.net/blender/devel/2.5/colorwheels.jpg
14 files changed:
release/scripts/ui/space_image.py
release/scripts/ui/space_sequencer.py
release/scripts/ui/space_view3d_toolbar.py
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_anim.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_layout.c
source/blender/editors/interface/interface_ops.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/interface_widgets.c
source/blender/makesrna/intern/rna_ui_api.c