Commit 490d59f0 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

Do not shade alpha values.

parent 3bfc59b9
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment