Only brighten palette colors with bold-text-in-bright=palette-based

This commit is contained in:
David Rosca 2021-07-22 18:22:39 +02:00
parent be24bd2d32
commit 2c5a23867f
No known key found for this signature in database
GPG key ID: EBC3FC294452C6D8
3 changed files with 8 additions and 2 deletions

View file

@ -38,6 +38,10 @@
### Changed ### Changed
* `bold-text-in-bright=palette-based` now only brightens colors from palette
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
@ -59,6 +63,7 @@
### Contributors ### Contributors
* Nihal Jere * Nihal Jere
* [nowrep](https://codeberg.org/nowrep)
## 1.8.2 ## 1.8.2

View file

@ -240,8 +240,8 @@ in this order:
If set to *palette-based*, rather than a simple *yes|true*, colors If set to *palette-based*, rather than a simple *yes|true*, colors
matching one of the 8 regular palette colors will be brightened matching one of the 8 regular palette colors will be brightened
using the corresponding bright palette color. Other colors will be using the corresponding bright palette color. Other colors will
brightened by increasing the luminance. not be brightened.
Default: _no_. Default: _no_.

View file

@ -264,6 +264,7 @@ color_brighten(const struct terminal *term, uint32_t color)
if (term->colors.table[i] == color) if (term->colors.table[i] == color)
return term->colors.table[i + 8]; return term->colors.table[i + 8];
} }
return color;
} }
int hue, sat, lum; int hue, sat, lum;