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.07k stars 573 forks source link

Spinner: simplify the arc path #5420

Closed ogoffart closed 3 months ago

ogoffart commented 3 months ago

Since we use the stroke and stroke with, then a single arc is enough instead of two connected by lines

ogoffart commented 3 months ago

This can only be reproduced with femtovg and is working fine with Skia. On the other hand, the current one in master has a tiny artifact when the progress is 0:

image

So I made a small workaround for femtovg.

FloVanGH commented 3 months ago

This can only be reproduced with femtovg and is working fine with Skia. On the other hand, the current one in master has a tiny artifact when the progress is 0:

image

So I made a small workaround for femtovg.

It works not also for femtovg. Because of the 0 progress artifact, it could be workaround by just don't display the path on 0.