summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/delegates/ImageMessage.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml
index cb05021d..62cae42c 100644
--- a/resources/qml/delegates/ImageMessage.qml
+++ b/resources/qml/delegates/ImageMessage.qml
@@ -12,6 +12,20 @@ Item {
 	width: tooHigh ? (timelineRoot.height / 2) / model.data.proportionalHeight : tempWidth
 
 	Image {
+		id: blurhash
+		anchors.fill: parent
+		visible: img.status != Image.Ready
+
+		source: model.data.blurhash ? ("image://blurhash/" + model.data.blurhash) : ("image://colorimage/:/icons/icons/ui/do-not-disturb-rounded-sign@2x.png?"+colors.buttonText)
+		asynchronous: true
+		fillMode: Image.PreserveAspectFit
+
+
+		sourceSize.width: parent.width
+		sourceSize.height: parent.height
+	}
+
+	Image {
 		id: img
 		anchors.fill: parent