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
This commit is contained in:
Jakub Steiner 2020-08-07 18:55:04 +02:00
parent 2427ebf9ba
commit c09b9904c8
3 changed files with 9 additions and 0 deletions

View File

@ -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%))};

View File

@ -2017,4 +2017,7 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_button_active_color_a shade(#353535, 0.85);
@define-color wm_button_active_color_b shade(#353535, 0.89);
@define-color wm_button_active_color_c shade(#353535, 0.9);
/* content view background such as thumbnails view in Photos or Boxes */
@define-color content_view_bg #2d2d2d;
/* Very contrasty background for text views (@theme_text_color foreground) */
@define-color text_view_bg #1e1e1e;

View File

@ -2033,4 +2033,7 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_button_active_color_a shade(#f6f5f4, 0.85);
@define-color wm_button_active_color_b shade(#f6f5f4, 0.89);
@define-color wm_button_active_color_c shade(#f6f5f4, 0.9);
/* content view background such as thumbnails view in Photos or Boxes */
@define-color content_view_bg #ffffff;
/* Very contrasty background for text views (@theme_text_color foreground) */
@define-color text_view_bg #ffffff;