2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
2019-05-13 03:17:42 +10:00
|
|
|
import "../../Base"
|
|
|
|
|
2019-12-09 20:25:31 +11:00
|
|
|
HDrawer {
|
2019-05-13 03:17:42 +10:00
|
|
|
id: roomSidePane
|
2019-12-11 05:46:05 +11:00
|
|
|
objectName: "roomPane"
|
2019-12-09 20:25:31 +11:00
|
|
|
edge: Qt.RightEdge
|
2019-12-11 05:46:05 +11:00
|
|
|
defaultSize: buttonRepeater.childrenImplicitWidth
|
2019-12-11 05:19:25 +11:00
|
|
|
minimumSize:
|
2019-12-09 20:25:31 +11:00
|
|
|
buttonRepeater.count > 0 ? buttonRepeater.itemAt(0).implicitWidth : 0
|
2019-05-13 03:17:42 +10:00
|
|
|
|
2019-12-10 02:46:41 +11:00
|
|
|
background: HColumnLayout{
|
|
|
|
Rectangle {
|
|
|
|
color: theme.chat.roomSidePaneButtons.background
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.preferredHeight: theme.baseElementsHeight
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: theme.chat.roomSidePane.background
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-09 20:25:31 +11:00
|
|
|
HColumnLayout {
|
|
|
|
anchors.fill: parent
|
2019-07-13 08:15:06 +10:00
|
|
|
|
2019-12-09 20:25:31 +11:00
|
|
|
HFlow {
|
|
|
|
Layout.fillWidth: true
|
2019-07-13 08:15:06 +10:00
|
|
|
|
2019-12-09 20:25:31 +11:00
|
|
|
HRepeater {
|
|
|
|
id: buttonRepeater
|
|
|
|
model: [
|
|
|
|
"members", "files", "notifications", "history", "settings"
|
|
|
|
]
|
|
|
|
|
|
|
|
HButton {
|
|
|
|
height: theme.baseElementsHeight
|
|
|
|
backgroundColor: "transparent"
|
|
|
|
icon.name: "room-view-" + modelData
|
|
|
|
autoExclusive: true
|
|
|
|
checked: modelData === "members"
|
|
|
|
enabled: modelData === "members"
|
|
|
|
toolTip.text: qsTr(
|
|
|
|
modelData.charAt(0).toUpperCase() + modelData.slice(1)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MembersView {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
2019-05-13 03:17:42 +10:00
|
|
|
}
|
|
|
|
}
|