murrine r41 - trunk/src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r41 - trunk/src
- Date: Sun, 24 Aug 2008 01:11:57 +0000 (UTC)
Author: acimitan
Date: Sun Aug 24 01:11:57 2008
New Revision: 41
URL: http://svn.gnome.org/viewvc/murrine?rev=41&view=rev
Log:
ooops, this one works better
Modified:
trunk/src/murrine_draw.c
trunk/src/murrine_draw_rgba.c
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Sun Aug 24 01:11:57 2008
@@ -992,7 +992,7 @@
if (!widget->active)
border1 = (MurrineRGB*)&colors->shade[5];
else
- border1 = (MurrineRGB*)&colors->shade[3];
+ border1 = (MurrineRGB*)&colors->shade[4];
/* Set clip */
cairo_rectangle (cr, x, y, width, height);
@@ -1172,38 +1172,8 @@
}
murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
-
- if (widget->active)
- {
- murrine_set_color_rgb (cr, border1);
- cairo_stroke (cr);
- }
- else
- {
- switch (tab->gap_side)
- {
- case MRN_GAP_TOP:
- pattern = cairo_pattern_create_linear (2, height-2, 2, 2);
- break;
- case MRN_GAP_BOTTOM:
- pattern = cairo_pattern_create_linear (2, 2, 2, height);
- break;
- case MRN_GAP_LEFT:
- pattern = cairo_pattern_create_linear (width-2, 2, 2, 2);
- break;
- case MRN_GAP_RIGHT:
- pattern = cairo_pattern_create_linear (2, 2, width, 2);
- break;
- }
-
- cairo_pattern_add_color_stop_rgb (pattern, 0.0, border1->r, border1->g, border1->b);
- cairo_pattern_add_color_stop_rgb (pattern, strip_size, border1->r, border1->g, border1->b);
- cairo_pattern_add_color_stop_rgb (pattern, strip_size, border1->r, border1->g, border1->b);
- cairo_pattern_add_color_stop_rgb (pattern, 0.8, border1->r, border1->g, border1->b);
- cairo_set_source (cr, pattern);
- cairo_stroke (cr);
- cairo_pattern_destroy (pattern);
- }
+ murrine_set_color_rgb (cr, border1);
+ cairo_stroke (cr);
}
static void
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Sun Aug 24 01:11:57 2008
@@ -1101,7 +1101,7 @@
if (!widget->active)
border = (MurrineRGB*)&colors->shade[5];
else
- border = (MurrineRGB*)&colors->shade[3];
+ border = (MurrineRGB*)&colors->shade[4];
/* Set clip */
cairo_rectangle (cr, x, y, width, height);
@@ -1293,38 +1293,8 @@
}
murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
-
- if (widget->active)
- {
- murrine_set_color_rgb (cr, border);
- cairo_stroke (cr);
- }
- else
- {
- switch (tab->gap_side)
- {
- case MRN_GAP_TOP:
- pattern = cairo_pattern_create_linear (2, height-2, 2, 2);
- break;
- case MRN_GAP_BOTTOM:
- pattern = cairo_pattern_create_linear (2, 2, 2, height);
- break;
- case MRN_GAP_LEFT:
- pattern = cairo_pattern_create_linear (width-2, 2, 2, 2);
- break;
- case MRN_GAP_RIGHT:
- pattern = cairo_pattern_create_linear (2, 2, width, 2);
- break;
- }
-
- cairo_pattern_add_color_stop_rgb (pattern, 0.0, stripe_border->r, stripe_border->g, stripe_border->b);
- cairo_pattern_add_color_stop_rgb (pattern, strip_size, stripe_border->r, stripe_border->g, stripe_border->b);
- cairo_pattern_add_color_stop_rgb (pattern, strip_size, stripe_border->r, stripe_border->g, stripe_border->b);
- cairo_pattern_add_color_stop_rgb (pattern, 0.8, border->r, border->g, border->b);
- cairo_set_source (cr, pattern);
- cairo_stroke (cr);
- cairo_pattern_destroy (pattern);
- }
+ murrine_set_color_rgb (cr, border);
+ cairo_stroke (cr);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]