From f0faa77f7bd47f4137a007f3411a3c5a2dc07e4c Mon Sep 17 00:00:00 2001 From: malc Date: Mon, 21 Feb 2022 13:04:42 +0300 Subject: [PATCH] Change placeholder's color when colors are globally inverted --- main.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.ml b/main.ml index aacff4c..a2f439c 100644 --- a/main.ml +++ b/main.ml @@ -400,7 +400,8 @@ let drawtiles l color = let w = let lw = !S.winw - x in min lw w and h = let lh = !S.winh - y in min lh h in texe `blend; - GlDraw.color (0.8, 0.8, 0.8); + let c = if conf.invert then 0.2 else 0.8 in + GlDraw.color (c, c, c); Glutils.filledrect (float x) (float y) (float (x+w)) (float (y+h)); texe `modulate; if w > 128 && h > fstate.fontsize + 10 -- 2.11.4.GIT