From 919ada11232781e3624363d834a6b9851c3a2bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Wed, 23 Jan 2019 21:18:12 +0100 Subject: Align compile-time color options with X resource colors Two colors are more than enough! --- thumbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index c389b39..137a9d1 100644 --- a/thumbs.c +++ b/thumbs.c @@ -468,14 +468,14 @@ void tns_mark(tns_t *tns, int n, bool mark) if (n >= 0 && n < *tns->cnt && tns->thumbs[n].im != NULL) { win_t *win = tns->win; thumb_t *t = &tns->thumbs[n]; - unsigned long col = win->fullscreen ? win->fscol.pixel : win->bgcol.pixel; + unsigned long col = win->fullscreen ? win->black.pixel : win->bg.pixel; int x = t->x + t->w, y = t->y + t->h; win_draw_rect(win, x - 1, y + 1, 1, tns->bw, true, 1, col); win_draw_rect(win, x + 1, y - 1, tns->bw, 1, true, 1, col); if (mark) - col = win->selcol.pixel; + col = win->fullscreen && win->light ? win->bg.pixel : win->fg.pixel; win_draw_rect(win, x, y, tns->bw + 2, tns->bw + 2, true, 1, col); @@ -493,9 +493,9 @@ void tns_highlight(tns_t *tns, int n, bool hl) int oxy = (tns->bw + 1) / 2 + 1, owh = tns->bw + 2; if (hl) - col = win->selcol.pixel; + col = win->fullscreen && win->light ? win->bg.pixel : win->fg.pixel; else - col = win->fullscreen ? win->fscol.pixel : win->bgcol.pixel; + col = win->fullscreen ? win->black.pixel : win->bg.pixel; win_draw_rect(win, t->x - oxy, t->y - oxy, t->w + owh, t->h + owh, false, tns->bw, col); -- cgit v1.2.3