Skip to content

fix(chat): match the reply strip to the composer's surface - #1431

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-reply-strip-surface
Sep 8, 2026
Merged

fix(chat): match the reply strip to the composer's surface#1431
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-reply-strip-surface

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

The composer's reply strip built its own glass: a 16dp blur tinted toward lerp(background, White, 0.18f) at 0.72 alpha, a white 8% hairline, and a local 14dp corner radius. The chat input and the send-cash button directly beneath it use HazeMaterials.ultraThin(containerColor = background), CodeTheme.colors.divider, and CodeTheme.shapes.medium. The strip sat on top of both, so the mismatch read as a second, lighter surface rather than part of the bar.

Measured on emulator-5554, same chat and same pending reply:

strip fill field fill background
before (50, 50, 51) (28, 28, 29) (25, 25, 26)
after (27, 27, 28) (28, 28, 29) (25, 25, 26)

The strip now takes the composer's material, hairline, and shape. The no-haze fallback moves from a near-opaque copy of the old tint to Color.White.copy(alpha = 0.1f), the flat stand-in CancelEditButton already uses.

CodeTheme.shapes is Material 2's Shapes, which was not on chat-ui's compile classpath, so the module gains implementation(libs.compose.material).

The strip built its own glass — a 16dp blur tinted toward a grey lifted
off the background at 0.72 alpha — while the field and the send-cash
button directly beneath it use HazeMaterials.ultraThin over the
background. On the emulator the strip's fill sampled (50, 50, 51) against
the field's (28, 28, 29), so it read as a second, lighter surface rather
than as part of the composer.

Use the composer's material, its divider hairline in place of the white
8% one, and CodeTheme.shapes.medium in place of the local 14dp radius.
The fill now samples (27, 27, 28). CodeTheme.shapes is Material 2's
Shapes, so chat-ui needs the M2 artifact on its compile classpath.
@bmc08gt bmc08gt self-assigned this Sep 8, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 8, 2026
@bmc08gt
bmc08gt merged commit bc95e86 into code/cash Sep 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant