forked from AuroraMiddleware/gtk
Do not shade alpha values.
This commit is contained in:
parent
3bfc59b9bb
commit
490d59f045
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user