[gnome-text-editor] recoloring: tweak color for dark modes



commit facd7eb9e35907f590ed58bfb75ae809f504022b
Author: Christian Hergert <chergert redhat com>
Date:   Fri Dec 3 12:17:04 2021 -0800

    recoloring: tweak color for dark modes
    
    After downloading some random old style schemes from the long long past,
    I came across some harder to alter scenarios, such as all-black. This
    helps that while also slightly improving the color for others like
    solarized-dark.
    
    Related #139

 src/editor-recoloring.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/editor-recoloring.c b/src/editor-recoloring.c
index 0729eab..e0d7b27 100644
--- a/src/editor-recoloring.c
+++ b/src/editor-recoloring.c
@@ -34,8 +34,9 @@
   "@define-color popover_bg_color mix(@window_bg_color, white, .1);\n" \
   "@define-color card_bg_color alpha(white, .6);\n"
 #define DARK_CSS_SUFFIX \
-  "@define-color popover_bg_color mix(@window_bg_color, black, .1);\n" \
-  "@define-color card_bg_color alpha(white, .1);\n"
+  "@define-color popover_bg_color mix(@window_bg_color, black, 0.1);\n" \
+  "@define-color card_bg_color lighter(mix(@window_bg_color,@window_fg_color,.025));\n" \
+  "@define-color view_bg_color darker(@window_bg_color);\n"
 
 enum {
   FOREGROUND,


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