This patch increases the LCH Chroma slider maximum value from 100 to
200 and also makes the Chroma slider properly display out of gamut
Chroma selections for any given Hue/Lightness combinations.
The current Chroma slider only runs to 100. But quite a few sRGB
colors have LCH chroma values that are greater than 100. For example
reddest red has a chroma of 107, and bluest blue has a chroma of 131.
So it's inconvenient to have to deal with a Chroma slider limit of
100.
Also, the current Chroma slider doesn't properly show out of gamut
areas on the Chroma slider. So for example picking a given LCH Hue and
then moving the Lightness slider doesn't allow to see which Lightness
value allows for choosing the maximum in-gamut chroma for the chosen
Hue.
Add LCH to the color selectors, patch by Elle Stone and myself.
- Extend enum GimpColorSelectorChannel by LCH channels
- Support them in GimpColorScale, GimpColorScales and GimpColorSelect
- Did not yet remove the HSV channels until things are working 100% ok
- Change drawing in GimpColorSelect to be much faster, to compensate
for babl_process() making the LCH modes pretty slow
- Clean up stuff in GimpColorSelect
This is WIP and should not be considered finished, biggest TODO is
displaying out-of-gamut values in GimpColorScales' spinbuttons.
...(scroll up decreases the value)
Implement GtkWidget::scroll_event() and turn GDK_SCROLL_UP into RIGHT
and DOWN into LEFT. The default behaviour or good for scrollbars but
not for widgets where "right" == "higher value" == "up" like
GimpColorScale.
and update their color transforms with the new monitor's color
profile. A widget is considered changing monitors when its toplevel
window's center crosses, in order to let widgets within one window
have consistent colors.
because it confuses gtk-doc and breaks some links. Also change the
"Index of new symbols in GIMP 2.x" sections to be what seems to be the
modern standard (looked at the GLib and GTK+ docs), and update some
other stuff.
2009-01-17 Michael Natterer <mitch@gimp.org>
* all files with a GPL header and all COPYING files:
Change licence to GPLv3 (and to LGPLv3 for libgimp).
Cleaned up some copyright headers and regenerated the parsers in
the ImageMap plugin.
svn path=/trunk/; revision=27913
2007-11-19 Tor Lillqvist <tml@novell.com>
* libgimpwidgets/gimpcolorscale.c
(gimp_color_scale_render_stipple): Don't write past end of
buffer. (#399484)
svn path=/trunk/; revision=24193
2007-06-04 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_expose):
revert last change, it looks ugly in themes which actually draw a
box around the scale.
svn path=/trunk/; revision=22705
2007-06-03 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.c: let mouse button 1 jump to the
clicked position directly (just as mouse button 2 does). Feels
much more intuitive because the result of the operation is visible
before and color scales have no scroll arrows either.
svn path=/trunk/; revision=22695
2006-05-31 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.c: removed #define SHADOW 1, it's
not a constant value. Use the GtkRange::trough-border style
property instead.
2005-12-20 Michael Natterer <mitch@gimp.org>
* libgimp/*.c
* libgimpconfig/*.c
* libgimpmodule/*.c
* libgimpthumb/*.c
* libgimpwidgets/*.c: port to G_DEFINE_TYPE() and friends. Some
related cleanup.
2005-09-20 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorscale.c: invalidate the buffer when the
widget's sensitivity changes. Draw a stipple pattern on the
insensitive color scale.
2003-02-26 Sven Neumann <sven@gimp.org>
* autogen.sh: moved the call to libtoolize before automake.
* libgimpwidgets/gimpcolorscale.c: added some inline docs.
* libgimpwidgets/gimpwidgets.[ch]: changed gimp_spin_button_new(),
gimp_scale_entry_new() and gimp_color_scale_entry_new() to take
doubles instead of floats for the adjustment values.
2003-02-26 Sven Neumann <sven@gimp.org>
* libgimpwidgets/tmpl/gimpcolorscales.sgml
* libgimpwidgets/tmpl/gimpcolorselect.sgml
* libgimpwidgets/tmpl/gimpcolorselector.sgml: improved.
2003-02-17 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.c (gimp_color_scale_size_allocate):
calculate the size of the handle (the small triangles) from the
scale's requisition, not from its allocation. Spotted by drc.
2002-11-24 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/image.pdb: moved FINITE definition to $extra
code. Changed to use #elif, much cleaner.
* app/pdb/image_cmds.c: regenerated
* app/core/gimpenvirontable.[ch]: added support for app internal
environment variable settings. These override any *.env files if
there are collisions. Not sure on that policy. Also, envp is now
generated on the first get_envp call.
* app/gui/gui.[ch]: added gui_environ_init, which uses
gimp_environ_table_add. Moved the setting of DISPLAY to here.
Added setting of GDK_DISPLAY instead for the fb backends. Hm,
perhaps GDK should do this itself...
* app_procs.c: call gui_environ_init.
* libgimpwidgets/gimpcolorscale.c
* libgimpwidgets/gimpcolorscales.c: #include <string.h> for
strlen and memcpy.
-Yosh
2002-11-01 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorscale.[ch]: improved preformance by
rendering the buffer only when needed for an expose instead of
after each color/channel change.
2002-10-31 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorscale.c: added the missing bits for
channel == GIMP_COLOR_SELECTOR_ALPHA and for vertical orientation.