Skip to content

merge: sync upstream main (33de151) into the fork - #51

Merged
xiaoyumuxi merged 4 commits into
mainfrom
sync/upstream-33de151
Nov 20, 2026
Merged

xiaoyumuxi merged 4 commits into
mainfrom
sync/upstream-33de151

Conversation

@xiaoyumuxi

Copy link
Copy Markdown

Sync upstream main (33de151) into the fork before the next Lithe desktop release.

Upstream commits brought in (d354e3c..33de151 on the upstream side):

  • 54981a3 feat(ui): compose themed buttons and joined icon actions
  • 80b8f0c perf(windows): keep terminal grid text formats and layouts
  • 33de151 perf(windows): draw a colored terminal row in one GDI call per pass

The merge had no conflicts. Fork-only patches are unchanged; #50 is merged on top of this separately.

Merge this PR with a merge commit (gh pr merge <n> -R Lithe-IDEA/Lithe-viva --merge), not squash, so upstream stays an ancestor of fork main.

Verification on macOS (Apple Silicon):

  • go vet ./...: passed.
  • go test ./...: everything passes except cmd/viva.
    • 14 packaging tests fail with built for macOS 13.0 … min_system says 12.0. This is the local toolchain and is the same on d354e3c.
    • TestGeneratedRecipesAreCurrent and TestInstalledRecipesMatchReferenceSource fail because cmd/viva/templates/select.go.txt is stale. They fail the same way on upstream 33de151 and fork d354e3c.
  • GOOS=windows GOARCH=amd64 go build ./... and GOOS=windows GOARCH=arm64 go build ./...: passed.
  • GOOS=linux GOARCH=amd64 go vet ./...: passed.

t8y2 and others added 4 commits November 20, 2026 19:20
Resolve button surfaces through the typed element style and box model. Allow caller-owned content in themed buttons and add icon-only actions with selection semantics to the public button group.

Paired Motty change: use joined icon actions for note view modes and pin this framework commit in its CI. Reusable appearance and input primitives stay in Viva; note mode persistence stays in Motty.
A terminal row of many colors is one run per color, and rasterizing it made
a DirectWrite text format and text layout for every run. Scrolling into a
colored stretch therefore paid that cost again for each row entering view.
Keep both for the rasterizer's lifetime, keyed by everything drawRun passes
to DirectWrite, and release them with it.

A 100-cell line split into 70 color runs rasterizes in 0.33 ms once its
formats and layouts are kept, against 0.36 ms when each run makes them; a
dense scrollback drag of the same text in Motty #1246 drops its p90 frame
from 21.7 ms to 18.9 ms on the Windows test machine.
Rasterizing a row of many colors called ExtTextOut once per run, so a
colorizer's line cost a syscall and a font select for every word or cell,
and scrolling into a colored stretch spent the frame there. Draw the whole
pass's text in one call: the other passes' cells are spaces in its string,
and every character keeps the cell drawPiece puts it on.

A 100-cell line split into 70 runs rasterizes in 0.15 ms against 0.36 ms
with a call per run; a dense scrollback drag in Motty #1246 drops its p90
frame from 20.1 ms to 16.8 ms on the Windows test machine. A test proves a
batched row has the piecewise row's exact pixels.
@xiaoyumuxi
xiaoyumuxi merged commit 6db17da into main Nov 20, 2026
7 of 9 checks 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