Skip to content

Fix tag chips unreadable in Light theme#45

Merged
StuartMeeks merged 1 commit into
mainfrom
fix/tag-chip-contrast
Jun 1, 2026
Merged

Fix tag chips unreadable in Light theme#45
StuartMeeks merged 1 commit into
mainfrom
fix/tag-chip-contrast

Conversation

@StuartMeeks
Copy link
Copy Markdown
Owner

Problem

Tag chips on snip cards showed dark text on the blue accent fill in Light theme, making them hard to read. Dark theme looked fine.

Cause

The chip Border sets Background="{ThemeResource AccentFillColorSecondaryBrush}" but the TextBlock had no explicit Foreground, so it fell back to the theme's default text colour — dark in Light theme (dark-on-accent), light in Dark theme (which is why dark looked OK).

Fix

Set Foreground="{ThemeResource TextOnAccentFillColorPrimaryBrush}" on the chip text — the same on-accent brush accent buttons use — so it stays light and readable on the accent fill in both themes.

Applied to both accent chips:

  • Tag chips on snip cards (SnipCard.xaml).
  • The parameter-type badge (Text/Choice) in the Shared parameters list (ShellPage.xaml), which had the identical issue.

Testing

  • WinUI head compile-verified on the Windows build agent: 0 warnings, 0 errors.
  • Visual check (Light/Dark) is for the reviewer — caption/chip rendering can't be verified headless.

🤖 Generated with Claude Code

Tag chips on snip cards (and the parameter-type badge in Shared
parameters) set an accent background but no foreground, so the text
fell back to the theme default — dark in Light theme, leaving dark text
on the accent fill. Set the on-accent text brush so it stays light and
readable in both themes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit a78ab9e into main Jun 1, 2026
6 checks passed
@StuartMeeks StuartMeeks deleted the fix/tag-chip-contrast branch June 1, 2026 09:05
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