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
|
|
@ -774,6 +774,8 @@ test_section_colors_dark(void)
|
|||
&conf.colors_dark.table[i]);
|
||||
}
|
||||
|
||||
test_boolean(&ctx, &parse_section_colors, "blur", &conf.colors_dark.blur);
|
||||
|
||||
test_invalid_key(&ctx, &parse_section_colors_dark, "256");
|
||||
|
||||
/* TODO: alpha (float in range 0-1, converted to uint16_t) */
|
||||
|
|
@ -853,6 +855,8 @@ test_section_colors_light(void)
|
|||
&conf.colors_light.table[i]);
|
||||
}
|
||||
|
||||
test_boolean(&ctx, &parse_section_colors, "blur", &conf.colors_light.blur);
|
||||
|
||||
test_invalid_key(&ctx, &parse_section_colors_light, "256");
|
||||
|
||||
/* TODO: alpha (float in range 0-1, converted to uint16_t) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue