Add avatar with status icon componant
Will be used later for 1-to-1 user room delegates and room members pane
This commit is contained in:
@@ -56,7 +56,7 @@ Column {
|
||||
layoutDirection: isOwn ? Qt.RightToLeft : Qt.LeftToRight
|
||||
anchors.right: isOwn ? parent.right : undefined
|
||||
|
||||
Base.Avatar { id: avatar; invisible: combine; username: displayName }
|
||||
Base.Avatar { id: avatar; invisible: combine; name: displayName }
|
||||
|
||||
ColumnLayout {
|
||||
spacing: 0
|
||||
|
@@ -19,7 +19,7 @@ Rectangle {
|
||||
id: "avatar"
|
||||
Layout.alignment: Qt.AlignTop
|
||||
dimmension: root.Layout.minimumHeight
|
||||
username: chatPage.room.display_name
|
||||
name: chatPage.room.display_name
|
||||
}
|
||||
|
||||
Base.HLabel {
|
||||
|
@@ -20,7 +20,7 @@ Rectangle {
|
||||
|
||||
Base.Avatar {
|
||||
id: "avatar"
|
||||
username: chatPage.user.display_name
|
||||
name: chatPage.user.display_name
|
||||
dimmension: root.Layout.minimumHeight
|
||||
//visible: textArea.text === ""
|
||||
visible: textArea.height <= root.Layout.minimumHeight
|
||||
|
Reference in New Issue
Block a user