Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Styled chat output needs one selection across headings, paragraphs, links, code, and quotes. This adds a read-only
richTextBoxwidget insilky/richtextboxes.nim, with styled spans and blocks, streaming updates, link hover underlines, and pointer cursors. RegulartextBoxinputs retain their single-font layout and editing API. The rich widget composes the shared plain-text selection state while keeping its formatting and layout caches in its own module.Editable textboxes forward native bulk edits and accessibility state through Windy, and support Enter to submit with Shift+Enter for a newline. Programmatic focus captures typing immediately when a popup opens, before its first draw. Fonts can be rasterized at the actual display density while retaining logical metrics. Glyph placement and deferred layout preserve the pixel grid, and atlas sampling happens before fragment clipping to avoid edge artifacts. The existing themed button also accepts a minimum size for full-width sidebar rows.
Validation: native, semantic, and Metal
nim check; regression tests covering plain and rich textboxes, ordered input, programmatic focus, buttons, atlas metadata, density, decorations, rules, nested quotes, layout/clipping, and shader generation. Rich-text layout also passes with Metal. Validation used fresh clones at the exact dependency lockfile commits. The new regression tests are included in the existing eight-platform CI matrix; Windows-only CPU smoke was skipped locally.Uses the text-input API from the merged treeform/windy#207.
nimby.lockpins its tested commit (8e1e2499a050bcbb1546f239b8c3a8b1b16748c0) so CI uses the required API. This PR contains only the Runway-related library changes, with no application or chat data.