[Github-comments] [geany/geany] Support for VTE 2.91 (#1181)

Colomban Wendling notifications at xxxxx
Sat Aug 20 14:36:57 UTC 2016


> +	{
> +		GError *error = NULL;
> +
> +		background_image_pixbuf = gdk_pixbuf_new_from_file(path, &error);
> +		if (! background_image_pixbuf)
> +		{
> +			g_warning("Failed to load VTE background image: %s", error->message);
> +			g_error_free(error);
> +		}
> +		/* alter the background color to add alpha to it */
> +		else if (vf->vte_terminal_set_color_background_rgba)
> +		{
> +			GdkRGBA bg;
> +
> +			/* default VTE "saturation" value is 0.4: 1.0 - 0.4 = 0.6 */
> +			rgba_from_color(&bg, &vc->colour_back, 0.6);

apparently this is wrong, and VTE doesn't use the background color to perform the blend, but black instead.

IMO the implementation here is better as it's more flexible at very little cost, but if we want to get exact same behavior we should use `GdkRGBA bg = { 0, 0, 0, 0.6 }`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1181/files/e48fa14aa403c35833a5f4f6e11ab2a6ad6482cb..2bfcbe8c4bb501972b813b25f753a8e0781e0f1b#r75579651
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160820/d878416a/attachment.html>


More information about the Github-comments mailing list