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



Author: acimitan
Date: Tue Jan 29 19:07:06 2008
New Revision: 1045
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1045&view=rev

Log:
2008-01-29  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/clearlooks/src/clearlooks_draw_gummy.c:
	(clearlooks_gummy_draw_focus):
	Shading improvements in focus, more padding to CL_FOCUS_LABEL


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 Jan 29 19:07:06 2008
@@ -1597,8 +1597,8 @@
 	double xoffset = 1.5;
 	double yoffset = 1.5;
 	double radius = widget->radius-1.0;
-	double border_alpha = 0.7;
-	double fill_alpha = 0.2;
+	double border_alpha = 0.6;
+	double fill_alpha = 0.18;
 	double shadow_alpha = 0.5;
 	boolean focus_fill = TRUE;
 	boolean focus_border = TRUE;
@@ -1634,8 +1634,8 @@
 			}
 			break;
 		case CL_FOCUS_LABEL:
-			xoffset = 1.5;
-			yoffset = 1.5;
+			xoffset = 0.5;
+			yoffset = 0.5;
 			break;
 		case CL_FOCUS_TREEVIEW:
 			parentbg = colors->base[widget->state_type];
@@ -1655,15 +1655,14 @@
 			xoffset = -2.5; /* hack to hide vertical lines */
 			yoffset = 0.5;
 			CLAMP (radius, 0.0, 2.0);
+			border_alpha = 0.7;
 			focus_fill = FALSE;
 			break;
 		case CL_FOCUS_TAB:
-	        /* In current GTK+ focus and active cannot happen together, but we are robust against it.
-	         * IF the application sets the state to ACTIVE while drawing the tabs focus. */
+			/* In current GTK+ focus and active cannot happen together, but we are robust against it.
+			 * IF the application sets the state to ACTIVE while drawing the tabs focus. */
 			if (widget->focus && !widget->active)
 				return;
-			border_alpha = 0.6;
-			fill_alpha = 0.17;
 			break;
 		case CL_FOCUS_SCALE:
 			break;



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