Repository navigation
feat(ui): add theme-matched app backgrounds - #153583
Conversation
Add lightweight vector artwork for light and dark modes with a subtly translucent composer. Requested by Peter Steinberger. Co-authored-by: steipete <[email protected]>
Co-authored-by: steipete <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 6:12 AM ET / 10:12 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds theme-matched app backgrounds, translucent composers with accessibility fallbacks, clearer placeholders, browser coverage, and appearance documentation. Merge readiness✅ Ready for maintainer review This remains useful work absent from current main. No actionable correctness defect was found, and passing current-head browser checks resolve the previous image-continuity blocker. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI resolves the user's theme and light/dark preference into page styles. This change uses those existing selections to decorate the shared app canvas and adjust composer surfaces. flowchart LR
A[Theme preference] --> C[Resolved theme and mode]
B[System color preference] --> C
C --> D[Bundled background artwork]
D --> E[Shared app canvas]
E --> F[Chat and new-session composers]
G[Accessibility preferences] --> E
G --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +565, Tests +676, Docs +15. Total +1256 across 56 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep artwork owned by the shared canvas, driven by existing theme preferences, with opaque accessibility fallbacks and unchanged image-continuity guarantees. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a visual feature; inspected before-and-after screenshots demonstrate the changed appearance. Is this the best way to solve the issue? Yes. Reusing existing theme resolution and one shared CSS canvas keeps the implementation focused without duplicating preference ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fdec2faaef78. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Visual proofMatched Claw desktop screenshots, ordered dark before → dark after → light before → light after. The before view restores the exact pre-feature canvas/composer CSS against the same rendered content and viewport; after uses production CSS unchanged. Captured from the real Control UI with a synthetic Gateway fixture and neutral demo model. The artwork belongs to one app-wide background; the composer does not repeat it. No live Gateway or private conversation data is shown. |
Co-authored-by: steipete <[email protected]>
Keep editable SVG artwork sources, but pre-render straight-alpha WebP for stable compositing behind transparent chat media. Existing image-handoff pixel assertions remain unchanged. Independently reviewed source, binary structure, lossless pixel equivalence, and visual output; text-only AutoReview reported unsupported binary assets rather than a pass. Co-authored-by: steipete <[email protected]>
Final lossless WebP application proofThis supersedes the earlier runtime-SVG previews. Matched dark before → dark after → light before → light after, captured from the actual Control UI with a synthetic Gateway and neutral demo model. The before capture restores the pre-feature canvas/composer CSS in the same rendered page; after uses the final WebP assets and production CSS unchanged. All eleven built-in light/dark pairs passed desktop/mobile rendering and contrast checks; the corrected neutral custom pair passed its focused browser test. Original image-preview continuity tests pass with their exact pixel assertions unchanged. |
|
Merged via squash.
|
* feat(ui): add theme-matched app backgrounds Add lightweight vector artwork for light and dark modes with a subtly translucent composer. Requested by Peter Steinberger. Co-authored-by: steipete <[email protected]> * fix(ui): keep themed composer placeholders readable Co-authored-by: steipete <[email protected]> * fix(ui): retain theme artwork in portrait layouts Co-authored-by: steipete <[email protected]> * feat(ui): serve compact lossless WebP theme backgrounds Keep editable SVG artwork sources, but pre-render straight-alpha WebP for stable compositing behind transparent chat media. Existing image-handoff pixel assertions remain unchanged. Independently reviewed source, binary structure, lossless pixel equivalence, and visual output; text-only AutoReview reported unsupported binary assets rather than a pass. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>












Closes #153577
Requested by @steipete.
Work sessions
What Problem This Solves
The Control UI’s flat canvas does not carry each theme’s visual character beyond its colors and type.
User Impact
Every built-in theme gains matching light/dark background artwork across the app, with a lightly translucent composer rather than a second wallpaper. Custom palettes use neutral artwork. High-contrast and reduced-transparency preferences retain opaque composers; no configuration or migration is needed.
Why This Change Was Made
One shared app canvas keeps decoration quiet and consistent across routes. The 24 lossless WebP exports average 14.4 KB each (1.5–34.4 KB); only the active image loads. Editable SVG sources remain in the repository but are not included in the runtime bundle. Navigation and reading surfaces retain their own backgrounds.
Pre-rendered WebP also avoids vector-backdrop repaint differences behind transparent chat images. The original image-handoff tests pass without changing their exact pixel assertions or the image renderer.
Browser checks also found the existing light composer placeholder below AA contrast even when opaque (3.07:1). It now uses the theme’s readable muted-text token instead of a fixed diluted text mix.
Evidence
No live Gateway changes or deployment.