summary refs log tree commit diff
path: root/resources/qml/dialogs
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-17 00:35:35 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-17 00:37:30 +0100
commitdf1f549a2cbcbcd2396f540e7265fed699ea6b03 (patch)
tree66f38ac0c399d7c220a33b87dd7f17cc56bcfe01 /resources/qml/dialogs
parentSwitch icon theme to Fluent icons (diff)
downloadnheko-df1f549a2cbcbcd2396f540e7265fed699ea6b03.tar.xz
Use filled shields everywhere and distinguish different states more
Diffstat (limited to 'resources/qml/dialogs')
-rw-r--r--resources/qml/dialogs/UserProfile.qml23
1 files changed, 13 insertions, 10 deletions
diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml

index e4a0a6cb..6c8f9ba2 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml
@@ -213,12 +213,13 @@ ApplicationWindow { onClicked: profile.verify() } - Image { + EncryptionIndicator { Layout.preferredHeight: 16 Layout.preferredWidth: 16 - source: "image://colorimage/:/icons/icons/ui/shield-small-filled.svg?" + ((profile.userVerified == Crypto.Verified) ? "green" : Nheko.colors.buttonText) - visible: profile.userVerified != Crypto.Unverified + encrypted: profile.userVerificationEnabled + trust: profile.userVerified Layout.alignment: Qt.AlignHCenter + ToolTip.visible: false } RowLayout { @@ -304,16 +305,18 @@ ApplicationWindow { Layout.preferredHeight: 16 Layout.preferredWidth: 16 visible: profile.isSelf && verificationStatus != VerificationStatus.NOT_APPLICABLE + sourceSize.height: 16 + sourceSize.width: 16 source: { switch (verificationStatus) { case VerificationStatus.VERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-small-filled.svg?green"; + return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?green"; case VerificationStatus.UNVERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-unprotected.svg?#d6c020"; + return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020"; case VerificationStatus.SELF: - return "image://colorimage/:/icons/icons/ui/checkmark.svg?green"; + return "image://colorimage/:/icons/ui/checkmark.svg?green"; default: - return "image://colorimage/:/icons/icons/ui/shield-unprotected.svg?red"; + return "image://colorimage/:/icons/ui/shield-filled-cross.svg?#d6c020"; } } } @@ -388,13 +391,13 @@ ApplicationWindow { source: { switch (verificationStatus) { case VerificationStatus.VERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-small-filled.svg?green"; + return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?green"; case VerificationStatus.UNVERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-unprotected.svg?#d6c020"; + return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020"; case VerificationStatus.SELF: return "image://colorimage/:/icons/icons/ui/checkmark.svg?green"; default: - return "image://colorimage/:/icons/icons/ui/shield-unprotected.svg?red"; + return "image://colorimage/:/icons/icons/ui/shield-filled.svg?red"; } } }