Commit ef95133b authored by Florian Müllner's avatar Florian Müllner
Browse files

theme: Also support alpha values in blend/shade functions

This doesn't appear to be used currently, but fix it while at it ...
parent c068c212
......@@ -163,6 +163,7 @@ color_composite (const GdkRGBA *bg,
color->red = color->red + (fg->red - color->red) * alpha;
color->green = color->green + (fg->green - color->green) * alpha;
color->blue = color->blue + (fg->blue - color->blue) * alpha;
color->alpha = color->alpha + (fg->alpha - color->alpha) * alpha;
}
/**
......@@ -6354,6 +6355,7 @@ gtk_style_shade (GdkRGBA *a,
b->red = red;
b->green = green;
b->blue = blue;
b->alpha = a->alpha;
}
/**
......
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