Further simplified thumbnail marks
This commit is contained in:
parent
d0ba2c585d
commit
fe3a1e326f
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION = git-20140817
|
VERSION = git-20140818
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
2
main.c
2
main.c
@ -364,7 +364,7 @@ void update_info(void)
|
|||||||
/* update bar contents */
|
/* update bar contents */
|
||||||
if (win.bar.h == 0)
|
if (win.bar.h == 0)
|
||||||
return;
|
return;
|
||||||
mark = files[fileidx].marked ? "* " : "";
|
mark = files[fileidx].marked ? "+ " : "";
|
||||||
if (mode == MODE_THUMB) {
|
if (mode == MODE_THUMB) {
|
||||||
if (tns.loadnext >= filecnt) {
|
if (tns.loadnext >= filecnt) {
|
||||||
n = snprintf(rt, rlen, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt);
|
n = snprintf(rt, rlen, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt);
|
||||||
|
8
thumbs.c
8
thumbs.c
@ -430,10 +430,8 @@ void tns_mark(tns_t *tns, int n, bool mark)
|
|||||||
else
|
else
|
||||||
col = win->bgcol;
|
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 - 1, t->y + t->h + 1, 6, 2, 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 + t->w + 1, t->y + t->h - 1, 2, 6, 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);
|
|
||||||
|
|
||||||
if (!mark && n == *tns->sel)
|
if (!mark && n == *tns->sel)
|
||||||
tns_highlight(tns, n, true);
|
tns_highlight(tns, n, true);
|
||||||
@ -457,7 +455,7 @@ void tns_highlight(tns_t *tns, int n, bool hl)
|
|||||||
else
|
else
|
||||||
col = win->bgcol;
|
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)
|
if (!hl && tns->files[n].marked)
|
||||||
tns_mark(tns, n, true);
|
tns_mark(tns, n, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user