aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-07-26 23:58:31 +0200
committerBert <ber.t@gmx.com>2011-07-26 23:58:31 +0200
commit3e4f63e3e2cd046ef6672c7ca3a5ed8b3f4bd0e5 (patch)
tree779e0c083a71b51639db7ba5b0f03c7e7815422b
parentb8ff1677b1cbb4d3e769861d1e14234c6a38a80a (diff)
Nicer thumbnail selection border; new default colors
-rw-r--r--config.h4
-rw-r--r--thumbs.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/config.h b/config.h
index aac4244..8b10a8f 100644
--- a/config.h
+++ b/config.h
@@ -11,9 +11,9 @@ enum { WIN_WIDTH = 800, WIN_HEIGHT = 600 };
/* default color for window background: *
* (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: */
-static const char * const SEL_COLOR = "#0066FF";
+static const char * const SEL_COLOR = "#DDDDDD";
#endif
#ifdef _IMAGE_CONFIG
diff --git a/thumbs.c b/thumbs.c
index 5700b87..8d75935 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -375,8 +375,11 @@ void tns_highlight(tns_t *tns, win_t *win, int n, Bool hl) {
else
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,
- False, 3, col);
+ False, 1, win->black);
}
win_draw(win);