moment/src/gui/MainPane/MainPane.qml

58 lines
1.2 KiB
QML
Raw Normal View History

2019-12-19 22:46:16 +11:00
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Layouts 1.12
import "../Base"
HDrawer {
2019-12-11 06:17:41 +11:00
id: mainPane
saveName: "mainPane"
2020-04-28 13:49:36 +10:00
background: null
2020-05-13 21:37:39 +10:00
minimumSize: theme.controls.avatar.size + theme.spacing * 2
2020-05-13 21:37:39 +10:00
readonly property alias accountsBar: accountsBar
readonly property alias roomList: roomList
readonly property alias filterRoomsField: filterRoomsField
2019-12-16 19:42:41 +11:00
Behavior on opacity { HNumberAnimation {} }
Binding on visible {
value: false
when: ! mainUI.accountsPresent
}
2020-05-13 21:37:39 +10:00
HColumnLayout {
anchors.fill: parent
2020-05-13 21:37:39 +10:00
TopBar {
Layout.fillWidth: true
Layout.preferredHeight: theme.baseElementsHeight
}
AccountsBar {
2020-05-13 21:37:39 +10:00
id: accountsBar
roomList: roomList
2020-05-13 21:37:39 +10:00
Layout.fillWidth: true
Layout.maximumHeight: parent.height / 3
}
2020-05-13 21:37:39 +10:00
RoomList {
id: roomList
clip: true
filter: filterRoomsField.text
2020-05-13 21:37:39 +10:00
Layout.fillWidth: true
Layout.fillHeight: true
}
2020-05-13 21:37:39 +10:00
FilterRoomsField {
id: filterRoomsField
roomList: roomList
2020-05-13 21:37:39 +10:00
Layout.fillWidth: true
}
}
}