added a new simple widget which provides a color preview area capable of

2001-01-09  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpcolorarea.[ch]: added a new simple widget which
	provides a color preview area capable of DND. It will be used
	in the GimpColorButton and in the color_selectors.

	* libgimp/Makefile.am
	* libgimp/gimpui.h
	* libgimp/gimpuitypes.h: include the new files

	* libgimp/gimpcolor.[ch]: use proper names instead of abbreviations

	* app/asupsample.c
	* plug-ins/Lighting/lighting_preview.c
	* plug-ins/Lighting/lighting_shade.c
	* plug-ins/MapObject/mapobject_preview.c
	* plug-ins/MapObject/mapobject_shade.c
	* plug-ins/libgck/gck/gckcolor.c: changed accordingly
This commit is contained in:
Sven Neumann
2001-01-09 01:39:37 +00:00
committed by Sven Neumann
parent 37fe1a885d
commit aa9931f8be
16 changed files with 1034 additions and 80 deletions

View File

@ -233,9 +233,9 @@ compute_preview (gint x,
}
else
{
gimp_rgb_mul (&color, color.a);
gimp_rgb_multiply (&color, color.a);
temp = lightcheck;
gimp_rgb_mul (&temp, 1.0 - color.a);
gimp_rgb_multiply (&temp, 1.0 - color.a);
gimp_rgb_add (&color, &temp);
}
}
@ -247,9 +247,9 @@ compute_preview (gint x,
}
else
{
gimp_rgb_mul (&color, color.a);
gimp_rgb_multiply (&color, color.a);
temp = darkcheck;
gimp_rgb_mul (&temp, 1.0 - color.a);
gimp_rgb_multiply (&temp, 1.0 - color.a);
gimp_rgb_add (&color, &temp);
}
}