-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added convenience functions for window::icon::Icon #1174
Conversation
dbe97ee
to
08b341e
Compare
Thank you for the PR! Could you make it so that your convenience function is only available if the iced image feature is enabled? The image crate is quite large, and iced tries to give users the option for simplicity, but tries to be as light as it can be by default. This is the reason that image isn't already included by default. |
08b341e
to
0fcb9a8
Compare
Well, I had already gated this behind an Note that this pulls all the default features (= supported file formats) of I'm afraid I cannot remove the
|
0fcb9a8
to
53f9df6
Compare
Also, I'm not sure how docs.rs generates its doc. Will these functions be shown in https://docs.rs/iced/latest/iced/?
...but I'm not sure how this will render the functions that are gated behind the |
I did not manage to build the doc locally though the I think this MR is ready to be merged. What's your opinion on this? |
e6ab610
to
8b0f2e6
Compare
I'm finally having a green CI on this PR. Is this PR OK for you? Or do you need anything else from me before merging it? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks 🙇
See #1170
Since the
image
dependency was already an (optional) dependency oficed
, why not provide these convenience functions that save a few lines of code in applications that need an icon