mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
fix: if text is selected, brighten the background color instead of the foreground
This commit is contained in:
parent
5587604469
commit
03fd2560e8
1 changed files with 7 additions and 2 deletions
9
render.c
9
render.c
|
|
@ -839,8 +839,13 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
|
||||
if (cell->attrs.dim)
|
||||
_fg = color_dim(term, _fg);
|
||||
if (term->conf->bold_in_bright.enabled && cell->attrs.bold)
|
||||
_fg = color_brighten(term, _fg);
|
||||
if (term->conf->bold_in_bright.enabled && cell->attrs.bold) {
|
||||
if (cell->attrs.reverse ^ is_selected) {
|
||||
_bg = color_brighten(term, _bg);
|
||||
} else {
|
||||
_fg = color_brighten(term, _fg);
|
||||
}
|
||||
}
|
||||
|
||||
if (cell->attrs.blink && term->blink.state == BLINK_OFF)
|
||||
_fg = color_blend_towards(_fg, 0x00000000, term->conf->dim.amount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue