Repository navigation
merge: sync upstream main (471ea7ab) into fork - #58
Merged
Merged
Conversation
The host draws a handle at each end of a selection with the theme's own drawables, a Magnifier while one is dragged and a floating Cut, Copy, Paste and Select all menu. The program owns the selection: a handle drag edits it, and the menu's items edit through imebridge and the clipboard. Text fields give the adapter their text geometry through platform.Config.TextGeometry.
The editor answers UITextInput geometry from the text geometry of the focused field and carries a UITextInteraction, so a tap places the caret, a held finger selects a word and the handles, magnifier and menu are UIKit's. The editor is no longer hidden by alpha, which kept UIKit from offering it touches.
A key now ends what is composing before it types, and setComposingRegion no longer drags the caret: a region that does not hold the caret is not marked, one that does keeps the selection. With a keyboard that marks each typed letter as the word it may correct, a fast typist lost letters or got them out of order.
app.Config.OnBack runs when an Android phone's back button or gesture, or an iPhone's left-edge swipe, asks to go back. It returns whether the application went back; when it did not, Android closes the window as before and iOS does nothing. The touch example keeps a page stack to show it.
A second finger ends what the first was doing and the two become a pinch: app.Config.OnPinch receives its begin, each change and its end as a gfx.PinchEvent with the midpoint, the scale against the start and the factor since the last event. Fingers that start closer than 24 px are no pinch, and a third is ignored.
Viva main stays a desktop framework. The Android and iOS backends, the Android host and packaging tools, the iOS host, the `viva android` and `viva ios` commands, and the phone-only contract (safe area, lifecycle, back, platform text geometry) continue on the `mobile` branch (f56612f), which may later become its own repository. Desktop gains stay on main: the touch runtime, finger scrolling with overscroll, the 44px touch reach, pinch, touch tooltips, tap-to-place caret and long-press word selection, Windows and Linux touch input, and the shared Vulkan renderer package.
# Conflicts: # cmd/viva/initfiles/AGENTS.md.txt # docs/maintaining-controls.md # docs/skills/building-with-viva/SKILL.md # ui/textview/cells.go # ui/textview/paint.go # ui/textview/rows.go # ui/textview/selection.go # ui/textview/selection_test.go # ui/textview/view.go # ui/textview/view_test.go # website/content/guides/en/components.md # website/content/guides/zh/components.md
Mucheen
added a commit
to Mucheen/Lithe-IDEA
that referenced
this pull request
Nov 23, 2026
Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in 1lck#2355 and cover the other failures found by the complete dev suite. Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix.
18 of 23 tasks
Mucheen
added a commit
to 1lck/Lithe-IDEA
that referenced
this pull request
Nov 23, 2026
* feat(plugins): add incremental marketplace updates * fix(plugins): serialize package changes across processes * test(desktop): cover new bundle checks in the gate fixture * fix(desktop): resolve Viva dev identity check failures Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in #2355 and cover the other failures found by the complete dev suite. Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix. * fix(marketplace): serialize shared plugin archive cache writes Reuse the native file lock for pruning, temporary copy and atomic publish. Limit acquisition to one second because a completed download can install without caching. Add a deterministic two-process regression for both limits and test update delivery when the cache lock is unavailable.
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.
What this changes
Merges
upstream/main(471ea7ab:refactor: move the phone backends to the mobile branch, including upstreamv0.6.7andui/textview7ea39847) intosync/upstream-471ea7ab(based onorigin/main3c6c4608), keeping merge-commit history (git merge-base --is-ancestor upstream/main HEAD).ui/textview/{cells.go,paint.go,rows.go,selection.go,selection_test.go,view.go,view_test.go}: tookupstream/main(ui/textviewfrom upstream PR feat(ui): add textview, read-only text that selects, copies and colors vivaui/viva#337, which wraps un-scrolled/un-wrapped views inui.Column(c)and removesc.Key("menu")fromui.ContextMenuAtonui/textview/view.go:311).git diff upstream/main -- ui/textview/is empty.docs/maintaining-controls.md,docs/skills/building-with-viva/SKILL.md,website/content/guides/{en,zh}/components.md: tookupstream/maintextview guide sections.cmd/viva/initfiles/AGENTS.md.txt: tookupstream/mainupdates (textview,Italic,Strike) while retaining the fork-onlyScrollBar.Bars/PageConfig.BarStyleandTheme.Tooltipentries required bybase/guide_test.go.v0.6.7(22984e8b) tooriginwithout creating any GitHub Releases.Why
Pinned fork commit
3c6c4608carries the older forkui/textview/view.go:311callingui.ContextMenuAt(c.Key("menu"), ...)whilebase.ContextMenuAtreturns early when!*openwithout consumingc.Key("menu"), causing-tags dev(base/attrcheck_dev.go) attribute checks in Lithe-IDEA to panic (Key "menu" was given to a Column) after anyoutputList. Upstreamvivaui/vivaalready fixed this in7ea39847.How it was verified
On
b7ac8d73(macOS arm64):test -z "$(gofmt -l $(git ls-files '*.go'))"(clean)go vet ./...andgo vet -tags dev ./...(passed)GOOS=windows GOARCH=amd64 go build ./...andGOOS=windows GOARCH=arm64 go build ./...(passed)go test ./base ./ui/... -count=1andgo test -tags dev ./base ./ui/... -count=1(all packages includingbaseandui/textviewpassed)GOTOOLCHAIN=go1.26.0 go test ./cmd/viva -count=1(ok github.com/vivaui/viva/cmd/viva 59.612s; barego1.27.3on macOS 26 SDK raises minimum macOS version to 13.0 vscmd/vivafixture[mac] min_system = "12.0")go test ./... -count=1passed all other non-base/non-cmd/vivapackages oncc2531a4before restoringBars/TooltipinAGENTS.md.txtgit merge-base --is-ancestor upstream/main HEADandtest -z "$(git diff upstream/main -- ui/textview/)"(passed)Where the boundary sits
Pure upstream sync into
Lithe-IDEA/Lithe-vivamain; use Create a merge commit (do not squash) so common upstream history is preserved.Cost
None beyond upstream changes.