highlight colors

This commit is contained in:
Piotr Kocia 2025-03-31 23:27:23 +02:00
parent 2609206c98
commit 68685fdf13
4 changed files with 49 additions and 22 deletions

View file

@ -1493,6 +1493,20 @@ parse_color_theme(struct context *ctx, struct color_theme *theme)
return true;
}
else if (streq(key, "highlights")) {
if (!value_to_two_colors(
ctx,
&theme->highlights.fg,
&theme->highlights.bg,
false))
{
return false;
}
theme->use_custom.highlights = true;
return true;
}
else if (streq(key, "urls")) {
if (!value_to_color(ctx, &theme->url, false))
return false;