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
4
config.c
4
config.c
|
|
@ -1593,6 +1593,9 @@ parse_color_theme(struct context *ctx, struct color_theme *theme)
|
|||
(int *)&theme->dim_blend_towards);
|
||||
}
|
||||
|
||||
else if (streq(key, "blur"))
|
||||
return value_to_bool(ctx, &theme->blur);
|
||||
|
||||
else {
|
||||
LOG_CONTEXTUAL_ERR("not valid option");
|
||||
return false;
|
||||
|
|
@ -3546,6 +3549,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
.scrollback_indicator = false,
|
||||
.url = false,
|
||||
},
|
||||
.blur = false,
|
||||
},
|
||||
.initial_color_theme = COLOR_THEME_DARK,
|
||||
.cursor = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue