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



Author: acimitan
Date: Tue Feb 26 21:10:18 2008
New Revision: 1102
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1102&view=rev

Log:
2008-02-26  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/clearlooks/src/clearlooks_style.c:
	(clearlooks_style_realize):
	Fixed broken algorithm for the contrast option


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

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Tue Feb 26 21:10:18 2008
@@ -1287,7 +1287,9 @@
 
 	for (i = 0; i < 9; i++)
 	{
-		ge_shade_color (&bg_normal, (shades[i]-0.7) * contrast + 0.7, &clearlooks_style->colors.shade[i]);
+		ge_shade_color (&bg_normal, (shades[i] < 1.0) ?
+		                (shades[i]/contrast) : (shades[i]*contrast),
+		                &clearlooks_style->colors.shade[i]);
 	}
 
 	ge_gdk_color_to_cairo (&style->bg[GTK_STATE_SELECTED], &spot_color);



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