From 11c0c90000c0f2b1fc0abfb5d2e8ada9fd4bbfa5 Mon Sep 17 00:00:00 2001 From: Jakob Pinterits Date: Sat, 5 Oct 2024 18:59:34 +0200 Subject: [PATCH] tweak dark theme text color --- rio/theme.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rio/theme.py b/rio/theme.py index 68706ef4..b6c35b90 100644 --- a/rio/theme.py +++ b/rio/theme.py @@ -419,9 +419,11 @@ class Theme: if text_color is None: neutral_and_background_text_color = ( + # Grey tones look good on bright themes rio.Color.from_grey(0.3) if background_color.perceived_brightness > 0.5 - else rio.Color.from_grey(0.7) + # ... but not on dark ones. Go very bright here. + else rio.Color.from_grey(0.85) ) else: neutral_and_background_text_color = text_color