mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix properties
This commit is contained in:
parent
02326fce70
commit
cb8d140123
1 changed files with 9 additions and 8 deletions
|
@ -7,6 +7,7 @@ import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import QtQuick.Window 2.12
|
import QtQuick.Window 2.12
|
||||||
import im.nheko 1.0
|
import im.nheko 1.0
|
||||||
|
import "./ui"
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
id: roomMembersRoot
|
id: roomMembersRoot
|
||||||
|
@ -38,7 +39,7 @@ ApplicationWindow {
|
||||||
displayName: members.roomName
|
displayName: members.roomName
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
url: members.avatarUrl.replace("mxc://", "image://MxcImage/")
|
url: members.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||||
onClicked: TimelineManager.timeline.openRoomSettings(members.roomId)
|
onClicked: Rooms.currentRoom.openRoomSettings(members.roomId)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
@ -53,12 +54,12 @@ ApplicationWindow {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
ToolTip.text: qsTr("Invite more people")
|
ToolTip.text: qsTr("Invite more people")
|
||||||
onClicked: TimelineManager.timeline.openInviteUsersDialog()
|
onClicked: Rooms.currentRoom.openInviteUsersDialog()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
clip: false
|
clip: false
|
||||||
palette: colors
|
palette: Nheko.colors
|
||||||
padding: 10
|
padding: 10
|
||||||
ScrollBar.horizontal.visible: false
|
ScrollBar.horizontal.visible: false
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
@ -83,12 +84,12 @@ ApplicationWindow {
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
width: avatarSize
|
width: Nheko.avatarSize
|
||||||
height: avatarSize
|
height: Nheko.avatarSize
|
||||||
userid: model.mxid
|
userid: model.mxid
|
||||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||||
displayName: model.displayName
|
displayName: model.displayName
|
||||||
onClicked: TimelineManager.timeline.openUserProfile(model.mxid)
|
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
@ -96,13 +97,13 @@ ApplicationWindow {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: model.displayName
|
text: model.displayName
|
||||||
color: TimelineManager.userColor(model ? model.mxid : "", colors.window)
|
color: TimelineManager.userColor(model ? model.mxid : "", Nheko.colors.window)
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: model.mxid
|
text: model.mxid
|
||||||
color: colors.buttonText
|
color: Nheko.colors.buttonText
|
||||||
font.pointSize: 10
|
font.pointSize: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue