mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-26 06:46:45 -04:00
Enable the use of flash as visual bell
With this patch we can configure flash in the bell section. The colors section allow now to configure the color of the flash and the alpha to apply to. Default values are the values which where currently used for flash, altough I personally like a nice red (eb1313) better.
This commit is contained in:
parent
56d5d4cc21
commit
36ed07788e
7 changed files with 57 additions and 2 deletions
4
render.c
4
render.c
|
|
@ -1582,7 +1582,7 @@ render_overlay(struct terminal *term)
|
|||
break;
|
||||
|
||||
case OVERLAY_FLASH:
|
||||
color = (pixman_color_t){.red=0x7fff, .green=0x7fff, .blue=0, .alpha=0x7fff};
|
||||
color = color_hex_to_pixman_with_alpha(term->colors.flash, term->colors.flash_alpha);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -2186,7 +2186,7 @@ render_csd_button_maximize_maximized(
|
|||
{ x_margin + shrink, y_margin + thick, thick, width - 2 * thick - shrink },
|
||||
{ x_margin + width - thick - shrink, y_margin + thick, thick, width - 2 * thick - shrink },
|
||||
{ x_margin + shrink, y_margin + width - thick - shrink, width - 2 * shrink, thick }});
|
||||
|
||||
|
||||
pixman_image_unref(src);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue