mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
render: blink switches between foreground and dimmed foreground
This commit is contained in:
parent
353e51b0a1
commit
4283e96865
2 changed files with 8 additions and 3 deletions
|
|
@ -48,6 +48,11 @@
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* Blinking text now uses the foreground color, but dimmed down in its
|
||||||
|
off state, instead of the background color.
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
6
render.c
6
render.c
|
|
@ -399,9 +399,6 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cell->attrs.blink && term->blink.state == BLINK_OFF)
|
|
||||||
_fg = _bg;
|
|
||||||
|
|
||||||
pixman_color_t fg = color_hex_to_pixman(_fg);
|
pixman_color_t fg = color_hex_to_pixman(_fg);
|
||||||
pixman_color_t bg = color_hex_to_pixman_with_alpha(
|
pixman_color_t bg = color_hex_to_pixman_with_alpha(
|
||||||
_bg,
|
_bg,
|
||||||
|
|
@ -411,6 +408,9 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
||||||
if (cell->attrs.dim)
|
if (cell->attrs.dim)
|
||||||
color_dim(&fg);
|
color_dim(&fg);
|
||||||
|
|
||||||
|
if (cell->attrs.blink && term->blink.state == BLINK_OFF)
|
||||||
|
color_dim(&fg);
|
||||||
|
|
||||||
if (term->is_searching && !is_selected) {
|
if (term->is_searching && !is_selected) {
|
||||||
color_dim_for_search(&fg);
|
color_dim_for_search(&fg);
|
||||||
color_dim_for_search(&bg);
|
color_dim_for_search(&bg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue