[gnome-music/wip/mschraal/rework-art-widget: 15/18] Revert "artstack: Add .card on medium and large arts"




commit fe0c5c847af5f3ac31689b93bb5c873b26d6dfc2
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 3 11:42:47 2022 +0200

    Revert "artstack: Add .card on medium and large arts"
    
    This reverts commit 58c5f429bb83515c5a57b59462fe31beee8cfdd8.
    
    This has some unwanted side-effects with circular covers and not
    strictly 1:1 ratios.

 gnomemusic/widgets/artstack.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/widgets/artstack.py b/gnomemusic/widgets/artstack.py
index 9cbf17824..e1c098a44 100644
--- a/gnomemusic/widgets/artstack.py
+++ b/gnomemusic/widgets/artstack.py
@@ -86,12 +86,6 @@ class ArtStack(Gtk.Stack):
         :param ArtSize value: The size to use for the cover
         """
         self.set_size_request(value.width, value.height)
-
-        if value in [ArtSize.MEDIUM, ArtSize.LARGE]:
-            self.add_css_class('card')
-        else:
-            self.remove_css_class('card')
-
         self._size = value
 
     @GObject.Property(type=object, flags=GObject.ParamFlags.READWRITE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]