-
Notifications
You must be signed in to change notification settings - Fork 567
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
Supplement image widget docs #1018
Conversation
The idea is to work toward a more robust image widget. Documentation is just the first step.
By reducing the scope of the "image" feature, we can expose the bare-bones image widget API and better document the "image" feature.
This should make the feature more discoverable and make it clearer why it is optional.
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.
Thanks for working on improving the docs!
I made some inline comments how we can polish this even further.
druid/src/widget/image.rs
Outdated
/// Note: interpolation can lead to blurry or pixelated images and so is not | ||
/// recommended for things like icons. Instead consider using |
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.
Can lead to when? With DPI scaling? Should mention just briefly that when scaling.
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.
i'm not sure exactly how DPI scaling is relevant here? like images may look fine on a normal DPI screen but blurry when in hiDPI situations?
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.
exactly, yea.
The idea is to work toward a more robust image widget. Documentation is just the first step.
This should make the feature more discoverable and make it clearer why it is optional.
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.
Sorry for letting this sit so long. Thanks for putting in the effort!
this is mostly just a description of the existing API with a note about the "image" feature and more links.