diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-08-13 20:05:51 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-09-11 19:35:31 -0400 |
commit | 350d1977af35ee9cc59f4912593c4083a64dc7d1 (patch) | |
tree | 4dcb21772c9b26051a546a14a4a845613f07aa5c /resources/qml | |
parent | Get direct chat jdenticons to line up (diff) | |
download | nheko-350d1977af35ee9cc59f4912593c4083a64dc7d1.tar.xz |
Add some fancy effects to jdenticon
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/Avatar.qml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/resources/qml/Avatar.qml b/resources/qml/Avatar.qml index 91245d52..1b7497c1 100644 --- a/resources/qml/Avatar.qml +++ b/resources/qml/Avatar.qml @@ -43,7 +43,19 @@ Rectangle { id: identicon anchors.fill: parent visible: img.status != Image.Ready && Settings.useIdenticon - source: Settings.useIdenticon ? "image://jdenticon/" + userid : "" + source: Settings.useIdenticon ? "image://jdenticon/" + userid + "?radius=" + radius : "" + layer.enabled: true + + MouseArea { + anchors.fill: parent + + Ripple { + rippleTarget: parent + color: Qt.rgba(Nheko.colors.alternateBase.r, Nheko.colors.alternateBase.g, Nheko.colors.alternateBase.b, 0.5) + } + + } + } Image { |