[gnome-music/wip/cdavis/dark-style-opt-in: 4/5] defaulticon: Dim icon for dark mode




commit 6c4ff8829db361dd28c0d77db39ca1338e81c4fb
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sat Nov 27 18:51:47 2021 -0800

    defaulticon: Dim icon for dark mode

 gnomemusic/defaulticon.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/defaulticon.py b/gnomemusic/defaulticon.py
index 6e4d04a25..9e5e1764f 100644
--- a/gnomemusic/defaulticon.py
+++ b/gnomemusic/defaulticon.py
@@ -76,11 +76,12 @@ def make_icon_frame(
         ctx.arc(radius, h - radius, radius, 90 * degrees, 180 * degrees)
         ctx.arc(radius, radius, radius, 180 * degrees, 270 * degrees)
 
-    fill_color = Gdk.RGBA(1.0, 1.0, 1.0, 1.0)
-    icon_color = Gdk.RGBA(0.0, 0.0, 0.0, 0.3)
     if dark:
-        fill_color = Gdk.RGBA(66.0 / 255, 66.0 / 255, 66.0 / 255, 1.0)
-        icon_color = Gdk.RGBA(1.0, 1.0, 1.0, 1.0)
+        fill_color = Gdk.RGBA(0.28, 0.28, 0.28, 1.0)
+        icon_color = Gdk.RGBA(1.0, 1.0, 1.0, 0.5)
+    else:
+        fill_color = Gdk.RGBA(1.0, 1.0, 1.0, 1.0)
+        icon_color = Gdk.RGBA(0.0, 0.0, 0.0, 0.3)
 
     if default_icon:
         ctx.set_source_rgb(fill_color.red, fill_color.green, fill_color.blue)


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