add custom highlight colors

This commit is contained in:
Piotr Kocia 2025-06-17 01:47:42 +02:00
parent 95090f0264
commit fa2b08846b
6 changed files with 28 additions and 28 deletions

View file

@ -1434,6 +1434,8 @@ parse_color_theme(struct context *ctx, struct color_theme *theme)
else if (streq(key, "background")) color = &theme->bg;
else if (streq(key, "selection-foreground")) color = &theme->selection_fg;
else if (streq(key, "selection-background")) color = &theme->selection_bg;
else if (streq(key, "highlight-foreground")) color = &theme->highlight_fg;
else if (streq(key, "highlight-background")) color = &theme->highlight_bg;
else if (streq(key, "jump-labels")) {
if (!value_to_two_colors(
@ -1505,20 +1507,6 @@ 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;