slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.64k stars 607 forks source link

Disabling rounded rectangle antialiasing in software renderer #6802

Open elipsitz opened 6 days ago

elipsitz commented 6 days ago

I'm using Slint with Rust on a microcontroller, using the software renderer.

It would be nice if there were some way to disable rounded rectangle antialiasing. It's cool that the feature is there, but with a low resolution screen, the antialiasing looks a bit rough -- blurry, instead of smooth. I'd prefer having the option of having crisp, pixelated borders and fills.

ogoffart commented 6 days ago

I think there is indeed something bad about the rendering of rounded rectangle that look a bit bury. The solution might be to fix the rounded rectangle algorithm rather than disabling it.