Add options for custom background colors

This commit is contained in:
Lars Christensen 2025-07-30 12:35:51 +02:00
parent 83303bd2a4
commit 64682f642d
5 changed files with 33 additions and 1 deletions

View file

@ -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: