Retain hue when contrast shifts luminance in other direction #3845
Labels
area/accessibility
area/addon/canvas
area/addon/webgl
area/renderer-dom
good first issue
help wanted
type/bug
Something is misbehaving
Milestone
Currently if contrast can't be met going the natural direction, we switch and go the other direction but this is done by using the background as the foreground:
Code:
xterm.js/src/common/Color.ts
Lines 197 to 201 in 384cd9d
xterm.js/src/common/Color.ts
Lines 206 to 210 in 384cd9d
More ideal would be to retain the hue of the original color, so we would continue to use
fgRgba
here which should make the folder above still have a blue hue and the branch still have a yellow hue.The text was updated successfully, but these errors were encountered: