dark theme: create $caret_color and use it

Fixes Evince showing a dark caret when using
dark theme, which makes it almost invisible.

This is in css node "textview text" of Evince
annotation window (a GtkScrolledWindow).

We create a new $caret_color var based on
$text_color and use it accordingly.

Fixes evince#1842
This commit is contained in:
Nelson Benítez León 2023-03-12 18:47:59 -04:00
parent 9dc0e6c4d0
commit 2c951f122d
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
$base_color: if($variant == 'light', #ffffff, lighten(desaturate(#241f31, 100%), 2%));
$text_color: if($variant == 'light', black, white);
$caret_color: if($variant == 'light', lighten($text_color, 5%), darken($text_color, 3%));
$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
$fg_color: if($variant == 'light', #2e3436, #eeeeec);

View File

@ -108,6 +108,7 @@ $_switch_margin: if($_sizevariant=='default', 10px, 7px);
.view,
%view {
color: $text_color;
caret-color: $caret_color;
background-color: $base_color;
&:backdrop {