Repository navigation
Gate f153045: #1111 - #1137
Merged
Merged
Gate f153045: #1111 #1137
Conversation
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.
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.
The gate of f153045: #1111
The commits of each pull request, rebased in this order on main 21b047b:
pixel-harnessDo not use the merge button: it makes new commits. When the gate passes,
gate-merge.shmoves main to 0ef799b with a fast-forward. Then this pull request and each pull request of the batch show as merged.