Commit 136e943d authored by Cédric Bellegarde's avatar Cédric Bellegarde

Centered cover

parent 519e6246
Pipeline #214446 passed with stage
in 4 minutes and 51 seconds
......@@ -47,6 +47,7 @@ class ToolbarInfo(Gtk.Bin, ArtworkPlayerWidget, GesturesHelper):
self.__artwork = ArtworkPlayerWidget(ArtBehaviour.CROP_SQUARE |
ArtBehaviour.CACHE)
self.__artwork.set_property("has-tooltip", True)
self.__artwork.set_margin_top(1)
horizontal_box.pack_start(self.__artwork, False, False, 0)
horizontal_box.pack_start(self.__label, False, False, 0)
self.set_margin_start(MARGIN_SMALL)
......@@ -173,5 +174,5 @@ class ToolbarInfo(Gtk.Bin, ArtworkPlayerWidget, GesturesHelper):
Calculate art size
@param toolbar as ToolbarInfos
"""
art_size = self.get_allocated_height() - 2
art_size = self.get_allocated_height() - 1
self.__artwork.set_art_size(art_size, art_size)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment