[gnome-music/wip/mschraal/assorted-art-fixes: 66/70] artcache fixup
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/assorted-art-fixes: 66/70] artcache fixup
- Date: Sun, 11 Apr 2021 08:46:45 +0000 (UTC)
commit 5d1fa5619ec41fe8e67e012156a87ded821ae668
Author: Marinus Schraal <mschraal gnome org>
Date: Sat Apr 10 23:37:33 2021 +0200
artcache fixup
gnomemusic/artcache.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]