From 650cfa18efdc38164600959e90fdaa50f58910e4 Mon Sep 17 00:00:00 2001 From: "feeptr@codeberg.org" Date: Mon, 27 Sep 2021 19:05:40 +0000 Subject: config, render: scrollback indicator: allow configuring scrollback indicator colors --- config.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 3448cab6..a213075b 100644 --- a/config.c +++ b/config.c @@ -1324,6 +1324,18 @@ parse_section_colors(const char *key, const char *value, struct config *conf, return true; } + else if (strcmp(key, "scrollback-indicator") == 0) { + if (!str_to_two_colors( + value, &conf->colors.scrollback_indicator.fg, &conf->colors.scrollback_indicator.bg, + false, conf, path, lineno, "colors", "scrollback-indicator")) + { + return false; + } + + conf->colors.use_custom.scrollback_indicator = true; + return true; + } + else if (strcmp(key, "urls") == 0) { if (!str_to_color(value, &conf->colors.url, false, conf, path, lineno, "colors", "urls")) @@ -2926,6 +2938,7 @@ config_load(struct config *conf, const char *conf_path, .use_custom = { .selection = false, .jump_label = false, + .scrollback_indicator = false, .url = false, }, }, -- cgit v1.3