summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-04-03 16:17:24 +0200
committerJakub Steiner <jimmac@gmail.com>2020-04-03 16:17:24 +0200
commit43b443bc3306c61798ff2ad295458271b445d769 (patch)
treee9db6ef1a1cd5cdc479c0c85439fa19db11cdf42
parentfb325afc79536c6c1547eb42e57fca1f9fa11b8b (diff)
downloadgtk+-wip/jimmac/increase-vte-contrast.tar.gz
Adwaita: add public color for text viewswip/jimmac/increase-vte-contrast
- define @text_view_bg to complement @theme_text_color for high contrast legible text views. Possible solution to https://gitlab.gnome.org/GNOME/vte/-/issues/226
-rw-r--r--gtk/theme/Adwaita/_colors-public.scss3
1 files changed, 3 insertions, 0 deletions
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%))};