Skip to content

fix(tui): preserve contrast for transparent themes#36239

Open
vaibhavshn wants to merge 1 commit into
anomalyco:devfrom
vaibhavshn:theme-contrast
Open

fix(tui): preserve contrast for transparent themes#36239
vaibhavshn wants to merge 1 commit into
anomalyco:devfrom
vaibhavshn:theme-contrast

Conversation

@vaibhavshn

@vaibhavshn vaibhavshn commented Jul 10, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #30056

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Badge text becomes invisible if your background is transparent. This fixes that by checking the background color and setting the text color accordingly in two places: file badge when a file is tagged, and another in the diff viewer.

How did you verify your code works?

Ran this with same theme and terminal, and you can see the screenshots below for before and after.

In my case, I ran it with system theme in Ghostty. You will see this with any theme in Ghostty.

Screenshots / recordings

Badge

Before:
Screenshot 2026-07-10 at 17 35 23@2x

After:

Screenshot 2026-07-10 at 17 34 10@2x

Diff Viewer

Before:
Screenshot 2026-07-10 at 17 32 48@2x

After:
Screenshot 2026-07-10 at 17 33 55@2x

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jul 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Badge text invisible when theme background is transparent or none

1 participant