summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/Avatar.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/qml/Avatar.qml b/resources/qml/Avatar.qml

index ab067eee..7bbdeba3 100644 --- a/resources/qml/Avatar.qml +++ b/resources/qml/Avatar.qml
@@ -35,11 +35,18 @@ Rectangle { font.pixelSize: avatar.height / 2 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter - visible: img.status != Image.Ready + visible: img.status != Image.Ready && !Settings.useIdenticon color: Nheko.colors.text } Image { + id: identicon + anchors.fill: parent + visible: img.status != Image.Ready && Settings.useIdenticon + source: "image://jdenticon/" + userid + } + + Image { id: img anchors.fill: parent