mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Modifications to member list buttons
This commit is contained in:
parent
c53b732452
commit
f9b3690e87
2 changed files with 14 additions and 12 deletions
|
@ -209,7 +209,6 @@ Item {
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0)
|
text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0)
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageButton {
|
ImageButton {
|
||||||
|
|
|
@ -159,18 +159,21 @@ ApplicationWindow {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
spacing: Nheko.paddingMedium
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("%n member(s)", "", roomSettings.memberCount)
|
text: qsTr("%n member(s)", "", roomSettings.memberCount)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
color: Nheko.colors.text
|
color: Nheko.colors.text
|
||||||
|
|
||||||
TapHandler {
|
|
||||||
onSingleTapped: TimelineManager.openRoomMembers(Rooms.getRoomById(roomSettings.roomId))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CursorShape {
|
ImageButton {
|
||||||
cursorShape: Qt.PointingHandCursor
|
image: ":/icons/icons/ui/people.svg"
|
||||||
anchors.fill: parent
|
hoverEnabled: true
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("View members of %1").arg(roomSettings.roomName)
|
||||||
|
onClicked: TimelineManager.openRoomMembers(Rooms.getRoomById(roomSettings.roomId))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue