2024-09-06 13:11:47 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2022-09-06 13:19:50 +00:00
|
|
|
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
/**
|
|
|
|
attached model property should be compatible with nim's contact model
|
|
|
|
*/
|
|
|
|
|
|
|
|
StatusMemberListItem {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
readonly property string _pubKey: model.pubKey // expose uncompressed pubkey
|
|
|
|
|
2023-04-19 16:48:57 +00:00
|
|
|
pubKey: model.isEnsVerified ? "" : Utils.getCompressedPk(model.pubKey)
|
2022-09-06 13:19:50 +00:00
|
|
|
nickName: model.localNickname
|
2022-12-05 09:56:44 +00:00
|
|
|
userName: ProfileUtils.displayName("", model.ensName, model.displayName, model.alias)
|
2022-09-06 13:19:50 +00:00
|
|
|
isVerified: model.isVerified
|
|
|
|
isUntrustworthy: model.isUntrustworthy
|
|
|
|
isContact: model.isContact
|
2024-09-06 13:11:47 +00:00
|
|
|
icon.name: model.icon
|
|
|
|
icon.color: Utils.colorForColorId(model.colorId)
|
2022-09-06 13:19:50 +00:00
|
|
|
status: model.onlineStatus
|
2023-04-19 16:48:57 +00:00
|
|
|
ringSettings.ringSpecModel: model.colorHash
|
2024-09-06 13:11:47 +00:00
|
|
|
color: (hovered || highlighted) ? Theme.palette.baseColor2 : "transparent"
|
2022-09-06 13:19:50 +00:00
|
|
|
}
|