Skip to content

merge: 同步上游 f5f6eebd(v0.6.11 后 24 个提交) - #85

Merged
xiaoyumuxi merged 25 commits into
mainfrom
sync/upstream-f5f6eebd
Dec 1, 2026
Merged

xiaoyumuxi merged 25 commits into
mainfrom
sync/upstream-f5f6eebd

Conversation

@xiaoyumuxi

Copy link
Copy Markdown

同步上游 vivaui/viva main 到 f5f6eeb(24 个提交,含 v0.6.11)

发布 Lithe 桌面端 0.8.23 前的例行同步(见 Lithe 的 2026-11-11-viva-fork-maintenance-and-commit-pin.md“发版前同步上游”)。用 merge commit 合入,不要 squash。

  • 基线:fork main 7378b4e2 + 上游 df223f97..f5f6eebd
  • 合并提交:e50587bc

冲突

我们的补丁

验证(macOS arm64)

  • go build ./... 通过;GOOS=windows GOARCH=amd64 go build ./...、GOOS=windows GOARCH=arm64 go build ./... 通过。
  • go test ./...:以下失败在纯上游 f5f6eebd 上逐项相同,是上游既有问题,不是合并引入:
    • components TestDocCatalogCoversEveryComponent(新 dock 组件未进文档目录)
    • tools/docs 6 个用例(dock 缺文档预览)
    • internal/gallery TestTypingInTheMiddleOfAnOTPFillsSlotsInTurnAndAdvances
    • tools/visualparity TestLayoutIsTheSameOnEveryPlatform(对话框按钮 x 偏 3px)
  • 其余包全部通过。

合入后补推上游 tag v0.6.11。

t8y2 and others added 25 commits November 30, 2026 15:47
The x-special/gnome-copied-files target reused the CRLF-terminated
text/uri-list body. Nautilus, Nemo and Caja split that target on LF alone
and open every line after the action as a file, so each URL kept a
carriage return and the trailing newline produced an empty entry. Pasting
files copied by a Viva application into the file manager failed with
"Error getting information about unknown: Operation not supported".

Build the target with GnomeCopiedFiles: "copy", then one URL per line,
joined by LF with no final line ending. text/uri-list keeps its CRLF form.

Companion to the Motty report t8y2/motty#1876 (files copied from a remote
Windows desktop could not be pasted into Nautilus). No Motty change is
needed.

Refs: t8y2/motty#1876
A disabled control is never the hovered hit, so its Hint never opened and
an icon button greyed out gave the user no way to learn what it was.

The router now reports the disabled control in front of the pointer
(Router.DisabledAt), the painters hand it to the canvas as HoveredDisabled,
and HoverTooltip and ui's tooltip layer use it when it carries a Hint. It
is never hovered, pressed or clicked, and an enabled control or opaque
surface in front of it still wins.

Companion to the Motty commit that adds the end-to-end check for t8y2/motty#1883.
…px icon

With a description the icon and close button now center on the title line
instead of the whole row; a title-only toast is unchanged. The error icon is
a circle-x like the success and info ones, and the icon box is 16px as the
Base UI ToastIcon it follows, instead of 20px. No Motty change is needed: the
toast is painted through the existing PaintToast.
An untagged CAMetalLayer reaches the display unmatched, so flat tints on
a non-sRGB external panel can band or flicker unlike every other app.
Refs: t8y2/motty#1888
Window.Monitors lists the displays in device pixels of the virtual screen,
and Window.SetFullscreenAllMonitors covers the box around all of them, for
a remote desktop that shows several displays as one picture. A fullscreen
window changes between one monitor and all of them without leaving
fullscreen or repeating OnFullscreen. A host that cannot span (Wayland, or
macOS with separate Spaces) returns ErrUnsupported and leaves the window.

Windows sizes the window to the virtual screen; X11 sends
_NET_WM_FULLSCREEN_MONITORS from RandR monitors, GTK uses
GDK_FULLSCREEN_ON_ALL_MONITORS; macOS uses a borderless window over the
union of the screens. The driver and the headless protocol simulate
displays with SetMonitors, "monitors" and "fullscreen all".

