Try to solve issue with image mipmap not applying properly

This commit is contained in:
Bart De Vries 2023-09-28 11:39:18 +02:00
parent 5efc201bd8
commit 184b84f8fd
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import org.kde.kasts
Item { Item {
id: root id: root
property string imageSource: "" property string imageSource: "no-image"
property real imageOpacity: 1 property real imageOpacity: 1
property int absoluteRadius: 0 property int absoluteRadius: 0
property real fractionalRadius: 0.0 property real fractionalRadius: 0.0
@ -29,7 +29,7 @@ Item {
Loader { Loader {
id: imageLoader id: imageLoader
anchors.fill: parent anchors.fill: parent
sourceComponent: imageSource === "no-image" ? fallbackImg : (imageSource === "fetching" ? loaderSymbol : realImg ) sourceComponent: (imageSource === "no-image" || imageSource === "") ? fallbackImg : (imageSource === "fetching" ? loaderSymbol : realImg )
opacity: root.imageOpacity opacity: root.imageOpacity
layer.enabled: (root.absoluteRadius > 0 || root.fractionalRadius > 0) layer.enabled: (root.absoluteRadius > 0 || root.fractionalRadius > 0)
layer.effect: OpacityMask { layer.effect: OpacityMask {