diff options
Diffstat (limited to 'resources/qml/EncryptionIndicator.qml')
-rw-r--r-- | resources/qml/EncryptionIndicator.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml index 9fe40dea..5338b6be 100644 --- a/resources/qml/EncryptionIndicator.qml +++ b/resources/qml/EncryptionIndicator.qml @@ -14,10 +14,12 @@ Image { property int trust: Crypto.Unverified property string unencryptedIcon: ":/icons/icons/ui/shield-filled-cross.svg" property color unencryptedColor: Nheko.theme.error + property color unencryptedHoverColor: unencryptedColor + property bool hovered: ma.hovered property string sourceUrl: { if (!encrypted) - return "image://colorimage/"+unencryptedIcon+"?"; + return "image://colorimage/" + unencryptedIcon + "?"; switch (trust) { case Crypto.Verified: @@ -46,10 +48,10 @@ Image { return sourceUrl + Nheko.theme.error; } } else { - return sourceUrl + unencryptedColor; + return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor); } } - ToolTip.visible: ma.hovered + ToolTip.visible: stateImg.hovered ToolTip.text: { if (!encrypted) return qsTr("This message is not encrypted!"); |