gtk-engines r1046 - in trunk: . engines/clearlooks/src themes/Clearlooks/gtk-2.0



Author: bberg
Date: Wed Jan 30 22:37:21 2008
New Revision: 1046
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1046&view=rev

Log:
2008-01-30  Benjamin Berg  <benjamin sipsolutions net>

	* engines/clearlooks/src/clearlooks_draw_gummy.c:
	(clearlooks_gummy_draw_menuitem):
	* themes/Clearlooks/gtk-2.0/gtkrc:
	Set the xthickness of GtkMenu to 1px and special cased the menu item
	drawing to not draw a line on the left/right for the radius == 0
	case.
	This helps with usability, as no item is selected after opening a
	context menu, and also helps with menus that have an empty area because
	of scrolling.


Modified:
   trunk/ChangeLog
   trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
   trunk/themes/Clearlooks/gtk-2.0/gtkrc

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	Wed Jan 30 22:37:21 2008
@@ -1317,7 +1317,10 @@
 	ge_shade_color (fill, SHADE_BOTTOM, &shade3);
 	cairo_set_line_width (cr, 1.0);
 
-	ge_cairo_rounded_rectangle (cr, x+0.5, y+0.5, width - 1, height - 1, params->radius, params->corners);
+	if (params->radius == 0)
+		cairo_rectangle (cr, x-0.5, y+0.5, width + 1, height - 1);
+	else
+		ge_cairo_rounded_rectangle (cr, x+0.5, y+0.5, width - 1, height - 1, params->radius, params->corners);
 
 	pattern = cairo_pattern_create_linear (x, y, x, y + height);
 	cairo_pattern_add_color_stop_rgb (pattern, 0,   shade1.r, shade1.g, shade1.b);

Modified: trunk/themes/Clearlooks/gtk-2.0/gtkrc
==============================================================================
--- trunk/themes/Clearlooks/gtk-2.0/gtkrc	(original)
+++ trunk/themes/Clearlooks/gtk-2.0/gtkrc	Wed Jan 30 22:37:21 2008
@@ -117,7 +117,7 @@
 
 style "clearlooks-menu"
 {
-	xthickness = 0
+	xthickness = 1
 	ythickness = 0
 
 	bg[NORMAL] = shade (1.08, @bg_color)



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