Add verified devices indicator to room header

This commit is contained in:
miruka
2020-06-27 11:11:14 -04:00
parent 90a7a3a6cf
commit 0a2d274824
5 changed files with 65 additions and 8 deletions

View File

@@ -122,6 +122,36 @@ Rectangle {
visible: center
}
HButton {
id: encryptionStatusButton
padded: false
visible: Layout.preferredWidth > 0
backgroundColor: "transparent"
icon.name:
chat.roomInfo.unverified_devices ?
"device-unset" :
"device-verified"
icon.color:
chat.roomInfo.unverified_devices ?
theme.colors.warningText :
theme.colors.positiveText
toolTip.text:
chat.roomInfo.unverified_devices ?
qsTr("Some members in this encrypted room have " +
"unverified devices") :
qsTr("All members in this encrypted room are verified")
onClicked: toolTip.instantShow()
Layout.preferredWidth: chat.roomInfo.encrypted ? avatar.width : 0
Layout.fillHeight: true
Behavior on Layout.preferredWidth { HNumberAnimation {} }
}
HButton {
id: goToRoomPaneButton
padded: false