mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Don't override when colored_sprite
This commit is contained in:
parent
9bd97b090d
commit
a15289c038
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ vec4 foreground_contrast(vec4 over, vec3 under) {
|
|||
// If the difference in luminance is too small,
|
||||
// force the foreground color to be black or white.
|
||||
float diffL = abs(underL - overL);
|
||||
float overrideLvl = step(diffL, text_fg_override_threshold);
|
||||
float overrideLvl = (1.f - colored_sprite) * step(diffL, text_fg_override_threshold);
|
||||
float originalLvl = 1.f - overrideLvl;
|
||||
over.rgb = (
|
||||
originalLvl * over.rgb +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue