summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-03-05 21:07:18 +0000
committerGitHub <noreply@github.com>2020-03-05 21:07:18 +0000
commitfc2f08a186c2712ae50891fa4f09fda91f6c3b19 (patch)
treef0048dc4af5ce5d62b9ab7e186d52c4baeed2047 /resources/qml
parentMerge pull request #131 from adasauce/shh (diff)
parentUpdate mtxclient in flatpak for blurhash (diff)
downloadnheko-fc2f08a186c2712ae50891fa4f09fda91f6c3b19.tar.xz
Merge pull request #137 from Nheko-Reborn/blurhash
Experimental Blurhash support
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/delegates/ImageMessage.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml

index cb05021d..65e1c454 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml
@@ -12,6 +12,19 @@ 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