Skip to content

merge: sync upstream main (91da94ad, v0.6.9) into fork - #63

Merged
xiaoyumuxi merged 13 commits into
mainfrom
sync/upstream-91da94ad
Nov 26, 2026
Merged

xiaoyumuxi merged 13 commits into
mainfrom
sync/upstream-91da94ad

Conversation

@xiaoyumuxi

Copy link
Copy Markdown

改了什么

把上游 upstream/main(91da94ad:feat(components): draw clickable ellipsis badge on folded lines,共 12 个上游提交,含 v0.6.9)merge 进 sync/upstream-91da94ad(基于 fork main 448b0553),保留 merge 历史(git merge-base --is-ancestor upstream/main HEAD 通过)。

这次 merge 没有冲突。带进来的上游提交:

提交 内容
4ac15c8b gfx:读取保留表面的单个像素
7b0ad16e、a8125f2a v0.6.9 发布说明,文档指向 v0.6.9
1e4d4112 gfx:按设备像素绘制调用方给的位图
ae09ce0e headless:脚本可以把复制的文件放进剪贴板
a3ad0481 Windows:剪贴板事务固定在同一个系统线程
b5876fcb 颜色选择器的非法 HEX 提示可本地化(vivaui#458,ColorPickerLabels.InvalidColor)
f7ca3fc0 可移植控件测试在 Wasm 下继续运行
e1487a1a 增量无障碍绘制时重新同步 ID 为 0 的容器
23caf6cb Linux:把初始目录转交给 portal
99f24a3c Linux:列出双宽和未标记的等宽字体
91da94ad 折叠行画可点击的省略徽标

为什么

Lithe-IDEA 固定这个 fork。上游有 12 个提交 fork 还没有;1lck/Lithe-IDEA#2420 需要 ColorPickerLabels.InvalidColor,它已经通过 vivaui#458(b5876fcb)进了上游。

怎么验证的

在 95b56119 上(macOS arm64):

  • 改动文件 gofmt -l 为空
  • go vet ./...;go vet -tags dev ./... 只报被忽略的本地残留文件 build/pr349_wheel_bench_test.go(build/ 在 .gitignore 里,不属于仓库)
  • GOOS=windows GOARCH=amd64 go build ./...、GOOS=windows GOARCH=arm64 go build ./...、GOOS=linux GOARCH=amd64 go build ./...
  • go test ./...:除下面几项外全部通过。
    • cmd/viva:dmg/签名用例和本机 macOS 27 SDK 的部署目标不符(built for macOS 13.0 but [mac] min_system says 12.0),以前就有。
    • ui/inputnumber、internal/componentdemo、internal/gallery:go1.27.4 下 input-number 热绘制分配 1 次。在原样的 upstream/main 上用 go1.27.4 同样失败;用 GOTOOLCHAIN=go1.26.0(go.mod 版本,上游 CI 用的)三个包都通过。
    • build:同上,被忽略的本地残留文件。
  • go test -tags dev ./base ./ui/... ./gfx ./components:只有 ui/breadcrumb TestDisabledPlaceTakesNoPress(Key 1 was given to a Text)和上面的 input-number 分配失败,在原样的 upstream/main 上一模一样。
  • git merge-base --is-ancestor upstream/main HEAD

边界

纯上游同步,合进 Lithe-IDEA/Lithe-viva 的 main;请用 Create a merge commit 合入(不要 squash),保留和上游的共同历史。

合入后 fork 仍未进上游的补丁:#61(上游 vivaui#454,评审中)和更早的 fork 独有补丁。fork #60 的改动和上游 b5876fcb 逐行相同,这次同步后会以“已被上游取代”关闭。

成本

除上游改动外没有额外成本。

t8y2 and others added 13 commits November 26, 2026 10:34
A retained picture's tiles were write-only: an application that has to know
what one point of the picture shows, such as a client drawing a remote
pointer whose pixels are the inverse of what is under it, would have to keep
a second copy of the whole picture. The read is O(1) and allocates nothing.

Motty's workbench uses it for the remote pointer it draws itself.
A canvas rounds an image's bounds to logical pixels, which resamples a picture
whose pixels are the screen's at a fractional display scale: a 32-pixel cursor
at 125% became 26 logical pixels instead of 25.6, and its pixels were filtered
into 32.5 device ones. Surface.DrawPixels already paints its tiles this way for
the retained pictures; a caller that owns the pixels, and has to draw them over
a picture at their own size, had no way to ask for the same.

Motty's workbench uses it for the remote pointer it paints itself.
clipfiles PATH... replaces the private clipboard's files the way a file
manager's copy does, names as text included; clipfiles reads them back
and clear empties them. It is what an end-to-end script needs to drive a
paste with files on the clipboard, which the application layer owns: the
assistant in Motty asks ClipboardFiles before it inserts pasted text
(Motty t8y2/motty#1624).
@xiaoyumuxi
xiaoyumuxi merged commit 7696355 into main Nov 26, 2026
23 checks passed
xiaoyumuxi added a commit to 1lck/Lithe-IDEA that referenced this pull request Nov 26, 2026
* fix(desktop): 同步 Viva 上游 91da94ad(v0.6.9),固定 fork 7696355e

fork Lithe-IDEA/Lithe-viva#63 用 merge commit 把上游 vivaui/viva main
91da94ad(12 个提交,含 v0.6.9 和 vivaui/viva#458 的
ColorPickerLabels.InvalidColor)合进 fork main 7696355e。replace 升到
v0.6.10-0.20261126074811-7696355e44b5,require 升到上游
v0.6.10-0.20261126065824-91da94ad9452。

Refs #1821

* docs(matrix): 记录 Viva 同步带来的 Windows 剪贴板线程修复

上游 a3ad0481 把 Windows 剪贴板事务固定在同一个系统线程,终端复制粘贴
和剪贴板图片粘贴都经过它;Lithe 代码不变,验证状态保持 pending。
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.

8 participants