From 75de44a7eb1ae4c606bbe413d825e78df114339d Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 26 Feb 2017 14:55:27 -0500 Subject: [PATCH] inverted colors of thumb and scroll region --- lib/win.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/win.c b/lib/win.c index 8a85a15..1452def 100644 --- a/lib/win.c +++ b/lib/win.c @@ -176,10 +176,9 @@ static void onredraw(int width, int height) { size_t thumboff = (Regions[SCROLL].y - 2) + (Regions[SCROLL].height * voff / 100); size_t thumbsz = Regions[SCROLL].height * vtot / 100; if (thumbsz < 5) thumbsz = 5; - x11_draw_rect(CLR_BASE01, Regions[SCROLL].width, Regions[SCROLL].y-2, 1, Regions[SCROLL].height); - x11_draw_rect(CLR_BASE02, 0, Regions[SCROLL].y - 2, Regions[SCROLL].width, Regions[SCROLL].height); - x11_draw_rect(CLR_BASE00, 0, thumboff, Regions[SCROLL].width, thumbsz); + x11_draw_rect(CLR_BASE00, 0, Regions[SCROLL].y - 2, Regions[SCROLL].width, Regions[SCROLL].height); + x11_draw_rect(CLR_BASE02, 0, thumboff, Regions[SCROLL].width, thumbsz); /* place the cursor on screen */ if (Regions[Focused].csrx != SIZE_MAX && Regions[Focused].csry != SIZE_MAX) { -- 2.52.0