Krolyxon
Commit 3e4f63e

Branches

Refs →

nsxiv3e4f63e

Nicer thumbnail selection border; new default colors

Author
Bert
Date
2011-07-26 23:58 +0200
Parent
b8ff167
Commit
3e4f63e3e2cd046ef6672c7ca3a5ed8b3f4bd0e5

+6 −3

2 files changed

  1. M config.h +2 −2
  2. M thumbs.c +4 −1
M config.h View
@@ -11,9 +11,9 @@ enum { WIN_WIDTH = 800, WIN_HEIGHT = 600 };
1111
1212 /* default color for window background: *
1313 * (see X(7) "COLOR NAMES" section for valid values) */
14−static const char * const BG_COLOR = "#999999";
14+static const char * const BG_COLOR = "#777777";
1515 /* default color for thumbnail selection: */
16−static const char * const SEL_COLOR = "#0066FF";
16+static const char * const SEL_COLOR = "#DDDDDD";
1717
1818 #endif
1919 #ifdef _IMAGE_CONFIG
M thumbs.c View
@@ -375,8 +375,11 @@ void tns_highlight(tns_t *tns, win_t *win, int n, Bool hl) {
375375 else
376376 col = win->bgcol;
377377
378+ win_draw_rect(win, win->pm, t->x - 3, t->y - 3, t->w + 6, t->h + 6,
379+ False, 4, col);
380+ if (hl)
378381 win_draw_rect(win, win->pm, t->x - 3, t->y - 3, t->w + 5, t->h + 5,
379− False, 3, col);
382+ False, 1, win->black);
380383 }
381384
382385 win_draw(win);