Skip to content

fix: canvas status badges and agent logos invisible in light mode - #432

Merged
dimavedenyapin merged 3 commits into
mainfrom
fix/canvas-light-mode-status-visibility
Jul 28, 2026
Merged

fix: canvas status badges and agent logos invisible in light mode#432
dimavedenyapin merged 3 commits into
mainfrom
fix/canvas-light-mode-status-visibility

Conversation

@dimavedenyapin

@dimavedenyapin dimavedenyapin commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Two visibility fixes for light mode:

1. Canvas status/badge text colors (globals.css)

Panel status badges (Not Started, Triaging, Working, etc.) and panel type badges (Transcript, App, Browser, etc.) use Tailwind *-300 color shades. Several were missing from the :root:not(.dark) CSS override block — keeping them at default light/pastel values invisible on light canvas chrome.

Added 10 missing --color-*-300/400 CSS overrides: zinc, slate, orange-300, emerald-300, teal-300, cyan-300, violet-300, pink-300.

2. Agent logos (AgentLogos.tsx)

OpenCode, Anthropic, and OpenAI/Codex logos were rendered as <img> elements pointing to static SVG files with hardcoded fill/stroke colors (white/off-white) — invisible on light backgrounds.

Converted all three logo components from <img> to inline <svg> elements using fill="currentColor" / stroke="currentColor". This makes the logos inherit the parent's text color (via Tailwind classes like text-blue-300/80), adapting correctly to both light and dark modes.

Files changed

  • src/renderer/src/styles/globals.css — 10 new light-mode Tailwind color overrides
  • src/renderer/src/components/icons/AgentLogos.tsx — inline SVG components with currentColor

Test plan

  • CI lint check passes (0 errors)
  • Light mode: status badges, type badges, and agent logos all clearly visible
  • Dark mode: no regressions

Generated with Claude Code

Adds missing Tailwind color overrides for light mode in globals.css:
zinc-300/400, slate-300/400, orange-300, emerald-300, teal-300,
cyan-300, violet-300, pink-300.

These -300 shades were missing from the :root:not(.dark) override
block, keeping them at their default light/pastel Tailwind values.
On the light --canvas-chrome (#f4f4f5) background, text in these
colors was nearly invisible.
Change logo SVG fill/stroke colors from off-white (#F1ECEC) and
white to #A1A1AA (zinc-400) so they are visible on both light
and dark backgrounds. anthropic.svg already uses #d97757 (orange)
which works in both modes.
@dimavedenyapin dimavedenyapin changed the title fix: canvas status/type badge text invisible in light mode fix: canvas status badges and agent logos invisible in light mode Jul 28, 2026
Replace <img> elements with inline <svg> elements using
fill="currentColor" and stroke="currentColor" so the logos
adapt to both light and dark mode via the parent's text color
class. The previous <img> approach used hardcoded SVG colors
(white/off-white) that were invisible in light mode.

Revert SVG file color changes to keep opencode.svg and
openai.svg in their original state (unused after this refactor).
@dimavedenyapin
dimavedenyapin merged commit 2469155 into main Jul 28, 2026
1 check passed
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