gtk-engines r1186 - in trunk: . engines/clearlooks/src
- From: bberg svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1186 - in trunk: . engines/clearlooks/src
- Date: Sun, 11 May 2008 21:59:51 +0100 (BST)
Author: bberg
Date: Sun May 11 20:59:51 2008
New Revision: 1186
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1186&view=rev
Log:
2008-05-11 Benjamin Berg <benjamin sipsolutions net>
* engines/clearlooks/src/clearlooks_draw.c:
* engines/clearlooks/src/clearlooks_draw_glossy.c:
* engines/clearlooks/src/clearlooks_draw_gummy.c:
* engines/clearlooks/src/clearlooks_draw_inverted.c:
More visual fixes.
Modified:
trunk/ChangeLog
trunk/engines/clearlooks/src/clearlooks_draw.c
trunk/engines/clearlooks/src/clearlooks_draw_glossy.c
trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
trunk/engines/clearlooks/src/clearlooks_draw_inverted.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 20:59:51 2008
@@ -405,6 +405,7 @@
cairo_move_to (cr, width - xoffset - 1.5, MAX(radius, 1));
cairo_line_to (cr, width - xoffset - 1.5, height - MAX(radius, 1));
cairo_set_source_rgba (cr, shadow.r, shadow.g, shadow.b, 0.1);
+ cairo_set_source_rgb (cr, 1.0, 0, 0);
cairo_stroke (cr);
/* Draw topleft shadow */
@@ -460,9 +461,10 @@
cairo_set_source_rgba (cr, shadow.r, shadow.g, shadow.b, params->disabled ? 0.05 : 0.1);
- cairo_move_to (cr, 2.5, height-2-radius);
+ cairo_set_line_cap (cr, CAIRO_LINE_CAP_BUTT);
+ cairo_move_to (cr, 2.5, height-radius);
cairo_arc (cr, 2.5+MAX(0, radius-1), 2.5+MAX(0, radius-1), MAX(0, radius-1), G_PI, 270*(G_PI/180));
- cairo_line_to (cr, width-2-radius, 2.5);
+ cairo_line_to (cr, width-radius, 2.5);
cairo_stroke (cr);
}
Modified: trunk/engines/clearlooks/src/clearlooks_draw_glossy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_glossy.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_glossy.c Sun May 11 20:59:51 2008
@@ -608,7 +608,7 @@
{
cairo_pattern_t *pattern;
- pattern = cairo_pattern_create_linear (0, 0, horizontal ? 0 : width, horizontal ? height : 0);
+ pattern = cairo_pattern_create_linear (0.5, 0.5, horizontal ? 0.5 : width + 1, horizontal ? height + 1 : 0.5);
cairo_pattern_add_color_stop_rgb (pattern, 0.0, c1->r, c1->g, c1->b);
cairo_pattern_add_color_stop_rgb (pattern, 1.0, c2->r, c2->g, c2->b);
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 Sun May 11 20:59:51 2008
@@ -298,9 +298,10 @@
cairo_set_source_rgba (cr, shadow.r, shadow.g, shadow.b, params->disabled ? 0.09 : 0.18);
- cairo_move_to (cr, 2, height-2-radius);
- cairo_arc (cr, 2+MAX(0, radius-1), 2+MAX(0, radius-1), MAX(0, radius-1), G_PI, 270*(G_PI/180));
- cairo_line_to (cr, width-2-radius, 2);
+ cairo_set_line_cap (cr, CAIRO_LINE_CAP_BUTT);
+ cairo_move_to (cr, 2.5, height-radius);
+ cairo_arc (cr, 2.5+MAX(0, radius-1), 2.5+MAX(0, radius-1), MAX(0, radius-1), G_PI, 270*(G_PI/180));
+ cairo_line_to (cr, width-radius, 2.5);
cairo_stroke (cr);
}
@@ -540,7 +541,7 @@
ge_shade_color (fill, in? 0.95 : 1.1, &f1);
ge_shade_color (fill, in? 1.05 : 0.9, &f2);
- pattern = cairo_pattern_create_linear (0, 0, horizontal ? 0 : width, horizontal ? height : 0);
+ pattern = cairo_pattern_create_linear (0.5, 0.5, horizontal ? 0.5 : width + 1.0, horizontal ? height + 1.0 : 0.5);
cairo_pattern_add_color_stop_rgba (pattern, 0.0, f1.r, f1.g, f1.b, f1.a);
cairo_pattern_add_color_stop_rgba (pattern, 1.0, f2.r, f2.g, f2.b, f2.a);
Modified: trunk/engines/clearlooks/src/clearlooks_draw_inverted.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_inverted.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_inverted.c Sun May 11 20:59:51 2008
@@ -78,7 +78,7 @@
if (params->xthickness == 3 || params->ythickness == 3)
{
- params->style_functions->draw_inset (cr, ¶ms->parentbg, 0, 0, width-1, height-1, radius+1, params->corners);
+ params->style_functions->draw_inset (cr, ¶ms->parentbg, 0, 0, width, height, radius+1, params->corners);
}
ge_cairo_rounded_rectangle (cr, xoffset+1, yoffset+1,
@@ -161,8 +161,8 @@
if (!params->active)
{
/* Draw right shadow */
- cairo_move_to (cr, width-params->xthickness, params->ythickness - 1);
- cairo_line_to (cr, width-params->xthickness, height - params->ythickness - 1);
+ cairo_move_to (cr, width-xoffset-1.5, yoffset + radius);
+ cairo_line_to (cr, width-xoffset-1.5, height - yoffset - radius);
cairo_set_source_rgba (cr, shadow.r, shadow.g, shadow.b, 0.1);
cairo_stroke (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]