feat(StatusMemberListItem): Add admin status (#704)
This commit is contained in:
parent
b94debcaaf
commit
fae4543b4f
|
@ -441,4 +441,11 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
||||||
image.isIdenticon: true
|
image.isIdenticon: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatusMemberListItem {
|
||||||
|
nickName: "admin.guy"
|
||||||
|
isOnline: false
|
||||||
|
isAdmin: true
|
||||||
|
trustIndicator: StatusContactVerificationIcons.TrustedType.Untrustworthy
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,6 +72,11 @@ StatusListItem {
|
||||||
This property holds the connectivity status of the member represented.
|
This property holds the connectivity status of the member represented.
|
||||||
*/
|
*/
|
||||||
property bool isOnline: false
|
property bool isOnline: false
|
||||||
|
/*!
|
||||||
|
\qmlproperty string StatusMemberListItem::isAdmin
|
||||||
|
This property holds the admin status of the member represented.
|
||||||
|
*/
|
||||||
|
property bool isAdmin: false
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: d
|
id: d
|
||||||
|
@ -124,4 +129,12 @@ StatusListItem {
|
||||||
statusListItemIcon.badge.border.width: 2
|
statusListItemIcon.badge.border.width: 2
|
||||||
statusListItemIcon.badge.implicitHeight: 12 // 8 px + 2 px * 2 borders
|
statusListItemIcon.badge.implicitHeight: 12 // 8 px + 2 px * 2 borders
|
||||||
statusListItemIcon.badge.implicitWidth: 12 // 8 px + 2 px * 2 borders
|
statusListItemIcon.badge.implicitWidth: 12 // 8 px + 2 px * 2 borders
|
||||||
|
components: [
|
||||||
|
StatusIcon {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
visible: root.isAdmin
|
||||||
|
icon: "crown"
|
||||||
|
color: Theme.palette.directColor1
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M15 13L16 6.5L14.8728 7.25147C13.1954 8.36973 10.9145 7.54831 10.3352 5.61737L10 4.5L9.66479 5.61737C9.08551 7.54831 6.80459 8.36973 5.12721 7.25147L4 6.5L5 13M15 13H5M15 13V16H5V13" stroke="black" stroke-linejoin="round"/>
|
||||||
|
<circle cx="10" cy="4.5" r="1.5" fill="#F6F8FA" stroke="black"/>
|
||||||
|
<circle cx="16" cy="6.5" r="1.5" fill="#F6F8FA" stroke="black"/>
|
||||||
|
<circle cx="4" cy="6.5" r="1.5" fill="#F6F8FA" stroke="black"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 530 B |
Loading…
Reference in New Issue