mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-20 01:40:14 -05:00
config: add tweak.bold-text-in-bright-amount
By how much to increase the luminance when brightening bold fonts. This was previously hard-coded to a factor of 1.3, which is now the default value of the new config option. Closes #1434
This commit is contained in:
parent
e912656682
commit
f3c5b82c82
7 changed files with 35 additions and 13 deletions
4
render.c
4
render.c
|
|
@ -299,7 +299,9 @@ color_brighten(const struct terminal *term, uint32_t color)
|
|||
|
||||
int hue, sat, lum;
|
||||
rgb_to_hsl(color, &hue, &sat, &lum);
|
||||
return hsl_to_rgb(hue, sat, min(100, lum * 1.3));
|
||||
|
||||
lum = (int)roundf(lum * term->conf->bold_in_bright.amount);
|
||||
return hsl_to_rgb(hue, sat, min(lum, 100));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue