Repository navigation
merge: sync upstream main (a1af7583) into fork - #75
Merged
Merged
Conversation
A button's focus ring was painted as a disc under its surface, which the button's own fill covered; a ghost, link or translucent-filled button left the disc visible through its middle, so a keyboard-focused ghost button read as a filled square. Paint the halo as a line whenever the look paints no opaque fill, in the canvas button, the button group and the frame's ring. PaintButtonSurface is now the surface half of BeginButton's paint, next to PaintButtonContent, so a page that draws a button's content itself paints a button surface instead of a copy of this logic. Motty's tools window takes this surface in its own commit.
Windows reports the "one screen per notch" setting as a screen of the window, so a list, menu or dialog smaller than the window moved by the window's screen and skipped the rows in between. The scroll event now says how many screens it is, and each scroll region moves that many of its own screens, following whole visible rows where it scrolls rows. ScrollState, menus, selects, text areas, the code editor, the code diff, the time picker and the editable tabs resolve their own page; a wheel that is not set to screens keeps its old distance. Refs: t8y2/motty#1672
Squash of vivaui#487 with its installer templates regenerated; applied directly because the contributor's fork rejects maintainer pushes.
Follow-up to vivaui#483: the packager already writes NSMicrophoneUsageDescription from [mac.info] and signs with the [mac] entitlements file, so only the contract was missing.
…lable CredWriteW can fail with ERROR_NOT_FOUND on a logon whose credential set cannot be placed. It was mapped to ErrSecretNotFound, which StoreSecret never promises, so an application storing a key on first use surfaced the sentinel as its save error. A write now reports ErrSecretStoreUnavailable; read and delete keep ErrSecretNotFound. Paired with the Motty report t8y2/motty#1513, where saving a password failed with the key is not in the secret store.
The site test requires every example program to appear in a guide. The notifications and watermark examples had none, which left main's website job red. Both guides get a section and the example, in English and Chinese, expanded from examples/guides so the shown code is the code that runs.
When the first Direct3D device is made, the render subsystem reports the driver behind it (hardware or WARP), the adapter as DXGI names it, the feature level and whether DirectComposition or the window's own swap chain presents, once per process. A DirectComposition that could not be made is reported as a warning with its error instead of leaving the fallback silent. TestNativeStructureABI now checks that DXGI_ADAPTER_DESC keeps its ABI. Companion Motty commit routes the stream into motty.log.
A wheel set to one screen per notch moved a region by its whole viewport, so the rows at the edge it left were gone at the next page and a reader lost their place. A page is now gfx.ScrollPage of the viewport, seven eighths of it as browsers page, rounded down to whole rows, and ScrollState's PageUp and PageDown take the same page instead of their own nine tenths. Every region that resolves a page notch goes through StepYIn and StepXIn, so the framework's regions and Motty's own painted ones keep the same overlap; Motty's companion commit adapts its tests to it. Refs: t8y2/motty#1794
# Conflicts: # base/scroll_test.go # gfx/input.go # gfx/scroll_test.go # internal/platform/windows/watermark_windows.go
This was referenced Nov 28, 2026
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.
把上游
vivaui/vivamain同步进Lithe-IDEA/Lithe-vivamain:上游从 fork 已包含的0ec90b26前进到a1af7583,共 29 个提交(含 v0.6.10 发布说明)。为 Lithe 桌面端 0.8.21 发版前同步。带进来的上游改动
9f2eb0f9(无填充按钮的焦点环画成光晕)这次一并带入,上游已用4178eeee重新生成了cmd/viva模板。7ac5ef11:跟随末尾的List上ScrollTo能脱离末尾(fix(ui): let ScrollTo leave the end of a following List vivaui/viva#503)。fork fix(ui): let ScrollTo leave the end of a following List #74 是它的 cherry-pick,同步后被上游取代,会关闭。d5f9ead2:TreeState.RowBackground/TreeItem.Background。与 fork 的f031d0df(feat(tree): add full-width RowBackground wash for continuous subtree tinting #72)是同一个 API,合并后只剩一份,Lithe 的调用点不用改。7022eddc、ca01419e)、原生窗口水印与 Windows 弹窗层级(f9c0fcee、97cdc2bd)、通知激活、麦克风采集、颜色选择器实时编辑、Linux 小键盘、Windows 凭据与图形诊断、文件监听等修复。冲突
四处冲突,fork 一侧都是上游自己的旧版本,没有我们的补丁,全部取上游:
gfx/input.go、base/scroll_test.go、gfx/scroll_test.go:上游ca01419e改为按ScrollPage(视口的 7/8)翻页。解决后三个文件与上游逐字相同。internal/platform/windows/watermark_windows.go(add/add):fork 的f031d0df压缩带入了旧版水印,取上游97cdc2bd的版本。验证(macOS Apple Silicon,go1.27.4)
go build ./...GOOS=windows GOARCH=amd64 go build ./...、GOOS=windows GOARCH=arm64 go build ./...GOOS=linux CGO_ENABLED=0 go vet ./base/ ./ui/ ./components/ ./gfx/go test ./base/... ./ui/... ./components/... ./gfx/... ./markdown/... ./app/... -count=1:只有ui/inputnumber的TestWarmPaintAllocatesNothing失败,这是 go1.27.4 下已知的分配测试噪声,上游 main 上同样失败,与本次同步无关。合入方式:Create a merge commit(不 squash)。