Bläddra i källkod

Changed image mark in thumbnail view to small rectangle

master
Bert Münnich 10 år sedan
förälder
incheckning
b2dbd2fed3
3 ändrade filer med 5 tillägg och 6 borttagningar
  1. +1
    -1
      Makefile
  2. +1
    -1
      main.c
  3. +3
    -4
      thumbs.c

+ 1
- 1
Makefile Visa fil

@@ -1,4 +1,4 @@
VERSION = git-20140926
VERSION = git-20140927


PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
main.c Visa fil

@@ -366,7 +366,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 < tns.end) { if (tns.loadnext < tns.end) {
snprintf(lt, llen, "Loading... %0*d", fw, tns.loadnext); snprintf(lt, llen, "Loading... %0*d", fw, tns.loadnext);


+ 3
- 4
thumbs.c Visa fil

@@ -453,14 +453,13 @@ void tns_mark(tns_t *tns, int n, bool mark)
unsigned long col = win->fullscreen ? win->fscol : win->bgcol; unsigned long col = win->fullscreen ? win->fscol : win->bgcol;
int x = t->x + t->w, y = t->y + t->h; int x = t->x + t->w, y = t->y + t->h;


win_draw_rect(win, x - 2, y + 1, 1, 2, true, 1, col);
win_draw_rect(win, x + 1, y - 2, 2, 1, true, 1, col);
win_draw_rect(win, x - 1, y + 1, 1, 2, true, 1, col);
win_draw_rect(win, x + 1, y - 1, 2, 1, true, 1, col);


if (mark) if (mark)
col = win->selcol; col = win->selcol;


win_draw_rect(win, x - 1, y + 1, 6, 2, true, 1, col);
win_draw_rect(win, x + 1, y - 1, 2, 6, true, 1, col);
win_draw_rect(win, x, y, 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);


Laddar…
Avbryt
Spara