Krolyxon
Commit fe3a1e3

Branches

Refs →

nsxivfe3a1e3

Further simplified thumbnail marks

Author
Bert Münnich
Date
2014-08-18 12:45 +0200
Parent
d0ba2c5
Commit
fe3a1e326fed155239f125c1322c0b9c4e7b56d0

+5 −7

3 files changed

  1. M Makefile +1 −1
  2. M main.c +1 −1
  3. M thumbs.c +3 −5
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140817
1+VERSION = git-20140818
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M main.c View
@@ -364,7 +364,7 @@ void update_info(void)
364364 /* update bar contents */
365365 if (win.bar.h == 0)
366366 return;
367− mark = files[fileidx].marked ? "* " : "";
367+ mark = files[fileidx].marked ? "+ " : "";
368368 if (mode == MODE_THUMB) {
369369 if (tns.loadnext >= filecnt) {
370370 n = snprintf(rt, rlen, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt);
M thumbs.c View
@@ -430,10 +430,8 @@ void tns_mark(tns_t *tns, int n, bool mark)
430430 else
431431 col = win->bgcol;
432432
433− win_draw_rect(win, t->x - 4, t->y - 4, 4, 4, true, 1, col);
434− win_draw_rect(win, t->x + t->w, t->y - 4, 4, 4, true, 1, col);
435− win_draw_rect(win, t->x - 4, t->y + t->h, 4, 4, true, 1, col);
436− win_draw_rect(win, t->x + t->w, t->y + t->h, 4, 4, true, 1, col);
433+ win_draw_rect(win, t->x + t->w - 1, t->y + t->h + 1, 6, 2, true, 1, col);
434+ win_draw_rect(win, t->x + t->w + 1, t->y + t->h - 1, 2, 6, true, 1, col);
437435
438436 if (!mark && n == *tns->sel)
439437 tns_highlight(tns, n, true);
@@ -457,7 +455,7 @@ void tns_highlight(tns_t *tns, int n, bool hl)
457455 else
458456 col = win->bgcol;
459457
460− win_draw_rect(win, t->x - 3, t->y - 3, t->w + 6, t->h + 6, false, 2, col);
458+ win_draw_rect(win, t->x - 2, t->y - 2, t->w + 4, t->h + 4, false, 2, col);
461459
462460 if (!hl && tns->files[n].marked)
463461 tns_mark(tns, n, true);