[murrine] reliefstyle = 3 is a gives more shadows to the bottom, relifstyle = 4 is style 2+3
- From: Andrea Cimitan <acimitan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [murrine] reliefstyle = 3 is a gives more shadows to the bottom, relifstyle = 4 is style 2+3
- Date: Tue, 8 Dec 2009 15:22:11 +0000 (UTC)
commit e5e399b571e136d31715aac32d78b2eafa773bd7
Author: Andrea Cimitan <andrea cimitan gmail com>
Date: Thu Nov 19 02:08:51 2009 +0100
reliefstyle = 3 is a gives more shadows to the bottom, relifstyle = 4 is style 2+3
src/cairo-support.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/cairo-support.c b/src/cairo-support.c
index 5e8b32b..847c94b 100644
--- a/src/cairo-support.c
+++ b/src/cairo-support.c
@@ -854,11 +854,8 @@ murrine_draw_shadow (cairo_t *cr,
murrine_shade (color, mrn_gradient.border_shades[1], &shade2);
pat = cairo_pattern_create_linear (x, y, x, height+y);
- murrine_pattern_add_color_stop_rgba (pat, 0.00, &shade1, alpha);
- murrine_pattern_add_color_stop_rgba (pat, 1.00, &shade2,
- alpha*(reliefstyle > 2 ?
- (mrn_gradient.border_shades[1] > 1.0 ?
- 2.5 : 2.0) : 1.0)); //improve
+ murrine_pattern_add_color_stop_rgba (pat, 0.00, &shade1, reliefstyle == 3 ? 0.5*alpha : alpha);
+ murrine_pattern_add_color_stop_rgba (pat, 1.00, &shade2, reliefstyle >= 3 ? (mrn_gradient.border_shades[1] > 1.0 ? 2.5*alpha : 2.0*alpha) : alpha);
cairo_set_source (cr, pat);
cairo_pattern_destroy (pat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]