nsxiv3e4f63e
Nicer thumbnail selection border; new default colors
+6 −3
2 files changed
| @@ -11,9 +11,9 @@ enum { WIN_WIDTH = 800, WIN_HEIGHT = 600 }; | |||
| 11 | 11 | ||
| 12 | 12 | /* default color for window background: * | |
| 13 | 13 | * (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"; | |
| 15 | 15 | /* default color for thumbnail selection: */ | |
| 16 | − | static const char * const SEL_COLOR = "#0066FF"; | |
| 16 | + | static const char * const SEL_COLOR = "#DDDDDD"; | |
| 17 | 17 | ||
| 18 | 18 | #endif | |
| 19 | 19 | #ifdef _IMAGE_CONFIG | |
| @@ -375,8 +375,11 @@ void tns_highlight(tns_t *tns, win_t *win, int n, Bool hl) { | |||
| 375 | 375 | else | |
| 376 | 376 | col = win->bgcol; | |
| 377 | 377 | ||
| 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) | |
| 378 | 381 | 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); | |
| 380 | 383 | } | |
| 381 | 384 | ||
| 382 | 385 | win_draw(win); | |