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:
Daniel Eklöf 2023-07-26 16:12:36 +02:00
parent e912656682
commit f3c5b82c82
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 35 additions and 13 deletions

6
hsl.c
View file

@ -83,7 +83,7 @@ hsl_to_rgb(int hue, int sat, int lum)
b += m;
return (
(int)round(r * 255.) << 16 |
(int)round(g * 255.) << 8 |
(int)round(b * 255.) << 0);
(uint8_t)round(r * 255.) << 16 |
(uint8_t)round(g * 255.) << 8 |
(uint8_t)round(b * 255.) << 0);
}