mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
add custom highlight colors
This commit is contained in:
parent
95090f0264
commit
fa2b08846b
6 changed files with 28 additions and 28 deletions
16
config.c
16
config.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue