Update xterm for contrast ratio luminance change#149499
Conversation
|
@daviddossett this is by design as the terminal has the feature that lets you configure your contrast ratio, this comes wwith the bonus of retaining the hue (unless it gets inverted). While doing this I was thinking maybe we should do something like if the user is using a high contrast theme and has not configured |
|
I think either makes sense, with perhaps a slight lean towards just setting the foreground color explitictly for consistency. I don't know if high contrast users will want or even need such fine control over contrast given the treatment of most text/code in those themes. Another way of thinking about this would be like we do for preferred themes under dark/light/hc-dark/hc-light os settings. Something like: ...which adds complexity but at least removes the need for magic number changes after a theme change. |
|
@daviddossett yeah I agree, let's track that in #149505 and xtermjs/xterm.js#3810 |
|
I presume this PR is why the foreground text color changed in some situations? My terminal uses |
Update xterm for contrast ratio luminance change
|
@jhpratt while you may find it harder to read it should have a higher contrast ratio using standard relative luminance comparisons (correct me if I'm wrong). If this bothers you I suggest either reducing |
|
Ah, it's configurable? Cool. I'll give that a shot when I'm on my laptop. And by the way, I have no doubt that the contrast ratio is better. It's just an observation on my end that it doesn't appear better. |
|
@jhpratt thanks for the feedback, my main point was I think that generally people would have an easier time since we're using contrast ratio. |


Fixes #149495