Set pixel size for “standalone” images (close #109)
This commit is contained in:
parent
099adbab8c
commit
08cd9dbe65
3 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue