slint-ui / slint

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

`Spinner` does not render at all in Windows or when using the `winit-software` back end #5237

Open kyp44 opened 1 month ago

kyp44 commented 1 month ago

The Spinner component does not seem to render at all on Windows or when using the winit-software back end in Linux. I've created an example project here in Rust.

In Linux, the Spinner renders just fine using the default back end, but does not render at all after running with

export SLINT_BACKEND=winit-software

Likewise, it does not render when running in Windows after cross-compiling using the x86_64-pc-windows-gnu target in cargo.

Note that the animated rectangle works in all cases. I know that the Spinner widget is relatively new (Nov 2023), so perhaps this was never adequately tested with software rendering or in Windows.

FloVanGH commented 1 month ago

Hi, and thank you for your report. The Spinner uses Path that is currently not supported by the software renderer.

kyp44 commented 1 month ago

For tracking purposes, here is the issue relating to the Path issue.