Skip to content

fix(ui): preserve theme colors in filled actions - #183338

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-16-action-foreground-20261025
Oct 25, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-16-action-foreground-20261025

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Make filled action glyphs inherit the foreground paired with their theme background. New Session and Send share the appropriate roles; Stop retains danger styling. MCP confirmation and Compact use the existing primary pair.

Native-theme visual comparison

Before: main at 397abd9b15725ce983ea1f36dc1e9bb8244acd18. After: this PR at a7845feab5a4db1817413e72fed8226cfb21bbb0. All 11 built-in themes were captured in dark and light modes with the same synthetic Gateway data and native theme settings. One unmodified source server was used per source tree; no CSS, palette colors, or custom accents were injected. Crops are enlarged 2× with original colors retained.

Changed appearance for review

The images below contain only states with changed pixels: 65 control pairs across 22 theme/mode combinations.

Claw

Claw dark: changed native control states

Claw light: changed native control states

Knot

Knot dark: changed native control states

Knot light: changed native control states

Dash

Dash dark: changed native control states

Dash light: changed native control states

Absolutely

Absolutely dark: changed native control states

Absolutely light: changed native control states

Tide

Tide dark: changed native control states

Tide light: changed native control states

Beacon

Beacon dark: changed native control states

Beacon light: changed native control states

Phosphor

Phosphor dark: changed native control states

Phosphor light: changed native control states

CRT

CRT dark: changed native control states

CRT light: changed native control states

Manuscript

Manuscript dark: changed native control states

Manuscript light: changed native control states

Rose

Rose dark: changed native control states

Rose light: changed native control states

Miami

Miami dark: changed native control states

Miami light: changed native control states

Preserved appearance and palette context

Unchanged native states — 89 Before/After pairs

These states have identical pixels at the two source heads and are shown as context.

Claw

Claw dark: unchanged native states, context only

Claw light: unchanged native states, context only

Knot

Knot dark: unchanged native states, context only

Knot light: unchanged native states, context only

Dash

Dash dark: unchanged native states, context only

Dash light: unchanged native states, context only

Absolutely

Absolutely dark: unchanged native states, context only

Absolutely light: unchanged native states, context only

Tide

Tide dark: unchanged native states, context only

Tide light: unchanged native states, context only

Beacon

Beacon dark: unchanged native states, context only

Beacon light: unchanged native states, context only

Phosphor

Phosphor dark: unchanged native states, context only

Phosphor light: unchanged native states, context only

CRT

CRT dark: unchanged native states, context only

CRT light: unchanged native states, context only

Manuscript

Manuscript dark: unchanged native states, context only

Manuscript light: unchanged native states, context only

Rose

Rose dark: unchanged native states, context only

Rose light: unchanged native states, context only

Miami

Miami dark: unchanged native states, context only

Miami light: unchanged native states, context only

Current New Session and Send palettes — context

Each row uses two crops from the same After desktop frame. These images document native palette differences between controls.

All 11 dark themes: current New Session and Send palette context

All 11 light themes: current New Session and Send palette context

Validation

Ten focused foreground tests passed after main integration. The native screenshot flow passed all 22 theme/mode cases on each source tree, including simulated Send and Stop requests, without page errors. The fixtures use no live model or operator data. CI on this head reports a timeout while opening an annotation preview at 390px. The focused desktop/mobile annotation cases both passed on replay; no fix is claimed for that timeout. The annotation component, tooltip owners, and test are unchanged from the CI base. All other CI checks passed. Failing CI case.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 25, 2026 06:26
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves selected accent colors in the sidebar and makes composer action icons inherit their button foregrounds.

Example: Open Chat with the CRT dark theme.

  • Before: The sidebar New Session button renders its selected 232-level fill at 214.
  • After: The fill remains at the selected 232 level, with the existing dark foreground.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful CSS repair with inspected visual proof; required CI remains red on failures also observed independently.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the real Control UI with a simulated Gateway and synthetic content, showing the CRT rail fill repair and preserved mobile Stop appearance; browser assertions support theme, state, and foreground-override coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Filled action icons can diverge from their button colors, and the sidebar alters the user's selected accent fill.
Reason: A small shared-style repair preserves theme pairs and Stop styling; the maintainer-author supplies the direction for changing the earlier subdued rail treatment.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a focused visual repair with inspected before/after evidence and no actionable introduced defects found.

Priority: P3
Reviewed head: 7b91c66b18530c4ee87ef3686139b753f6d3589d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The body reports the before-fix reproduction, but does not show the committed browser suite failing on the base.
Agent review details

How this fits together

Control UI theme tokens feed shared sidebar and composer styles, which determine button backgrounds and SVG foregrounds in Chat and New Session.

flowchart LR
  A[Appearance selection] --> B[Theme tokens]
  B --> C[Sidebar rail styles]
  B --> D[Shared composer styles]
  C --> E[New Session button]
  D --> F[Chat action icons]
  D --> G[New Session composer]
Loading

Technical review

Best possible solution:

Keep foreground ownership on the existing buttons, preserve theme color pairs, and retain focused browser coverage of the CSS cascade.

Do we have a high-confidence way to reproduce the issue?

Current-main CSS independently transforms the selected rail accent and assigns mobile SVG colors separately from button colors; supplied browser captures corroborate the rail mismatch.

Is this the best way to solve the issue?

The patch repairs the existing styling owners with less production CSS, and the maintainer-author's explanation resolves the deliberate change from subdued rail colors.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0dd725e074b2.

Provenance checked

  • Sidebar rail accent backgrounds changes intended behavior with a stated reason (d9a9cae: The earlier rail unification intentionally subdued the primary action to create quieter navigation chrome.)
  • Mobile composer SVG foreground rules keeps the original intent (2d42a1d: The earlier repair lowered muted-default specificity so Talk and Send retained contrast across lazy stylesheet ordering.)
  • Shared composer extraction and mobile action styling keeps the original intent (debc712: The extraction preserved existing composer presentation; the mobile design used distinct primary and soft-danger action colors.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit d9a9cae adds ui/src/styles/base.css:46 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d9a9caeee4b3; files: ui/src/styles/base.css)

PR surface

Source -9, Tests +236. Total +227 across 5 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 10 19 -9
Tests 1 236 0 +236
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 246 19 +227

Review metrics

Metric Value Why it matters
Production versus test LOC Production +10/-19; tests +236/-0 Production removes competing color declarations; browser coverage exercises palette loading, inherited SVG colors, interaction states, and both composer consumers.

Labels

Label changes:

  • add P3: This is a limited visual consistency and contrast improvement without a blocked messaging or setup workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a limited visual consistency and contrast improvement without a blocked messaging or setup workflow.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 25, 2026, 2:43 AM ET / 06:43 UTC.

@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): preserve theme colors in filled action icons fix(ui): preserve theme colors in filled actions Oct 25, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 866f693 into main Oct 25, 2026
83 of 86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/visual-16-action-foreground-20261025 branch October 25, 2026 22:28
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
Use each theme's intended foreground for filled session and composer actions.
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 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: M 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.

1 participant