import QtQuick 2.6
import QtQuick.Controls 2.3
import trinity.matrix 1.0
Popup {
id: profilePopup
width: 500
height: 256
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
modal: true
property var member
RoundedImage {
id: profileAvatar
width: 64
height: 64
source: member.avatarURL ? member.avatarURL : "placeholder.png"
}
Text {
id: profileNameLabel
anchors.verticalCenter: profileAvatar.verticalCenter
anchors.left: profileAvatar.right
anchors.leftMargin: 15
text: member.displayName
font.pointSize: 22
color: myPalette.text
id: profileIdLabel
anchors.verticalCenter: profileNameLabel.verticalCenter
anchors.left: profileNameLabel.right
anchors.leftMargin: 10
text: member.id
color: myPalette.dark
id: roleText
anchors.top: profileIdLabel.bottom
anchors.topMargin: 5
text: "Member Role Placeholder"
Button {
id: directMessageButton
anchors.right: hamburgerButton.left
anchors.rightMargin: 10
text: "Direct message"
id: hamburgerButton
anchors.right: parent.right
anchors.rightMargin: 15
text: "..."
TabBar {
width: parent.width
anchors.top: profileAvatar.bottom
anchors.topMargin: 15
id: profileTabs
TabButton {
text: "Security"
text: "Sessions"
SwipeView {
interactive: false
height: parent.height - profileNameLabel.height - profileTabs.height
anchors.top: profileTabs.bottom
currentIndex: profileTabs.currentIndex
Item {
id: sessionsTab