Skip to content

Gate f153045: #1111 - #1137

Merged
beetlebugorg merged 2 commits into
mainfrom
gate/f153045
Dec 4, 2026
Merged

beetlebugorg merged 2 commits into
mainfrom
gate/f153045

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

The gate of f153045: #1111

The commits of each pull request, rebased in this order on main 21b047b:

PR Branch Gated head Rebased head
#1111 pixel-harness a1ebbfd 0ef799b

Do not use the merge button: it makes new commits. When the gate passes, gate-merge.sh moves main to 0ef799b with a fast-forward. Then this pull request and each pull request of the batch show as merged.

src/tests/aqua_pixels.zig renders each control of aqua-macos.css in each
state, light and dark, at the frame and the scale of its render by
zig build native-ref, and compares the pixels with that render. The
score of a case is the fraction of pixels that differ at the best shift
of up to 4 pixels, and a case fails above its limit. The test writes a
report and a picture of each case, AppKit next to ztk. With no
ZTK_NATIVE_REF in the environment it is skipped.

The job pixel-macos of CI runs native-ref and the test on a macOS
runner, and keeps the report in the summary and the pictures as an
artifact. The limits are the scores on macOS 27 plus 0.05.
cacheDisplayInRect gives the render in the color space of the screen,
so on a display with a wide gamut the accent #007aff of AppKit came out
as #2f77f6, and the pixel harness counted each pixel of the accent as a
difference. ztk draws in sRGB, so native-ref now converts each render
to sRGB, where the accent is #007aff. The limits of the harness are the
new scores plus 0.05: the default button falls from 0.92 to 0.33, and
the selected segment from 0.31 to 0.03.
@beetlebugorg
beetlebugorg merged commit 0ef799b into main Dec 4, 2026
3 of 5 checks passed
@beetlebugorg
beetlebugorg deleted the gate/f153045 branch December 4, 2026 20:30
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.

1 participant