Is there any easy way besides modifying the image data to get rounded corners? And if not, can we move this question to “Request Feedback”? ![]()
Edit: putting an image into a container and styling that does not work.
Is there any easy way besides modifying the image data to get rounded corners? And if not, can we move this question to “Request Feedback”? ![]()
Edit: putting an image into a container and styling that does not work.
There is no proper way to do this in iced at the moment.
I think this would require changes to the Rendering primitives used by renderers.
So I don’t think this will be coming soon either.
Sad ![]()
I think there are two ways to implement that, either what you propose or have an image entry in the Background enum and use the fill_quad method. In fact, there is already a TODO comment. But I wonder which approach would be more desirable and short-term feasible.
This is now supported in iced v0.14.
You can use the new Image::border_radius API: Image in iced::widget - Rust
Thanks for hint. It still comes in handy!