Krolyxon
Commit b2dbd2f

Branches

Refs →

nsxivb2dbd2f

Changed image mark in thumbnail view to small rectangle

Author
Bert Münnich
Date
2014-09-27 22:05 +0200
Parent
5fce009
Commit
b2dbd2fed3c9cee72ac3e84036b6b08b169a376e

+5 −6

3 files changed

  1. M Makefile +1 −1
  2. M main.c +1 −1
  3. M thumbs.c +3 −4
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140926
1+VERSION = git-20140927
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M main.c View
@@ -366,7 +366,7 @@ void update_info(void)
366366 /* update bar contents */
367367 if (win.bar.h == 0)
368368 return;
369− mark = files[fileidx].marked ? "+ " : "";
369+ mark = files[fileidx].marked ? "* " : "";
370370 if (mode == MODE_THUMB) {
371371 if (tns.loadnext < tns.end) {
372372 snprintf(lt, llen, "Loading... %0*d", fw, tns.loadnext);
M thumbs.c View
@@ -453,14 +453,13 @@ void tns_mark(tns_t *tns, int n, bool mark)
453453 unsigned long col = win->fullscreen ? win->fscol : win->bgcol;
454454 int x = t->x + t->w, y = t->y + t->h;
455455
456− win_draw_rect(win, x - 2, y + 1, 1, 2, true, 1, col);
457− win_draw_rect(win, x + 1, y - 2, 2, 1, true, 1, col);
456+ win_draw_rect(win, x - 1, y + 1, 1, 2, true, 1, col);
457+ win_draw_rect(win, x + 1, y - 1, 2, 1, true, 1, col);
458458
459459 if (mark)
460460 col = win->selcol;
461461
462− win_draw_rect(win, x - 1, y + 1, 6, 2, true, 1, col);
463− win_draw_rect(win, x + 1, y - 1, 2, 6, true, 1, col);
462+ win_draw_rect(win, x, y, 4, 4, true, 1, col);
464463
465464 if (!mark && n == *tns->sel)
466465 tns_highlight(tns, n, true);