[gnome-music/wip/mschraal/assorted-art-fixes: 2/2] new albums style




commit 5081894d447938cba34cba7b4478fdec1dfabe4c
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Nov 12 00:18:41 2020 +0100

    new albums style

 data/ui/AlbumsView.ui  | 1 -
 gnomemusic/artcache.py | 8 ++++----
 gnomemusic/utils.py    | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/AlbumsView.ui b/data/ui/AlbumsView.ui
index 4866087de..b7201d852 100644
--- a/data/ui/AlbumsView.ui
+++ b/data/ui/AlbumsView.ui
@@ -8,7 +8,6 @@
         <property name="visible">True</property>
         <child>
           <object class="GtkFlowBox" id="_flowbox">
-            <property name="column_spacing">6</property>
             <property name="halign">fill</property>
             <property name="hexpand">True</property>
             <property name="homogeneous">True</property>
diff --git a/gnomemusic/artcache.py b/gnomemusic/artcache.py
index a42355dea..bd6a0825b 100644
--- a/gnomemusic/artcache.py
+++ b/gnomemusic/artcache.py
@@ -50,9 +50,9 @@ def _make_icon_frame(
     :return: The framed surface
     :rtype: cairo.Surface
     """
-    border = 3
+    border = 0
     degrees = pi / 180
-    radius = 3
+    radius = 8
     icon_w = icon_surface.get_width()
     icon_h = icon_surface.get_height()
     ratio = icon_h / icon_w
@@ -71,7 +71,7 @@ def _make_icon_frame(
     matrix = cairo.Matrix()
 
     if round_shape:
-        line_width = 0.6
+        line_width = 0.0
         ctx.new_sub_path()
         ctx.arc(w / 2, h / 2, (w / 2) - line_width, 0, 2 * pi)
         ctx.set_source_rgba(0, 0, 0, 0.7)
@@ -86,7 +86,7 @@ def _make_icon_frame(
         ctx.arc(radius, h - radius, radius - 0.5, 90 * degrees, 180 * degrees)
         ctx.arc(radius, radius, radius - 0.5, 180 * degrees, 270 * degrees)
         ctx.close_path()
-        ctx.set_line_width(0.6)
+        ctx.set_line_width(0.0)
         ctx.set_source_rgba(0, 0, 0, 0.7)
         ctx.stroke_preserve()
 
diff --git a/gnomemusic/utils.py b/gnomemusic/utils.py
index ff2635411..e6f7653df 100644
--- a/gnomemusic/utils.py
+++ b/gnomemusic/utils.py
@@ -37,7 +37,7 @@ class ArtSize(Enum):
     """Enum for icon sizes"""
     XSMALL = (34, 34)
     SMALL = (48, 48)
-    MEDIUM = (128, 128)
+    MEDIUM = (192, 192)
     LARGE = (256, 256)
     XLARGE = (512, 512)
 


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