Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Slint Circular Progress Bar #65

Open
Vadoola opened this issue Feb 23, 2024 · 1 comment
Open

Switch to Slint Circular Progress Bar #65

Vadoola opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request Upstream

Comments

@Vadoola
Copy link
Owner

Vadoola commented Feb 23, 2024

Once Slint paths support line caps (slint-ui/slint#4676) remove the SVG progress circle and switch to a pure slint component.

@Vadoola Vadoola added the enhancement New feature or request label Feb 23, 2024
@Vadoola Vadoola self-assigned this Feb 23, 2024
@Vadoola
Copy link
Owner Author

Vadoola commented Sep 24, 2024

In the discussion I had initially created asking if Line Caps would be supported, someone made a recommendation I hadn't considered. Essentially drawing the whole circular progress bar using a path, including a rounded end. They even provided a working example. It's not quite as clean as just a single line with a thickness and a line cap, but it probably is better than the SVG. It's a Slint component, it's one less file to include I should be able to animate the progress property to make the progress circle animate smoothly with a lower resolution timer, which will probably give better performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Upstream
Projects
None yet
Development

No branches or pull requests

1 participant