config: bold-text-in-bright: add ‘palette-based’ as a special value

When ‘bold-text-in-bright’ is set ‘to palette-based’, colors matching
one of the 8 regular palette colors are brightened by using the
corresponding bright palette color.

Other colors, or all colors if ‘bold-text-in-bright’ is set to
‘yes|true’, are brightened by increasing the luminance.
This commit is contained in:
Daniel Eklöf 2021-04-17 21:57:08 +02:00
parent 11e8ff9dc5
commit 1df48fcb33
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 38 additions and 12 deletions

View file

@ -79,7 +79,11 @@ struct config {
bool center;
uint16_t resize_delay_ms;
bool bold_in_bright;
struct {
bool enabled;
bool palette_based;
} bold_in_bright;
enum {
BELL_ACTION_NONE,
BELL_ACTION_URGENT,