Commit Graph

6 Commits

Author SHA1 Message Date
Olivier FAURE fad997afa5
Add Properties to Button (#892)
Depends on #904.

Add BackgroundColor, BorderColor, BorderWidth, CornerRadius and Padding
properties.
Modularize button painting code.
Paint border after background to get slightly better border appearance.
Update screenshots.
Add screenshot test using properties.
2025-03-29 09:43:22 +00:00
Olivier FAURE 3a21b21bbf
Mark `masonry/screenshots/*.png` as LFS files (#911)
These files we previously stored as blobs as-is. This stores them using
the same LFS method as other screenshots.
2025-03-25 13:32:17 +00:00
Olivier FAURE 8002eecbcd
Tighten screenshot testing (#904)
Remove nv-flip dependency and use pixel-by-pixel comparison instead.
Reduce error tolerance in tests.
Update a few outdated screenshots.

Create `assert_failing_render_snapshot` macro to make sure our diffing
infrastructure catches regressions.

Fixes #893.
2025-03-23 19:19:25 +00:00
Olivier FAURE 8d322b63a8
Change how some widgets are rendered (#886)
Update the code for Button, Textbox and ProgressBar.

Make the border and background disjoint.
Correctly interpret the border width.
2025-03-17 14:22:46 +00:00
Olivier FAURE df3107e1d4
Add screenshots to documentation (#832)
Create include_screenshot macro
2025-01-23 18:21:53 +00:00
Olivier FAURE df1efa472b
Add tests to Masonry's examples (#844) 2025-01-22 11:18:29 +00:00