aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-26 19:40:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-26 19:40:26 +0000
commit8bdd019227225c94fa6e282d941ffbc09fd7a81c (patch)
treedaf77f92f4503065148453cde410e6cd770b2690
parentchangelog: initialize output scaling factor to 1 (diff)
parentOnly brighten palette colors with bold-text-in-bright=palette-based (diff)
Merge branch 'bright_bold'
-rw-r--r--CHANGELOG.md5
-rw-r--r--doc/foot.ini.5.scd4
-rw-r--r--render.c1
3 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 061309a2..a97aa72f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd
index 4a4be533..16f637e6 100644
--- a/doc/foot.ini.5.scd
+++ b/doc/foot.ini.5.scd
@@ -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_.
diff --git a/render.c b/render.c
index f42279c9..84796aa0 100644
--- a/render.c
+++ b/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;