From a4794cb4196effcca4b3c7e1253a46f641c46107 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 23 Aug 2011 09:23:16 +0200 Subject: Add --draw-tinted option to draw overlay text on a semi-transparent background (closes #60, #61) By default, feh draws white text with a black drop-shadow, which is well readable in most, but not all cases. The --draw-tinted option draws a semi-transparent black box around all texts. This improves readability, but does not look as nice, so it won't become default behaviour. It was suggested to use #7f7f7f7f for the background, but I decided that for small images surrounded by a black border. --- src/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 4c832a0..13aaa95 100644 --- a/src/options.c +++ b/src/options.c @@ -362,6 +362,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) {"no-rotate-ctrl-mask", 0, 0, 226}, {"no-blur-ctrl-mask", 0, 0, 227}, {"menu-ctrl-mask", 0, 0, 228}, + {"draw-tinted" , 0, 0, 229}, {"output" , 1, 0, 'o'}, {"output-only" , 1, 0, 'O'}, @@ -757,6 +758,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) case 228: opt.menu_ctrl_mask = 1; break; + case 229: + opt.text_bg = TEXT_BG_TINTED; + break; case 230: opt.index_show_name = atoi(optarg); break; -- cgit v1.2.3