Skip to content

feat(ui): add theme-matched app backgrounds - #153583

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/theme-background-images-for-composer-modes
Sep 20, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/theme-background-images-for-composer-modes

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • UI production build and existing startup asset budgets pass, including the unchanged 50 KiB startup CSS ceiling.
  • UI test typecheck, targeted source lint, and stylesheet lint pass.
  • Browser matrix passes for all 22 built-in light/dark variants on desktop and mobile, with chat/Appearance, live theme changes, retained drafts, System mode, accessibility fallbacks, and imported-image isolation. Text contrast meets AA, with Beacon held to 7:1.
  • Existing muted-theme contrast coverage: 28 browser tests passed.
  • Independent source, binary-structure, pixel-equivalence and visual review found no remaining actionable issues. All 24 WebPs decode to the exact RGBA output of the documented export pipeline. The text-only AutoReview helper rejects binary changes; that limitation is reported, not presented as an AutoReview pass.
  • Final WebP before/after application screenshots, inspected and also delivered as attachments in the originating conversation. Earlier SVG previews are superseded.

No live Gateway changes or deployment.

roboclaw-bot and others added 2 commits September 20, 2026 08:41
Add lightweight vector artwork for light and dark modes with a subtly translucent composer. Requested by Peter Steinberger.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 6:12 AM ET / 10:12 UTC (Revision 3).

ClawSweeper review

What this changes

Adds 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
Reviewed head: ac21941875f56bc1ce3f11015796cafd78008093

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused implementation with convincing visual proof, passing relevant current-head checks, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected final light/dark screenshots show the production shell artwork and composer styling in the real Control UI with a synthetic Gateway; browser checks supplement the visible proof with accessibility, mode-switching, and image-continuity coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected final light/dark screenshots show the production shell artwork and composer styling in the real Control UI with a synthetic Gateway; browser checks supplement the visible proof with accessibility, mode-switching, and image-continuity coverage.
Evidence reviewed 7 items Introduced production behavior: The verified merge-base-to-head diff adds local artwork selectors and one shell background, changes composer translucency, and restores opaque composers for accessibility preferences. It introduces no preference writer, migration, plugin API, or authorization change.
Still necessary on main: Pinned main retains the original shell without the artwork declarations; its stylesheet entrypoint also lacks the background stylesheet import. The new stylesheet is absent from the latest release tree.
Final visual proof inspected: Inspected all four final WebP screenshots linked in #153583 (comment). They show matched light/dark before-and-after views of the actual Control UI with synthetic Gateway data, visible artwork, and retained composer content. The prepared manifest contained only superseded SVG captures; the final images were successfully read directly from their supplied attachment URLs.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +565, Tests +676, Docs +15. Total +1256 across 56 files.

View PR surface stats
Area Files Added Removed Net
Source 52 572 7 +565
Tests 2 676 0 +676
Docs 2 15 0 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 56 1263 7 +1256

Review metrics

Metric Value Why it matters
Production versus test growth Production +565 lines: CSS +109, SVG +456; tests/support +676 Production growth supplies theme selection and editable artwork; browser coverage protects rendering, contrast, and draft retention, with binary exports excluded from LOC.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #153577
Summary: This PR implements the linked open request for theme-matched app artwork.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is visual polish with bounded UI impact and no new configuration or migration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected final light/dark screenshots show the production shell artwork and composer styling in the real Control UI with a synthetic Gateway; browser checks supplement the visible proof with accessibility, mode-switching, and image-continuity coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected final light/dark screenshots show the production shell artwork and composer styling in the real Control UI with a synthetic Gateway; browser checks supplement the visible proof with accessibility, mode-switching, and image-continuity coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected final light/dark screenshots show the production shell artwork and composer styling in the real Control UI with a synthetic Gateway; browser checks supplement the visible proof with accessibility, mode-switching, and image-continuity coverage.

Evidence

What I checked:

  • Introduced production behavior: The verified merge-base-to-head diff adds local artwork selectors and one shell background, changes composer translucency, and restores opaque composers for accessibility preferences. It introduces no preference writer, migration, plugin API, or authorization change. (ui/src/styles/theme-backgrounds.css:1, ac21941875f5)
  • Still necessary on main: Pinned main retains the original shell without the artwork declarations; its stylesheet entrypoint also lacks the background stylesheet import. The new stylesheet is absent from the latest release tree. (ui/src/styles/layout.css:7, fdec2faaef78)
  • Final visual proof inspected: Inspected all four final WebP screenshots linked in feat(ui): add theme-matched app backgrounds #153583 (comment). They show matched light/dark before-and-after views of the actual Control UI with synthetic Gateway data, visible artwork, and retained composer content. The prepared manifest contained only superseded SVG captures; the final images were successfully read directly from their supplied attachment URLs. (ac21941875f5)
  • Previous blocker resolved: All 13 UI E2E shards, all three UI check shards, the real-Gateway UI lane, build-artifacts, and Control UI performance checks report success for the reviewed head. The original image-handoff test retains its exact pixel-equality assertions and has no introduced diff. (ui/src/e2e/chat-flow.image-handoff.e2e.test.ts:155, ac21941875f5)
  • Behavior and isolation coverage: Browser scenarios cover built-in light/dark pairs on desktop and mobile, route changes, retained drafts, System mode, accessibility fallbacks, contrast, and rejection of imported artwork URLs. Existing custom-theme serialization allows only enumerated palette tokens, excluding the new artwork token. (ui/src/e2e/theme-background.e2e.test.ts:94, ac21941875f5)
  • Canonical requested work: The supplied discussion links the open same-author feature request [Feature]: theme-matched light and dark app backgrounds #153577 and records that this design was requested by steipete. This PR is its implementation candidate; neither should close before landing.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-20T08:55:19.500Z sha 106d12d :: needs changes before merge. :: none
  • reviewed 2026-09-20T09:14:35.718Z sha 4f7009d :: blocked before merge. :: none

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Visual proof

Matched 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.

Dark before

Dark after

Light before

Light after

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 20, 2026 09:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

All eleven theme pairs

Labeled contact sheets from the real browser captures. The full desktop/mobile matrix passes, including visible portrait artwork, AA text contrast (AAA for Beacon), System mode changes, draft preservation, and accessibility fallbacks.

Claw, Knot, Dash — dark and light

Absolutely, Tide, Beacon — dark and light

Phosphor, CRT, Manuscript — dark and light

Rose, Miami — dark and light

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 20, 2026
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]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Final lossless WebP application proof

This 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.

Final WebP dark before

Final WebP dark after

Final WebP light before

Final WebP light after

@roboclaw-bot
roboclaw-bot merged commit 2ecfef2 into main Sep 20, 2026
168 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/theme-background-images-for-composer-modes branch September 20, 2026 10:20
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: theme-matched light and dark app backgrounds

1 participant