Skip to content

Add streaming text accent overlays#77

Merged
pat-oai merged 3 commits into
mainfrom
ph/streaming-text-accent-overlay
Jun 1, 2026
Merged

Add streaming text accent overlays#77
pat-oai merged 3 commits into
mainfrom
ph/streaming-text-accent-overlay

Conversation

@pat-oai

@pat-oai pat-oai commented Jun 1, 2026

Copy link
Copy Markdown

Adds optional streaming text accent overlays for rich text rendering.

The overlay draws newly revealed non-link text from an uncolored cached layout, applies the accent color at draw time, fades each admitted range over 600ms, and decays new overlay admission across the first 2s of the stream. Applying the color at draw time avoids baking a full-alpha accent color into the cached text layout, so the overlay can visibly fade back to the normal text color.

@pat-oai pat-oai changed the title Add streaming text accent overlays [richtext] Add streaming text accent overlays Jun 1, 2026
@pat-oai pat-oai marked this pull request as draft June 1, 2026 18:53
@pat-oai pat-oai changed the title [richtext] Add streaming text accent overlays Add streaming text accent overlays Jun 1, 2026
@pat-oai pat-oai marked this pull request as ready for review June 1, 2026 19:34
Comment thread richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui/string/Text.kt Outdated
Comment thread richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui/string/Text.kt Outdated
@pat-oai pat-oai merged commit c67ac4a into main Jun 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants