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



Author: acimitan
Date: Sun May 11 22:48:06 2008
New Revision: 1192
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1192&view=rev

Log:
2008-05-12  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/clearlooks/src/clearlooks_draw.c
	(clearlooks_draw_list_view_header):
	* engines/clearlooks/src/clearlooks_style.c
	(clearlooks_style_draw_shadow):
	Old looking scrolled window.


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

Modified: trunk/engines/clearlooks/src/clearlooks_draw.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.c	Sun May 11 22:48:06 2008
@@ -1415,13 +1415,12 @@
                                   const ListViewHeaderParameters  *header,
                                   int x, int y, int width, int height)
 {
-	const CairoColor *border = &colors->shade[5];
-	cairo_pattern_t *pattern;
+	const CairoColor *border = &colors->shade[4];
 	CairoColor hilight;
-	CairoColor shadow;
 
- 	ge_shade_color (border, 1.5, &hilight);
-	ge_shade_color (border, 0.925, &shadow);
+	ge_shade_color (&colors->bg[params->state_type],
+	                params->style_constants->topleft_highlight_shade, &hilight);
+	hilight.a = params->style_constants->topleft_highlight_alpha;
 
 	cairo_translate (cr, x, y);
 	cairo_set_line_width (cr, 1.0);
@@ -1446,16 +1445,6 @@
 	ge_cairo_set_color (cr, border);
 	cairo_stroke (cr);
 
-	/* Draw bottom shade */
-	pattern = cairo_pattern_create_linear (0.0, height-5.0, 0.0, height-1.0);
-	cairo_pattern_add_color_stop_rgba     (pattern, 0.0, shadow.r, shadow.g, shadow.b, 0.0);
-	cairo_pattern_add_color_stop_rgba     (pattern, 1.0, shadow.r, shadow.g, shadow.b, 0.2);
-
-	cairo_rectangle       (cr, 0.0, height-5.0, width, 4.0);
-	cairo_set_source      (cr, pattern);
-	cairo_fill            (cr);
-	cairo_pattern_destroy (pattern);
-
 	/* Draw resize grip */
 	if ((params->ltr && header->order != CL_ORDER_LAST) ||
 	    (!params->ltr && header->order != CL_ORDER_FIRST) || header->resizable)

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Sun May 11 22:48:06 2008
@@ -215,7 +215,7 @@
 	}
 	else if (DETAIL ("scrolled_window") || DETAIL ("viewport") || detail == NULL)
 	{
-		CairoColor *border = (CairoColor*)&colors->shade[5];
+		CairoColor *border = (CairoColor*)&colors->shade[CLEARLOOKS_STYLE (style)->style == CL_STYLE_CLASSIC ? 3 : 5];
 		cairo_rectangle (cr, x+0.5, y+0.5, width-1, height-1);
 		ge_cairo_set_color (cr, border);
 		cairo_set_line_width (cr, 1);



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