aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-14 09:49:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-14 09:49:39 +0000
commit5acdc899524fc7b95675c71791b48306ddf7d42c (patch)
treefaca3d8e50c8c0c937a78f3822b754b9d92c7524 /config.c
parentMerge branch 'remove-geometry-option' (diff)
parentchangelog: box drawing line thickness depend on the font size (diff)
Merge branch 'box-drawing-line-thickness'
Closes #281
Diffstat (limited to 'config.c')
-rw-r--r--config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.c b/config.c
index 9306a6e7..fb424218 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.04,
},
.notifications = tll_init(),