mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
Add option to change terminal alpha through key-bindings
This commit is contained in:
parent
377997be9d
commit
4e2347da12
7 changed files with 177 additions and 123 deletions
21
terminal.c
21
terminal.c
|
|
@ -2005,6 +2005,27 @@ term_font_size_reset(struct terminal *term)
|
|||
return load_fonts_from_conf(term);
|
||||
}
|
||||
|
||||
bool
|
||||
term_alpha_increase(struct terminal *term)
|
||||
{
|
||||
term->colors.alpha += 0.05;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
term_alpha_decrease(struct terminal *term)
|
||||
{
|
||||
term->colors.alpha -= 0.05;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
term_alpha_reset(struct terminal *term)
|
||||
{
|
||||
term->colors.alpha = term->conf->colors.alpha;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
term_font_dpi_changed(struct terminal *term, int old_scale)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue