summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-08-18 12:45:32 +0200
committerBert Münnich <ber.t@posteo.de>2014-08-18 12:45:32 +0200
commitfe3a1e326fed155239f125c1322c0b9c4e7b56d0 (patch)
tree0d3bcdcc0fe7ea4bf3f7600534c2ad579aa6a12e /thumbs.c
parentd0ba2c585d966959c02c6d8ddc2365222d310ae6 (diff)
downloadnsxiv-fe3a1e326fed155239f125c1322c0b9c4e7b56d0.tar.zst
Further simplified thumbnail marks
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/thumbs.c b/thumbs.c
index 0257073..908c3a2 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -430,10 +430,8 @@ void tns_mark(tns_t *tns, int n, bool mark)
else
col = win->bgcol;
- win_draw_rect(win, t->x - 4, t->y - 4, 4, 4, true, 1, col);
- win_draw_rect(win, t->x + t->w, t->y - 4, 4, 4, true, 1, col);
- win_draw_rect(win, t->x - 4, t->y + t->h, 4, 4, true, 1, col);
- win_draw_rect(win, t->x + t->w, t->y + t->h, 4, 4, true, 1, col);
+ win_draw_rect(win, t->x + t->w - 1, t->y + t->h + 1, 6, 2, true, 1, col);
+ win_draw_rect(win, t->x + t->w + 1, t->y + t->h - 1, 2, 6, true, 1, col);
if (!mark && n == *tns->sel)
tns_highlight(tns, n, true);
@@ -457,7 +455,7 @@ void tns_highlight(tns_t *tns, int n, bool hl)
else
col = win->bgcol;
- win_draw_rect(win, t->x - 3, t->y - 3, t->w + 6, t->h + 6, false, 2, col);
+ win_draw_rect(win, t->x - 2, t->y - 2, t->w + 4, t->h + 4, false, 2, col);
if (!hl && tns->files[n].marked)
tns_mark(tns, n, true);