summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2020-12-25 09:14:00 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commitd2e193ff78c491f7108476b00340aea97f4feed3 (patch)
tree18fe17ffd6f1ad667b54fbc09d424658b25fb54c /resources
parentMerge pull request #722 from Thulinma/noHtmlFixes (diff)
downloadnheko-d2e193ff78c491f7108476b00340aea97f4feed3.tar.xz
Add jdenticon support
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