From ef95133b1cbf0fc82210f266390191c07fbf14e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 3 Jul 2014 20:06:01 +0200 Subject: [PATCH] theme: Also support alpha values in blend/shade functions This doesn't appear to be used currently, but fix it while at it ... --- src/ui/theme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/theme.c b/src/ui/theme.c index 098656417..7c6eea967 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -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; } /**