[gnome-music/wip/mschraal/rework-art-widget: 9/12] Revert "artstack: Add .card on medium and large arts"
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/rework-art-widget: 9/12] Revert "artstack: Add .card on medium and large arts"
- Date: Mon, 4 Apr 2022 21:45:52 +0000 (UTC)
commit 2d78f2634094a85c7a8435befbead9fa9484ac82
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]