mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-20 01:40:14 -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
|
### 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
|
||||||
|
|
|
||||||
|
|
@ -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_.
|
||||||
|
|
||||||
|
|
|
||||||
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)
|
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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue