Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enforce minimum contrast ratio for reverse video cursor #6584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jameshurst
Copy link

This PR ensures the reverse video cursor meets a minimum contrast ratio, otherwise the default fg/bg is used instead.

The minimum contrast ratio of 2.5 was chosen from the kitty implementation linked in #2861.

The SrgbaTuple::contrast_ratio implementation also appeared to be incorrect since it was comparing lightness instead of luminance.

This should resolve #2861.

Before

After

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant