30 lines
874 B
QML
30 lines
874 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
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
|
|
|
|
pubKey: model.isEnsVerified ? "" : Utils.getCompressedPk(model.pubKey)
|
|
nickName: model.localNickname
|
|
userName: ProfileUtils.displayName("", model.ensName, model.displayName, model.alias)
|
|
isVerified: model.isVerified
|
|
isUntrustworthy: model.isUntrustworthy
|
|
isContact: model.isContact
|
|
icon.name: model.icon
|
|
icon.color: Utils.colorForColorId(model.colorId)
|
|
status: model.onlineStatus
|
|
ringSettings.ringSpecModel: model.colorHash
|
|
color: (hovered || highlighted) ? Theme.palette.baseColor2 : "transparent"
|
|
}
|