From 2c5a23867fd7bcfe4cf757cb690fcd6dc191ec6e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 22 Jul 2021 18:22:39 +0200 Subject: [PATCH] Only brighten palette colors with bold-text-in-bright=palette-based --- CHANGELOG.md | 5 +++++ doc/foot.ini.5.scd | 4 ++-- render.c | 1 + 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;