[gnome-music/wip/cdavis/dark-style-opt-in] defaulticon: Dim icon for dark mode
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/cdavis/dark-style-opt-in] defaulticon: Dim icon for dark mode
- Date: Sun, 28 Nov 2021 02:52:21 +0000 (UTC)
commit be7b0751a414d9d8a1d02fa6cb7a94c2ee7ad46f
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 028eac78d..061b8e474 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]