mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
Add support for background blur
This patch adds a new config option: colors{,2}.blur=no|yes. When
enabled, transparent background are also blurred.
Note that this requires the brand new ext-background-effect-v1
protocol, and specifically, that the compositor implements the blur
effect.
This commit is contained in:
parent
dc0c8550c3
commit
dea10e2e48
13 changed files with 154 additions and 43 deletions
|
|
@ -4819,3 +4819,11 @@ term_theme_toggle(struct terminal *term)
|
|||
term_damage_margins(term);
|
||||
render_refresh(term);
|
||||
}
|
||||
|
||||
const struct color_theme *
|
||||
term_theme_get(const struct terminal *term)
|
||||
{
|
||||
return term->colors.active_theme == COLOR_THEME_DARK
|
||||
? &term->conf->colors_dark
|
||||
: &term->conf->colors_light;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue