Skip to content

merge: sync upstream main (d36f87e) into fork main - #38

Merged
xiaoyumuxi merged 16 commits into
mainfrom
chore/sync-upstream-d36f87e
Nov 17, 2026
Merged

xiaoyumuxi merged 16 commits into
mainfrom
chore/sync-upstream-d36f87e

Conversation

@xiaoyumuxi

Copy link
Copy Markdown

Merge upstream vivaui/viva main (aa89181..d36f87e, 15 commits) into fork main (412c0d9), ahead of Lithe desktop 0.8.4:

  • d828c8b fix(ui): tell a disabled Base it is disabled, and compare every Base with its control
  • 7a46c79 docs(guides): lead the drawing guide with painting inside a page
  • 86e602f test(ui): a Dialog without a height fits its description and body
  • 1443298 feat(ui): give a Select trigger a Hint for assistive technology
  • 333a930 feat(ui): let a page Field paint as invalid
  • 01bf3b8 feat(ui): measure a Button's room with ButtonExtent
  • 8d814bf Revert "feat(ui): measure a Button's room with ButtonExtent"
  • 3eaae58 feat(ui): FormField shows an error, the invalid look and labels a control
  • 8cf777d feat(ui): let a page Field be disabled
  • 7ae8b6b feat(ui): give one Button its own recipe
  • 9614365 feat(ui): FormField takes a Description and Field a Hint
  • 3ed35ad fix(headless): do not report a selected run painted again in its highlight
  • e1bb4da fix(ui): give the keyboard back to a field after its action is pressed
  • d97f2b6 feat(audio): play PCM on the default output device
  • d36f87e chore(testenv): move the Linux harness to its new machine

The merge had no conflicts. Upstream and fork tags are identical, so no tags need pushing. Open fork PRs #36 and #37 are left for a later sync.

Verified locally (macOS 27.2 SDK, Go 1.27.4):

  • git merge-base --is-ancestor upstream/main HEAD: true
  • gofmt -l .: clean
  • go vet ./...: ok
  • GOOS=linux GOARCH=amd64 go vet ./...: ok
  • GOOS=windows GOARCH=amd64 go build ./...: ok
  • GOOS=windows GOARCH=arm64 go build ./...: ok
  • go test ./...: 94 packages ok; cmd/viva fails 14 packaging tests ("built for macOS 13.0 or later but [mac] min_system says 12.0"). They fail the same way on fork main 412c0d9 with this machine's toolchain (Apple clang 21), so the merge does not cause them.

Note: Must be merged with a merge commit (--merge), never squash or rebase.

t8y2 and others added 16 commits November 17, 2026 17:03
…with its control

Box.Disabled did not reach the hit of an element given Hit or HitWith, so
ButtonBase, CheckboxBase and SwitchBase stayed enabled to assistive
technology and in the Tab order while the control with a look did not.
Merge it into the hit's options.

Add a test that declares each styled control and its Base in every state
and compares what they tell the pointer, the keyboard and assistive
technology, and one that fails for a page Base that is in neither that
comparison nor an explained list. Document how a control and its Base are
kept the same and what adding a control touches.
The drawing guide opened by telling readers to compute every rectangle in
a Paint callback. Lead with Draw, DrawOver and ui.Control on an element the
page lays out, with a compiled example, and describe the whole-window
canvas as the route for where ui has nothing that fits. Say what a copy
made by viva add is and how to change a control's look without copying.
Pin that a Dialog given no Height is as tall as the height an application
gets by measuring the header with components.BeginDialog and adding its
body's height, so a page does not need that measurement. Motty drops it in
the paired commit.
components.Select already declared the trigger's Hint; ui had no way to set it.
components.Input paints an invalid input with the destructive border and ring,
but a page text field had no way to ask for it. Field.Invalid feeds the
snapshot, as Secure does. Motty's vault unlock dialog needs it.
A page that reserves the room of a button it paints itself, or places beside
something else, had to call components.BeginButton with an empty identity just
to read its size. ButtonExtent(c, label, size) gives the width and height the
element Button is laid out at, with a test per size against the laid-out hit.
…trol

The shared field layout already takes an Error, Invalid and the control the
title labels (BeginField's For); FormFieldState now sets them. A page
declaring a form row no longer needs a hand-painted BeginField for any of
them. Tested: the error is painted and For makes the title the control's label.
components.Input paints a disabled input dimmed and out of the Tab order, but a
page text field had no way to ask for it, which kept disabled proxy fields hand
painted. Field.Disabled feeds the snapshot, as Secure and Invalid do. Tested:
painted differently, reported disabled, not focusable.
PageConfig.Styles.Button dresses every button of a page, but a page had no way to
dress one: Box.Background does not reach a themed Button, and ButtonBase drops the
theme's hover, press, focus and disabled looks. Box.ButtonRecipe takes the typed
function components.Button already accepts (start from components.ButtonRecipe and
change a color) and wins over the page's Styles. Tested: only that button is
dressed, removing the hook fails the test, and a warm declaration allocates nothing.
Motty's bookmark editor forces a dark Save button this way.
The shared field layout already places a description under the control, and
components.Input already gives its hit a Hint; ui exposed neither. FormFieldState.Description
paints the muted help line, Field.Hint feeds the snapshot's Hint. Tested: both are
reached, and removing either wiring fails the test. Motty's local proxy port field needs both.
@xiaoyumuxi
xiaoyumuxi merged commit c1f24ff into main Nov 17, 2026
15 of 18 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