gtk-engines r1144 - in trunk: . engines/clearlooks/src



Author: acimitan
Date: Tue Mar 18 03:27:00 2008
New Revision: 1144
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1144&view=rev

Log:
2008-03-18  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/clearlooks/src/clearlooks_draw_gummy.c:
	(clearlooks_gummy_draw_scale_trough):
	Use shade[2] taken from parentbg to draw the scale trough


Modified:
   trunk/ChangeLog
   trunk/engines/clearlooks/src/clearlooks_draw_gummy.c

Modified: trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_gummy.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_gummy.c	Tue Mar 18 03:27:00 2008
@@ -618,18 +618,26 @@
 	cairo_translate (cr, 1, 1);
 
 	if (!slider->lower && !slider->fill_level)
+	{
+		CairoColor fill;
+
+		/* 0.896 = shade[2], as previous code, but now is shading parentbg */
+		ge_shade_color (&params->parentbg, 0.896, &fill);
+
 		clearlooks_gummy_scale_draw_gradient (cr,
-		                                      &colors->shade[2], /* bottom */
+		                                      &fill, /* bottom */
 		                                      &colors->shade[6], /* border */
 		                                      0, 0, trough_width, trough_height,
 		                                      slider->horizontal, TRUE);
+	}
 	else if (!slider->fill_level)
 		clearlooks_gummy_scale_draw_gradient (cr,
 		                                      &colors->spot[1], /* bottom */
 		                                      &colors->spot[2], /* border */
 		                                      0, 0, trough_width, trough_height,
 		                                      slider->horizontal, FALSE);
-	else {
+	else
+	{
 		CairoColor c1 = colors->spot[1];
 		CairoColor c2 = colors->spot[2];
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]