[Improve] Keep rendered content legible across IDE themes - #1344
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Fixed the reported visibility issues through |
…rg#1344) * fix(webview): preserve contrast in themed content * test(webview): add rendered theme baselines * test(webview): add screen theme baselines * fix(webview): keep syntax colors above WCAG threshold * fix(webview): keep code backgrounds deterministic * test(webview): audit syntax tokens directly * test(webview): refresh rendered content baselines * fix(webview): refresh code colors after theme changes * test(webview): prevent visual snapshots from clipping * test(webview): refresh unclipped visual baselines * fix(webview): keep code and buttons visible in contrast themes * test(webview): refresh visible contrast baselines * test(webview): refresh focused control baselines * fix(webview): keep controls and unchanged diffs visible * test(webview): refresh readable diff baselines * test(webview): frame control snapshots with panel padding * test(webview): add padded control baselines * test(webview): cover layout drift modes * test(webview): add layout drift baselines * test(webview): defer layout drift matrix --------- Co-authored-by: Roomote <roomote@roomote.dev>
What changed
Why this change was made
The shared-control contrast audit left high-frequency rendered content and composed screens uncovered. Several of those surfaces still used invalid CSS fallbacks or styling that assumed a dark theme, existing code blocks did not refresh syntax colors after a live theme switch, and some high-contrast controls or unchanged diff rows blended into their backgrounds.
Impact
Code output begins with its first lines visible, buttons retain complete geometry and clear boundaries, and unchanged diff rows use readable neutral backgrounds. Status controls, secondary text, and first-run/history surfaces remain identifiable in light, dark, high-contrast, and high-contrast-light IDE themes. Broader Electron production-parity snapshots, stable Playwright component migration, and reusable layout-drift process work are tracked separately in #1358 so this PR remains focused on the concrete contrast and visibility regressions.
Related PRs