[gnome-music/wip/jfelder/album-cover-editordialog: 7/8] albumartcache: Add a new LARGE size



commit 6fdfc1abe93c05dc8166aa47ba2ff07b6dba0bcd
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Jan 29 23:08:56 2019 +0100

    albumartcache: Add a new LARGE size
    
    Rename previous LARGE Size to XLARGE.
    This new Size will be used by the future AlbumEditorDialog.

 gnomemusic/albumartcache.py       | 3 ++-
 gnomemusic/views/emptyview.py     | 4 ++--
 gnomemusic/widgets/albumwidget.py | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py
index 2799e4e8..be35262b 100644
--- a/gnomemusic/albumartcache.py
+++ b/gnomemusic/albumartcache.py
@@ -278,7 +278,8 @@ class Art(GObject.GObject):
         XSMALL = (34, 34)
         SMALL = (48, 48)
         MEDIUM = (128, 128)
-        LARGE = (256, 256)
+        LARGE = (192, 192)
+        XLARGE = (256, 256)
 
         def __init__(self, width, height):
             """Intialize width and height"""
diff --git a/gnomemusic/views/emptyview.py b/gnomemusic/views/emptyview.py
index ff31654d..a10c5147 100644
--- a/gnomemusic/views/emptyview.py
+++ b/gnomemusic/views/emptyview.py
@@ -104,8 +104,8 @@ class EmptyView(Gtk.Stack):
 
         self._icon.props.resource = "/org/gnome/Music/icons/initial-state.png"
         self._icon.props.margin_bottom = 32
-        self._icon.props.height_request = Art.Size.LARGE.height
-        self._icon.props.width_request = Art.Size.LARGE.width
+        self._icon.props.height_request = Art.Size.XLARGE.height
+        self._icon.props.width_request = Art.Size.XLARGE.width
 
     @log
     def _set_empty_state(self):
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index ecdc2c93..a659749b 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -73,7 +73,7 @@ class AlbumWidget(Gtk.EventBox):
 
         self._songs = []
 
-        self._cover_stack.props.size = Art.Size.LARGE
+        self._cover_stack.props.size = Art.Size.XLARGE
         self._parent_view = parent_view
         self._player = player
         self._iter_to_clean = None


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