Show broken image icon when image fails to load
This commit is contained in:
@@ -75,4 +75,12 @@ Image {
|
||||
|
||||
Behavior on value { HNumberAnimation { factor: 2 } }
|
||||
}
|
||||
|
||||
HIcon {
|
||||
anchors.centerIn: parent
|
||||
visible: image.status === Image.Error
|
||||
svgName: "broken-image"
|
||||
dimension: Math.max(16, Math.min(parent.width, parent.height) * 0.2)
|
||||
colorize: theme.colors.negativeBackground
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user