Nicer thumbnail selection border; new default colors
This commit is contained in:
parent
b8ff1677b1
commit
3e4f63e3e2
4
config.h
4
config.h
|
@ -11,9 +11,9 @@ enum { WIN_WIDTH = 800, WIN_HEIGHT = 600 };
|
||||||
|
|
||||||
/* default color for window background: *
|
/* default color for window background: *
|
||||||
* (see X(7) "COLOR NAMES" section for valid values) */
|
* (see X(7) "COLOR NAMES" section for valid values) */
|
||||||
static const char * const BG_COLOR = "#999999";
|
static const char * const BG_COLOR = "#777777";
|
||||||
/* default color for thumbnail selection: */
|
/* default color for thumbnail selection: */
|
||||||
static const char * const SEL_COLOR = "#0066FF";
|
static const char * const SEL_COLOR = "#DDDDDD";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef _IMAGE_CONFIG
|
#ifdef _IMAGE_CONFIG
|
||||||
|
|
5
thumbs.c
5
thumbs.c
|
@ -375,8 +375,11 @@ void tns_highlight(tns_t *tns, win_t *win, int n, Bool hl) {
|
||||||
else
|
else
|
||||||
col = win->bgcol;
|
col = win->bgcol;
|
||||||
|
|
||||||
|
win_draw_rect(win, win->pm, t->x - 3, t->y - 3, t->w + 6, t->h + 6,
|
||||||
|
False, 4, col);
|
||||||
|
if (hl)
|
||||||
win_draw_rect(win, win->pm, t->x - 3, t->y - 3, t->w + 5, t->h + 5,
|
win_draw_rect(win, win->pm, t->x - 3, t->y - 3, t->w + 5, t->h + 5,
|
||||||
False, 3, col);
|
False, 1, win->black);
|
||||||
}
|
}
|
||||||
|
|
||||||
win_draw(win);
|
win_draw(win);
|
||||||
|
|
Loading…
Reference in a new issue