preserve-aspect-ratio only sets a flag when loading the image and is therefore bound by what gtk allows.
for example, it doesn't work with svg images, but there are no issues with pngs
Checklist
[x] All widgets I've added are correctly documented.
[x] I added my changes to CHANGELOG.md, if appropriate.
[ ] The documentation in the docs/content/main directory has been adjusted to reflect my changes.
this shouldn't be necessary, since everything is generated automatically, right?
[x] I used cargo fmt to automatically format all code before committing
Description
fill-svg
attribute that attempts to replace the color of an svgpreserve-aspect-ratio
attribute to decide whether to keep an images aspect ratio when it is resizedUsage
Showcase
see #1146, @hypernova7 has provided screenshots.
Additional Notes
preserve-aspect-ratio
only sets a flag when loading the image and is therefore bound by what gtk allows. for example, it doesn't work with svg images, but there are no issues with pngsChecklist
docs/content/main
directory has been adjusted to reflect my changes. this shouldn't be necessary, since everything is generated automatically, right?cargo fmt
to automatically format all code before committing