config: add colors.dim-blend-towards=black|white

Before this patch, we always blended towards black when dimming
text. However, with light color themes, it usually looks better if we
dim towards white instead.

This option allows you to choose which color to blend towards.

The default is 'black' in '[colors]', and 'white' in '[colors2]'.

Closes #2187
This commit is contained in:
Daniel Eklöf 2025-10-10 11:10:38 +02:00
parent 371837ef7b
commit 7ed36c1033
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 51 additions and 4 deletions

View file

@ -71,8 +71,12 @@
* Performance increased and input latency decreased on compositors
that do not release SHM buffers immediately ([#2188][2188]).
* `colors{,2}.dim-blend-towards=black|white` option, allowing you to
select towards which color to blend when dimming text. Defaults to
`black` in `[colors]`, and `white` in `[colors2]` ([#2187][2187]).
[2188]: https://codeberg.org/dnkl/foot/issues/2188
[2187]: https://codeberg.org/dnkl/foot/issues/2187
### Changed