Skip to content

fix(app): distinguish quote toolbar from dark transcript surfaces - #61781

Merged
usrnk1 merged 1 commit into
devfrom
quote-contrast
Nov 4, 2026
Merged

usrnk1 merged 1 commit into
devfrom
quote-contrast

Conversation

@usrnk1

@usrnk1 usrnk1 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Give the selection Quote toolbar a distinct bg-layer-02 surface in dark mode so it stands out from transcript content.
  • Keep the existing raised shadow, light-mode appearance, and quote behavior unchanged.

Fixes #61329

Checks

  • App bun typecheck: passed.
  • bun test --conditions=solid --preload ../ui/test/solid-jsx.ts --preload ./happydom.ts ./src/session/composer/selection.test.ts: 2 passed.
  • Built quote e2e (timeline-stream.spec.ts -g 'quotes plain timeline text'): 1 passed on base, 1 passed on the fixed build.
  • Capture harness: passed on base and fixed builds; quoted code still reaches the composer. Computed toolbar background changes from rgb(36, 36, 36) to rgb(46, 46, 46); computed shadow is identical.
  • bun run check: passed with 1,066 existing lint warnings and an unused-suppression notice outside this diff.
  • bun run lint:changed origin/dev: passed (no changed TypeScript files).
  • bunx @hona/strobe bench packages/app/perf/timeline.bench.ts --base origin/dev --head .: timed out after 120 seconds during the first case; no performance verdict. The worktree changed while it was preparing builds, so that attempt is not performance evidence.
  • Initial checks were blocked by missing dependencies; bun install --frozen-lockfile resolved those. An intermediate capture/e2e attempt hit stale SPA HTML held by the first static test server after rebuilding; using a separate fixed-build test server resolved it. No app or background service was restarted.

Before / after

Real app captures at 1100 × 780, OpenCode (oc-1) theme in dark mode, identical fixture and code selection. Before is the unmodified origin/dev build at 4c8b83ff84; after is this branch. Screenshots are attached, not committed.

Before: Quote toolbar before

After: Quote toolbar after

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72">
  <style>@keyframes lift{0%,100%{opacity:.09}45%,70%{opacity:.2}}.surface{animation:lift 3s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.surface{animation:none}}</style>
  <rect x="12" y="10" width="216" height="52" rx="8" fill="currentColor" opacity=".04"/>
  <path d="M26 27h72m-72 10h110m-110 10h92" stroke="currentColor" opacity=".25"/>
  <rect class="surface" x="132" y="22" width="76" height="28" rx="7" fill="currentColor" opacity=".2"/>
  <rect x="132" y="22" width="76" height="28" rx="7" fill="none" stroke="currentColor" stroke-opacity=".25" stroke-width=".5"/>
  <text x="170" y="40" text-anchor="middle" font-family="sans-serif" font-size="12" fill="currentColor">❞ Quote</text>
</svg>

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good: a one-line, dark-mode-only change that moves the quote toolbar from bg-layer-01 (the same surface as code blocks and tool output) to bg-layer-02. That directly addresses the toolbar blending in. I checked that bg-layer-02 is defined in every dark token block and that the ghost button's hover and pressed overlays still read on the new surface. Light mode and the shadow are unchanged. I couldn't run the web app here, so I relied on the before/after captures in the description.

Public API: unchanged (CSS only).

No concerns.

@usrnk1
usrnk1 enabled auto-merge (squash) November 4, 2026 20:33
@usrnk1
usrnk1 merged commit ca545df into dev Nov 4, 2026
21 checks passed
@usrnk1
usrnk1 deleted the quote-contrast branch November 4, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop: selection quote toolbar blends into dark theme background

1 participant