Companion: Motty commit using this for RDP multi-monitor sessions
(t8y2/motty#1891). The span needs a real platform call, so it belongs here
and not in the application.
AppKit has no separate end of composition: an input method that clears its
marked text (Backspace over the last letter, or Command+Delete in Sogou
Pinyin) sends setMarkedText with an empty string and nothing else, which
NSTextView treats as no marked text. The tentative path already took an
empty mark as the end, but an ordinary editor answered it with an empty
composition, so the view kept reporting hasMarkedText. The input method
then took the following keys for a composition that was gone: Command+
Delete never reached deleteToBeginningOfLine:, and Backspace needed extra
presses before it deleted.

An empty mark that leaves a composition open now commits it. Found in
Motty's assistant message box (user feedback, no issue); Motty needs no
change, it resolves Viva from ../viva. Platform text input is Viva's.
The keyboard focus halo drops from 3px to 2px. The width was written as a
literal 3 in every control that draws one (button, tabs, toggle, switch,
checkbox, radio, segmented control, button and toggle groups, split
button, input group, item, accordion, calendar, carousel, attachment,
avatar editor, message scroller, questionnaire, disclosure); it now comes
from Metrics.FocusRing, so a theme sets it once and focus looks the same
as it moves between controls. Installer templates are regenerated.

Motty follows by bumping VIVA_REF; the owner chose the thinner ring after
comparing 3px, 2px, a fainter halo, border-only and a solid ring on the
paste review dialog.
Dock lays out panels docked to the left, right and bottom edges of an area
and returns what they leave for the content: panels shrink toward their
minimum, then drop by rank when room is short, and a panel can ask the
content to keep more room than the others. DockDropAt and DockPreview map a
pointer near an edge to the edge it would dock to and the area it would take.

Pure geometry over caller-provided slices, no allocation. Companion to
Motty's panel docking, which needs a reusable desktop primitive rather than
per-panel left/right arithmetic.
The caret stopped blinking after 20 seconds, unlike a platform text field.
It now blinks while focused and rests lit, asking for no frames, when the
window is not active: Canvas gains SetWindowActive/WindowActive, driven by
the activate and deactivate callbacks of every platform. Multi-line fields
(FieldArea, multi-line InputGroup) now carry the blink phase too.

Boundary: reusable framework behaviour; no companion Vico change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A two-character label left a footer button taller than it was wide.
Footer buttons, including ones a page nests in its own row, are now at
least style.DialogButtonMinWidth wide unless the page sets a width.
Motty's dialogs pick this up through the framework; no companion change.
A focused text entry took theme.Primary for its border, so a field the
keyboard was in looked like a primary action rather than like a focused
control. It now takes theme.Ring, matching shadcn's focus-visible:border-ring.
Every control that shares TextEntryRecipe follows: input, textarea, input
group, select, combobox and the active slot of the OTP input.

The ring color itself stays the theme's to set, as it was. Motty pairs this
by giving its palette a neutral focus token and drawing its own focus rings
from it; the focus color is product styling, so it belongs in the
application's palette, not in the framework's recipe.
A triple click made a List or Box.DoubleClicked act twice, since the count
kept growing past 2. Add PointerEvent.DoubleClick and ClickInfo.DoubleClick:
the third press is a new single click, as in Finder and Explorer. Text
selection keeps reading the raw count.

Companion to the Motty commit that fixes t8y2/motty#1921.
A page whose first scroll area is a Tree declared no scrollbar painter,
so Scrollbars drew nothing and a list longer than its room was clipped
with no bar to reach the rest. Install it with the tree painter, as List
does.

Refs: t8y2/motty#1934
A Popover declared its header and body on the layer of the page that
declared it, while the panel painted two layers above it. A Select,
Combobox or Menu in a panel therefore opened under the panel's own
surface: the transfer center's direction list in Motty #1936 was half
hidden by the card it hangs off.

Give the panel its layer when it is declared, as a Dialog does, declare
its header and body on that layer, and paint it there. A control in a
panel now opens one or two layers above it.

Companion to the Motty commit that adds the regression test for
t8y2/motty#1936.
Keep the AppKit view's opacity consistent with its Metal layer and preserve premultiplied alpha in headless screenshots. Cover opaque-ancestor selection, consecutive transparent frames, and native opacity query cost.

Paired with Motty's transparent terminal regression coverage for t8y2/motty#1941. Window compositing and screenshot alpha belong to Viva; terminal protocol behavior remains in the application.
…he frame

A label whose text is not UTF-8, such as a file name in another encoding,
made the Linux text layer return an error and the renderer ended the
application. Replace each invalid byte with U+FFFD, as the darwin backend
already does, and share that helper from internal/platform. Windows
already substitutes while encoding to UTF-16.
@xiaoyumuxi
xiaoyumuxi merged commit 6733d21 into main Dec 1, 2026
5 of 9 checks passed
xiaoyumuxi added a commit to 1lck/Lithe-IDEA that referenced this pull request Dec 1, 2026
…7b) (#2584)

* fix(desktop): 同步 Viva 上游 f5f6eebd,固定 fork 6733d215,Core 换到 main 7534707b

- Viva: fork main 6733d215(Lithe-IDEA/Lithe-viva#85 合入上游 df223f97..f5f6eebd,含 v0.6.11)
- Core: #2582 临时固定的 67c9b258 换成 Core #243 合入后的 main 7534707b

* release: prepare desktop v0.8.23
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.

7 participants