From c00af04c946ac78c9c94f756395917ce163c7874 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Fri, 17 Jun 2022 08:50:25 +0200 Subject: [PATCH] Background button: Use original color space for thumbnail --- src/preferences/BackgroundButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/BackgroundButton.js b/src/preferences/BackgroundButton.js index beb2d4e..86ab0d9 100644 --- a/src/preferences/BackgroundButton.js +++ b/src/preferences/BackgroundButton.js @@ -139,7 +139,7 @@ var BackgroundButton = GObject.registerClass({ const pixbuf = GdkPixbuf.Pixbuf.new_from_file(path); const scale = pixbuf.width / pixbuf.height > width / height ? height / pixbuf.height : width / pixbuf.width; - const thumbPixbuf = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.GDK_COLORSPACE_RGB, pixbuf.has_alpha, pixbuf.bits_per_sample, width, height); + const thumbPixbuf = GdkPixbuf.Pixbuf.new(pixbuf.colorspace, pixbuf.has_alpha, pixbuf.bits_per_sample, width, height); pixbuf.scale( thumbPixbuf, 0, 0,