Add "None" option for transparent background in Image view
Summary: Some users may prefer viewing images with an alpha channel without a background. Before D11629 this was the behaviour for SVGs, but is now impossible for both SVGs and raster images. This patch adds this option, effectively adding functionality for raster images, and getting back the previous behaviour for SVGs. We also make {nav None} the default. For raster images, choosing {nav None} paints the buffer with `Qt::transparent` where needed. For SVGs, this option doesn't draw anything, which was the behaviour before D11629. Depends on D11629 Example (PNG on left, SVG on right): {F5764317} Fullscreen: {F5766995} Test Plan: Test the {nav None} option for both raster images and SVGs. Ensure other options (checkboard and solid color) are unaffected. Reviewers: #gwenview, rkflx, ngraham Reviewed By: #gwenview, rkflx, ngraham Subscribers: zzag, muhlenpfordt Tags: #gwenview Differential Revision: https://phabricator.kde.org/D11630
parent
836ec0e4
Please register or sign in to comment