mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -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
aa26676c43
commit
e63150305e
13 changed files with 154 additions and 43 deletions
4
render.c
4
render.c
|
|
@ -312,9 +312,7 @@ color_dim(const struct terminal *term, uint32_t color)
|
|||
}
|
||||
}
|
||||
|
||||
const struct color_theme *theme = term->colors.active_theme == COLOR_THEME_DARK
|
||||
? &conf->colors_dark
|
||||
: &conf->colors_light;
|
||||
const struct color_theme *theme = term_theme_get(term);
|
||||
|
||||
return color_blend_towards(
|
||||
color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue