mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-06 01:40:22 -05:00
highlight colors
This commit is contained in:
parent
2609206c98
commit
68685fdf13
4 changed files with 49 additions and 22 deletions
14
config.c
14
config.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue