mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-17 06:46:21 -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
ca46edfe6f
commit
2bef8cf9ce
3 changed files with 18 additions and 0 deletions
|
|
@ -1172,6 +1172,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
|||
.colors = {
|
||||
.fg = conf->colors.fg,
|
||||
.bg = conf->colors.bg,
|
||||
.flash = conf->colors.flash,
|
||||
.flash_alpha = conf->colors.flash_alpha,
|
||||
.alpha = conf->colors.alpha,
|
||||
.selection_fg = conf->colors.selection_fg,
|
||||
.selection_bg = conf->colors.selection_bg,
|
||||
|
|
@ -1924,7 +1926,9 @@ term_reset(struct terminal *term, bool hard)
|
|||
fdm_del(term->fdm, term->blink.fd); term->blink.fd = -1;
|
||||
term->colors.fg = term->conf->colors.fg;
|
||||
term->colors.bg = term->conf->colors.bg;
|
||||
term->colors.flash = term->conf->colors.flash;
|
||||
term->colors.alpha = term->conf->colors.alpha;
|
||||
term->colors.flash_alpha = term->conf->colors.flash_alpha;
|
||||
term->colors.selection_fg = term->conf->colors.selection_fg;
|
||||
term->colors.selection_bg = term->conf->colors.selection_bg;
|
||||
term->colors.use_custom_selection = term->conf->colors.use_custom.selection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue