Skip to content

Conversation

matthew-carroll
Copy link
Contributor

[Feature] - Added PixelSnapCenter, PixelSnapAlign, PixelSnapRow, PixelSnapColumn, PixelSnapFlex, and used them throughout the codebase (Resolves #65)

These widgets force their children to sit on integer pixel values. Also, they optionally force their children to layout with integer pixel widths and heights.

I replaced all existing uses for Rows, Columns, Aligns and Centers with these widgets. I also replaced the use of a Table with rows and columns so that we could snap those children, too. This is important for Golden Scene's, to avoid placing a golden bitmap image on a partial pixel boundary, which would then anti-alias the sides and make it impossible to compare, even on the same machine.

…lSnapColumn, PixelSnapFlex, and used them throughout the codebase (Resolves #65)
@matthew-carroll matthew-carroll merged commit 0d37850 into main Jul 9, 2025
2 checks passed
@matthew-carroll matthew-carroll deleted the 65_create-pixel-snapping-widgets branch July 9, 2025 01:29
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.

[Feature] - Create versions of existing layout widgets that snap to pixel boundaries
1 participant