Add option to change terminal alpha through key-bindings

This commit is contained in:
Utkarsh Verma 2022-06-02 08:12:31 +05:30
parent 377997be9d
commit 4e2347da12
No known key found for this signature in database
GPG key ID: 817656CF818EFCCC
7 changed files with 177 additions and 123 deletions

View file

@ -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)
{