From cbe896f694471a5c7e79d76837e05f7a8d319184 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 8 Jan 2021 10:27:35 +0100 Subject: config: add temporary(?) tweak option for box drawing line thickness --- config.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 9306a6e7..07101122 100644 --- a/config.c +++ b/config.c @@ -1708,6 +1708,20 @@ parse_section_tweak( (long long)conf->tweak.max_shm_pool_size); } + else if (strcmp(key, "box-drawing-base-thickness") == 0) { + double base_thickness; + if (!str_to_double(value, &base_thickness)) { + LOG_AND_NOTIFY_ERR( + "%s:%d: [tweak]: box-drawing-base-thickness: " + "expected a decimal value, got '%s'", path, lineno, value); + return false; + } + + conf->tweak.box_drawing_base_thickness = base_thickness; + LOG_WARN("tweak: box-drawing-base-thickness=%f", + conf->tweak.box_drawing_base_thickness); + } + else { LOG_AND_NOTIFY_ERR("%s:%u: [tweak]: %s: invalid key", path, lineno, key); return false; @@ -2122,6 +2136,7 @@ config_load(struct config *conf, const char *conf_path, .render_timer_osd = false, .render_timer_log = false, .damage_whole_window = false, + .box_drawing_base_thickness = 0.02, }, .notifications = tll_init(), -- cgit v1.3 From f178de4c25c563c7978a6399d58d1da38739b9ec Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 11 Jan 2021 13:06:48 +0100 Subject: config: change default box drawing line thickness from 0.02 -> 0.04 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 07101122..fb424218 100644 --- a/config.c +++ b/config.c @@ -2136,7 +2136,7 @@ config_load(struct config *conf, const char *conf_path, .render_timer_osd = false, .render_timer_log = false, .damage_whole_window = false, - .box_drawing_base_thickness = 0.02, + .box_drawing_base_thickness = 0.04, }, .notifications = tll_init(), -- cgit v1.3