[gtk+/gtk-style-context: 273/533] Do not shade alpha values.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 273/533] Do not shade alpha values.
- Date: Wed, 1 Dec 2010 02:28:46 +0000 (UTC)
commit 5b827dee3e7dcda637e80694a44c9debd4d19eb5
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 23 18:24:14 2010 +0200
Do not shade alpha values.
gtk/gtksymboliccolor.c | 1 -
gtk/gtkthemingengine.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksymboliccolor.c b/gtk/gtksymboliccolor.c
index 25af2c3..2fa3d18 100644
--- a/gtk/gtksymboliccolor.c
+++ b/gtk/gtksymboliccolor.c
@@ -309,7 +309,6 @@ gtk_symbolic_color_resolve (GtkSymbolicColor *color,
resolved_color->red = CLAMP (shade.red * color->shade.factor, 0, 1);
resolved_color->green = CLAMP (shade.green * color->shade.factor, 0, 1);
resolved_color->blue = CLAMP (shade.blue * color->shade.factor, 0, 1);
- resolved_color->alpha = CLAMP (shade.alpha * color->shade.factor, 0, 1);
return TRUE;
}
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 61433ad..6540c4c 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1137,7 +1137,7 @@ color_shade (const GdkRGBA *color,
color_return->red = CLAMP (color->red * factor, 0, 1);
color_return->green = CLAMP (color->green * factor, 0, 1);
color_return->blue = CLAMP (color->blue * factor, 0, 1);
- color_return->alpha = CLAMP (color->alpha * factor, 0, 1);
+ color_return->alpha = color->alpha;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]