[gtk/wip/jimmac/vte-bg-color: 2/2] Adwaita: add public color for text views




commit 96500816bc2e459399f74c7251749642875e0277
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Aug 7 18:58:32 2020 +0200

    Adwaita: add public color for text views
    
    - define @text_view_bg to complement @theme_text_color for high
      contrast legible text views.
    
    Fixes https://gitlab.gnome.org/GNOME/vte/-/issues/226

 gtk/theme/Adwaita/_colors-public.scss | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_colors-public.scss b/gtk/theme/Adwaita/_colors-public.scss
index 8ccc3413cc..3b638e2bf6 100644
--- a/gtk/theme/Adwaita/_colors-public.scss
+++ b/gtk/theme/Adwaita/_colors-public.scss
@@ -112,5 +112,8 @@ read if you used those and something break with a version upgrade you're on your
 
 //FIXME this is really an API
 
+/* content view background such as thumbnails view in Photos or Boxes */
 @define-color content_view_bg #{"" + $base_color};
 
+/* Very contrasty background for text views (@theme_text_color foreground) */
+@define-color text_view_bg #{"" + if($variant == 'light', $base_color, darken($base_color,6%))};


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