diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-01 01:32:03 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-01 21:10:10 +0100 |
commit | b0b52d51bdb093b7c2200d40ec41e2c3b0f2c830 (patch) | |
tree | 5602f5c7b48b7a3b2be9326b0e86e7a2f3fcdc53 /core/imagedownloader.cpp | |
parent | 60999e3a3933919e873337df8a74d9fab26bc2cf (diff) | |
download | subsurface-b0b52d51bdb093b7c2200d40ec41e2c3b0f2c830.tar.gz |
core: add "transparent" parameter to renderSVGIcon
The start-selection widget will need icons with a transparent
background so that the icons don't stick out like a sore thumb.
So far the icons rendered by this function were only used by
the images on the profile and were perfectly rectangular.
Therefore there was no need for this.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r-- | core/imagedownloader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp index 7ce7bde5f..59f1da8b7 100644 --- a/core/imagedownloader.cpp +++ b/core/imagedownloader.cpp @@ -153,11 +153,11 @@ Thumbnailer::Thumbnail Thumbnailer::getHashedImage(const QString &filename, bool return thumbnail; } -Thumbnailer::Thumbnailer() : failImage(renderSVGIcon(":filter-close", maxThumbnailSize())), // TODO: Don't misuse filter close icon - dummyImage(renderSVGIcon(":camera-icon", maxThumbnailSize())), - videoImage(renderSVGIcon(":video-icon", maxThumbnailSize())), +Thumbnailer::Thumbnailer() : failImage(renderSVGIcon(":filter-close", maxThumbnailSize(), false)), // TODO: Don't misuse filter close icon + dummyImage(renderSVGIcon(":camera-icon", maxThumbnailSize(), false)), + videoImage(renderSVGIcon(":video-icon", maxThumbnailSize(), false)), videoOverlayImage(renderSVGIconWidth(":video-overlay", maxThumbnailSize())), - unknownImage(renderSVGIcon(":unknown-icon", maxThumbnailSize())) + unknownImage(renderSVGIcon(":unknown-icon", maxThumbnailSize(), false)) { // Currently, we only process one image at a time. Stefan Fuchs reported problems when // calculating multiple thumbnails at once and this hopefully helps. |