config: add colors.search-box-{no-,}match

Closes #1112
This commit is contained in:
Daniel Eklöf 2022-07-27 19:14:27 +02:00
parent 4873004c37
commit d79a3b9350
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 85 additions and 7 deletions

View file

@ -1171,6 +1171,34 @@ parse_section_colors(struct context *ctx)
return true;
}
else if (strcmp(key, "search-box-no-match") == 0) {
if (!value_to_two_colors(
ctx,
&conf->colors.search_box.no_match.fg,
&conf->colors.search_box.no_match.bg,
false))
{
return false;
}
conf->colors.use_custom.search_box_no_match = true;
return true;
}
else if (strcmp(key, "search-box-match") == 0) {
if (!value_to_two_colors(
ctx,
&conf->colors.search_box.match.fg,
&conf->colors.search_box.match.bg,
false))
{
return false;
}
conf->colors.use_custom.search_box_match = true;
return true;
}
else if (strcmp(key, "urls") == 0) {
if (!value_to_color(ctx, &conf->colors.url, false))
return false;