mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04: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
6
hsl.c
6
hsl.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue