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:
miruka
2019-03-27 19:21:14 -04:00
parent c35f7f35af
commit e4a9fb40ac
8 changed files with 26 additions and 11 deletions

View File

@@ -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

View File

@@ -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 {

View File

@@ -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