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:
Sam McCall 2025-03-22 20:11:23 +01:00 committed by Daniel Eklöf
parent 5f72f51ae8
commit 663c9082db
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 51 additions and 66 deletions

View file

@ -64,6 +64,12 @@
### Changed
* UTF-8 error recovery now discards fewer bytes.
* Auto-calculated dimmed and brightened colors (e.g. when custom dim
colors has not configured) is now done by linear RGB interpolation,
rather than converting to HSL and adjusting the luminance
([#2006][2006]).
[2006]: https://codeberg.org/dnkl/foot/issues/2006
### Deprecated