revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

fix(rendering): Aliasing in rounded borders #1006

Closed bryphe closed 3 years ago

bryphe commented 3 years ago

Issue:

When using rounded borders, even though we set the anti-alias property on the border paint object, we can still end up with jagged edges:

Screen Shot 2020-09-29 at 12 03 40 PM

Defect:

The inner-rounded rectangle wasn't getting anti-aliasing applied, so jagged edges could still sneak through.

Fix:

Set anti-alias on the view node paint as well - this smooths out the edge, which is visually superior:

Screen Shot 2020-09-29 at 12 01 54 PM

bryphe commented 3 years ago

/azp run

azure-pipelines[bot] commented 3 years ago
Azure Pipelines successfully started running 1 pipeline(s).