From 08cd9dbe6593219820fb93e78e7136d74f867629 Mon Sep 17 00:00:00 2001 From: Olli Date: Sat, 10 Jan 2026 15:26:49 +0100 Subject: [PATCH] =?UTF-8?q?Set=20pixel=20size=20for=20=E2=80=9Cstandalone?= =?UTF-8?q?=E2=80=9D=20images=20(close=20#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/coverpanel.py | 1 + src/librarypanel.py | 1 + src/playlistpanel.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/coverpanel.py b/src/coverpanel.py index d9c5d31..312d4da 100644 --- a/src/coverpanel.py +++ b/src/coverpanel.py @@ -251,4 +251,5 @@ class CoverPanel(Gtk.Overlay): return self.cover_image.set_from_pixbuf( pixbuf.scale_simple(width, height, GdkPixbuf.InterpType.HYPER)) + self.cover_image.set_pixel_size(min(width, height)) self.cover_image.show() diff --git a/src/librarypanel.py b/src/librarypanel.py index e2ae1fb..fd56f9f 100644 --- a/src/librarypanel.py +++ b/src/librarypanel.py @@ -456,6 +456,7 @@ class LibraryPanel(Adw.Bin): # Pixelpuffer auf Oberfläche zeichnen self.standalone_image.set_from_pixbuf( pixbuf.scale_simple(width, height, GdkPixbuf.InterpType.HYPER)) + self.standalone_image.set_pixel_size(min(width, height)) self.standalone_image.show() def _get_default_image(self): diff --git a/src/playlistpanel.py b/src/playlistpanel.py index 34abfee..a9b1d8a 100644 --- a/src/playlistpanel.py +++ b/src/playlistpanel.py @@ -263,6 +263,7 @@ class PlaylistPanel(Adw.Bin): # Pixelpuffer auf Oberfläche zeichnen self.standalone_image.set_from_pixbuf( pixbuf.scale_simple(width, height, GdkPixbuf.InterpType.HYPER)) + self.standalone_image.set_pixel_size(min(width, height)) self.standalone_image.show() def _get_default_image(self):