Skip to content

fix: calculate staged color dynamically adjust based on background #1244

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

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

Conversation

theJian
Copy link

@theJian theJian commented Mar 28, 2025

This PR fixes an issue where staged colors appeared too dark and hard to distinguish on light backgrounds. The previous algorithm did not properly account for different background themes, leading to poor contrast.
With this fix, staged colors now dynamically adapt based on whether the background is light or dark, ensuring better visibility and contrast in both themes.

Before

Screenshot 2025-03-28 at 3 09 49 PM Screenshot 2025-03-28 at 3 16 42 PM

In the screenshot above, staged colors in the light color scheme are getting too dark to be able to tell apart.

After

Screenshot 2025-03-28 at 3 06 06 PM Screenshot 2025-03-28 at 3 24 00 PM

After this fix is applied, staged colors now get lighter on a light color scheme, and vice versa.

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