Merge branch 'bright_bold'

This commit is contained in:
Daniel Eklöf 2021-07-26 21:40:26 +02:00
commit 8bdd019227
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
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;