mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
Only brighten palette colors with bold-text-in-bright=palette-based
This commit is contained in:
parent
be24bd2d32
commit
2c5a23867f
3 changed files with 8 additions and 2 deletions
|
|
@ -38,6 +38,10 @@
|
|||
|
||||
|
||||
### Changed
|
||||
|
||||
* `bold-text-in-bright=palette-based` now only brightens colors from palette
|
||||
|
||||
|
||||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
|
@ -59,6 +63,7 @@
|
|||
### Contributors
|
||||
|
||||
* Nihal Jere
|
||||
* [nowrep](https://codeberg.org/nowrep)
|
||||
|
||||
|
||||
## 1.8.2
|
||||
|
|
|
|||
|
|
@ -240,8 +240,8 @@ in this order:
|
|||
|
||||
If set to *palette-based*, rather than a simple *yes|true*, colors
|
||||
matching one of the 8 regular palette colors will be brightened
|
||||
using the corresponding bright palette color. Other colors will be
|
||||
brightened by increasing the luminance.
|
||||
using the corresponding bright palette color. Other colors will
|
||||
not be brightened.
|
||||
|
||||
Default: _no_.
|
||||
|
||||
|
|
|
|||
1
render.c
1
render.c
|
|
@ -264,6 +264,7 @@ color_brighten(const struct terminal *term, uint32_t color)
|
|||
if (term->colors.table[i] == color)
|
||||
return term->colors.table[i + 8];
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
||||
int hue, sat, lum;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue