|
|
|
@ -75,7 +75,6 @@ ApplicationWindow { |
|
|
|
|
id: memberList |
|
|
|
|
|
|
|
|
|
clip: true |
|
|
|
|
spacing: Nheko.paddingMedium |
|
|
|
|
boundsBehavior: Flickable.StopAtBounds |
|
|
|
|
model: members |
|
|
|
|
|
|
|
|
@ -85,11 +84,24 @@ ApplicationWindow { |
|
|
|
|
enabled: !Settings.mobileMode |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
delegate: RowLayout { |
|
|
|
|
delegate: ItemDelegate { |
|
|
|
|
id: del |
|
|
|
|
|
|
|
|
|
onClicked: Rooms.currentRoom.openUserProfile(model.mxid) |
|
|
|
|
padding: Nheko.paddingMedium |
|
|
|
|
width: ListView.view.width |
|
|
|
|
height: memberLayout.implicitHeight + Nheko.paddingSmall * 2 |
|
|
|
|
hoverEnabled: true |
|
|
|
|
background: Rectangle { |
|
|
|
|
color: del.hovered ? Nheko.colors.dark : roomMembersRoot.color |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
id: memberLayout |
|
|
|
|
|
|
|
|
|
spacing: Nheko.paddingMedium |
|
|
|
|
anchors.centerIn: parent |
|
|
|
|
width: parent.width - Nheko.paddingSmall * 2 |
|
|
|
|
|
|
|
|
|
Avatar { |
|
|
|
|
id: avatar |
|
|
|
@ -99,7 +111,7 @@ ApplicationWindow { |
|
|
|
|
userid: model.mxid |
|
|
|
|
url: model.avatarUrl.replace("mxc://", "image://MxcImage/") |
|
|
|
|
displayName: model.displayName |
|
|
|
|
onClicked: Rooms.currentRoom.openUserProfile(model.mxid) |
|
|
|
|
enabled: false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
@ -107,23 +119,22 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
ElidedLabel { |
|
|
|
|
fullText: model.displayName |
|
|
|
|
color: TimelineManager.userColor(model ? model.mxid : "", Nheko.colors.window) |
|
|
|
|
color: TimelineManager.userColor(model ? model.mxid : "", del.background.color) |
|
|
|
|
font.pixelSize: fontMetrics.font.pixelSize |
|
|
|
|
elideWidth: del.width - Nheko.paddingMedium * 2 - avatar.width - encryptInd.width |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ElidedLabel { |
|
|
|
|
fullText: model.mxid |
|
|
|
|
color: Nheko.colors.buttonText |
|
|
|
|
color: del.hovered ? Nheko.colors.brightText : Nheko.colors.buttonText |
|
|
|
|
font.pixelSize: Math.ceil(fontMetrics.font.pixelSize * 0.9) |
|
|
|
|
elideWidth: del.width - Nheko.paddingMedium * 2 - avatar.width - encryptInd.width |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
|
Layout.fillHeight: true |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EncryptionIndicator { |
|
|
|
@ -150,6 +161,13 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CursorShape { |
|
|
|
|
anchors.fill: parent |
|
|
|
|
cursorShape: Qt.PointingHandCursor |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
footer: Item { |
|
|
|
|
width: parent.width |
|
|
|
|
visible: (members.numUsersLoaded < members.memberCount) && members.loadingMoreMembers |
|
|
|
|