diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-05 20:24:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 15:58:30 +0000 |
| commit | e7109d6b7739503c1d69749bda63460fb65580f0 (patch) | |
| tree | 41e5cfd1c0f6316e1fb3f1cad6dcdfef9855893b /config.c | |
| parent | box-drawing: use an a8 buffer when primary font is antialiased (diff) | |
config: add tweak.box-drawing-solid-shades=yes|no
When enabled, shades are rendered as solid blocks, using a darker
variant of the current foreground color.
When disabled, shades are instead rendered in a checker box pattern,
using the foreground color unmodified.
Default is enabled.
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1929,6 +1929,14 @@ parse_section_tweak( conf->tweak.box_drawing_base_thickness); } + else if (strcmp(key, "box-drawing-solid-shades") == 0) { + conf->tweak.box_drawing_solid_shades = str_to_bool(value); + + if (!conf->tweak.box_drawing_solid_shades) + LOG_WARN("tweak: box-drawing-solid-shades=%s", + conf->tweak.box_drawing_solid_shades ? "yes" : "no"); + } + else { LOG_AND_NOTIFY_ERR("%s:%u: [tweak]: %s: invalid key", path, lineno, key); return false; @@ -2396,6 +2404,7 @@ config_load(struct config *conf, const char *conf_path, .render_timer_log = false, .damage_whole_window = false, .box_drawing_base_thickness = 0.04, + .box_drawing_solid_shades = true, }, .notifications = tll_init(), |
