mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -05:00
config, render: scrollback indicator: allow configuring scrollback indicator colors
This commit is contained in:
parent
7704bea876
commit
650cfa18ef
3 changed files with 27 additions and 1 deletions
13
config.c
13
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,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue