mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-19 06:46:24 -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
5
render.c
5
render.c
|
|
@ -725,7 +725,10 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
case COLOR_BASE16:
|
||||
case COLOR_BASE256:
|
||||
xassert(cell->attrs.bg < ALEN(term->colors.table));
|
||||
_bg = term->colors.table[cell->attrs.bg];
|
||||
if (cell->attrs.bg < 8 && term->conf->colors.use_custom.background & (1 << cell->attrs.bg))
|
||||
_bg = term->conf->colors.background[cell->attrs.bg];
|
||||
else
|
||||
_bg = term->colors.table[cell->attrs.bg];
|
||||
break;
|
||||
|
||||
case COLOR_DEFAULT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue