mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
commit
5ceed8f519
3 changed files with 26 additions and 13 deletions
|
@ -46,6 +46,15 @@ Item {
|
||||||
// height is somewhat arbitrary here... don't set width because width scales w/ height
|
// height is somewhat arbitrary here... don't set width because width scales w/ height
|
||||||
height: parent.height / 16
|
height: parent.height / 16
|
||||||
z: 3
|
z: 3
|
||||||
|
opacity: hh.hovered ? 0.3 : 1
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation { duration: 100; }
|
||||||
|
}
|
||||||
|
|
||||||
|
HoverHandler {
|
||||||
|
id: hh
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
@ -199,8 +208,7 @@ Item {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: qsTr("%1 member(s)").arg(room ? room.roomMemberCount : 0)
|
text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0)
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageButton {
|
ImageButton {
|
||||||
|
|
|
@ -17,6 +17,8 @@ ApplicationWindow {
|
||||||
|
|
||||||
modality: Qt.NonModal
|
modality: Qt.NonModal
|
||||||
flags: Qt.Dialog | Qt.WindowTitleHint
|
flags: Qt.Dialog | Qt.WindowTitleHint
|
||||||
|
width: 275
|
||||||
|
height: 220
|
||||||
minimumWidth: 250
|
minimumWidth: 250
|
||||||
minimumHeight: 220
|
minimumHeight: 220
|
||||||
|
|
||||||
|
|
|
@ -159,22 +159,25 @@ 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 {
|
|
||||||
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 {
|
TextArea {
|
||||||
id: roomTopic
|
id: roomTopic
|
||||||
property bool cut: implicitHeight > 100
|
property bool cut: implicitHeight > 100
|
||||||
|
|
Loading…
Reference in a new issue