-
I thought about asking this a while back, but never did, and I was recently reminded by discussion #4656. When I initially started work on Tomotroid I had intended to use Slint paths to make the circular progress bar. I ended up dropping that idea and switching to loading an SVG because the Slint paths don't have support for line caps (specifically rounded line caps). While this method works, it would be nice to handle this within Slint if possible, remove some of the Rust code, and keep the UI a bit more encapsulated. Right now in order make the progress circle move smoothly I need to be having a short timer to wake up and tick over the progress SVG, or have a longer time and the progress circle moves in big ticks. If I was able to create this progress circle within Slint I could animate the progress property and have my timer wake up less often to update the progress circle. I assume this would be more efficient resource wise, but I haven't actually tested this. So are there any plans to bring line cap support to Slint Paths? I searched through the Issues and Discussions, and couldn't find anything about it one way or the other. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Yes, you're totally right, this is a desirable feature to have. I'll create an issue from this discussion. |
Beta Was this translation helpful? Give feedback.
-
I wish for this feature too. I tried around and got somewhat working, using the iot demo: Here's the slintpad for it. |
Beta Was this translation helpful? Give feedback.
Yes, you're totally right, this is a desirable feature to have. I'll create an issue from this discussion.