mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-20 06:46:26 -04:00
Add options for custom background colors
This commit is contained in:
parent
83303bd2a4
commit
64682f642d
5 changed files with 33 additions and 1 deletions
9
config.c
9
config.c
|
|
@ -1388,6 +1388,15 @@ parse_color_theme(struct context *ctx, struct color_theme *theme)
|
|||
return true;
|
||||
}
|
||||
|
||||
else if (key_len == 11 && str_has_prefix(key, "background") && last_digit < 8)
|
||||
{
|
||||
if (!value_to_color(ctx, &theme->background[last_digit], false))
|
||||
return false;
|
||||
|
||||
theme->use_custom.background |= 1 << last_digit;
|
||||
return true;
|
||||
}
|
||||
|
||||
else if (str_has_prefix(key, "sixel") &&
|
||||
((key_len == 6 && last_digit < 10) ||
|
||||
(key_len == 7 && key[5] == '1' && last_digit < 6)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue