mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
render: dim and brighten using linear rgb interpolation
Adds setting tweak.dim-amount, similar to bold-text-in-bright-amount. Closes #2006
This commit is contained in:
parent
5f72f51ae8
commit
663c9082db
7 changed files with 51 additions and 66 deletions
4
config.c
4
config.c
|
|
@ -2759,6 +2759,9 @@ parse_section_tweak(struct context *ctx)
|
|||
else if (streq(key, "sixel"))
|
||||
return value_to_bool(ctx, &conf->tweak.sixel);
|
||||
|
||||
else if (streq(key, "dim-amount"))
|
||||
return value_to_float(ctx, &conf->dim.amount);
|
||||
|
||||
else if (streq(key, "bold-text-in-bright-amount"))
|
||||
return value_to_float(ctx, &conf->bold_in_bright.amount);
|
||||
|
||||
|
|
@ -3288,6 +3291,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
.resize_by_cells = true,
|
||||
.resize_keep_grid = true,
|
||||
.resize_delay_ms = 100,
|
||||
.dim = { .amount = 1.5 },
|
||||
.bold_in_bright = {
|
||||
.enabled = false,
|
||||
.palette_based = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue