You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using iced to make a native (Windows and Linux if that matters) app, and I'd like to give its window an icon.
I managed to add an icon using Icon and passing it to my app's settings.
Is there a way (I haven't found in the doc, but I may not have been looking at the right places) to load an icon from a file, instead of giving a pre-computed array of pixels?
Especially, I'd like to load an SVG icon. Since you already provide SVG widgets. I haven't read its source code yet, but maybe this could be somehow reused so that we could provide an Icon::from_file(), or at least Icon::from_svg().
What do you think? Would that make sense?
Is there an easy way to rasterize an SVG into a pixel array already, and would it be better suited to build the array first, then give it to Icon::from_rgba?
I could help and make the MR myself, once you tell me what solution sounds the most sensible to you.
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for iced.
I'm using iced to make a native (Windows and Linux if that matters) app, and I'd like to give its window an icon.
I managed to add an icon using Icon and passing it to my app's
settings
.Is there a way (I haven't found in the doc, but I may not have been looking at the right places) to load an icon from a file, instead of giving a pre-computed array of pixels?
Especially, I'd like to load an SVG icon. Since you already provide SVG widgets. I haven't read its source code yet, but maybe this could be somehow reused so that we could provide an
Icon::from_file()
, or at leastIcon::from_svg()
.What do you think? Would that make sense?
Is there an easy way to rasterize an SVG into a pixel array already, and would it be better suited to build the array first, then give it to
Icon::from_rgba
?I could help and make the MR myself, once you tell me what solution sounds the most sensible to you.
Thanks
The text was updated successfully, but these errors were encountered: