From 05e6dd9d0d1e03aa1b1c7f5b8bb039c0a7e12da0 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sat, 23 Apr 2022 18:53:22 -0400 Subject: [PATCH] Modifications to member list buttons --- resources/qml/TimelineView.qml | 1 - resources/qml/dialogs/RoomSettings.qml | 25 ++++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index fc5a5ead..a9d48fb9 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -209,7 +209,6 @@ Item { MatrixText { text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0) - cursorShape: Qt.PointingHandCursor } ImageButton { diff --git a/resources/qml/dialogs/RoomSettings.qml b/resources/qml/dialogs/RoomSettings.qml index 110475c7..4a7b24fe 100644 --- a/resources/qml/dialogs/RoomSettings.qml +++ b/resources/qml/dialogs/RoomSettings.qml @@ -159,22 +159,25 @@ ApplicationWindow { } + RowLayout { + spacing: Nheko.paddingMedium + Layout.alignment: Qt.AlignHCenter + Label { text: qsTr("%n member(s)", "", roomSettings.memberCount) - Layout.alignment: Qt.AlignHCenter color: Nheko.colors.text - - TapHandler { - onSingleTapped: TimelineManager.openRoomMembers(Rooms.getRoomById(roomSettings.roomId)) - } - - CursorShape { - cursorShape: Qt.PointingHandCursor - anchors.fill: parent - } - } + ImageButton { + image: ":/icons/icons/ui/people.svg" + hoverEnabled: true + ToolTip.visible: hovered + ToolTip.text: qsTr("View members of %1").arg(roomSettings.roomName) + onClicked: TimelineManager.openRoomMembers(Rooms.getRoomById(roomSettings.roomId)) + } + + } + TextArea { id: roomTopic property bool cut: implicitHeight > 100