moment/src/gui/MainPane/MainPane.qml

57 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-05-13 22:03:50 +10:00
background: theme.mainPane.background
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
2020-05-13 22:03:50 +10:00
readonly property alias bottomBar: bottomBar
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
}
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
2020-05-13 22:03:50 +10:00
filter: bottomBar.filterField.text
2020-05-13 21:37:39 +10:00
Layout.fillWidth: true
Layout.fillHeight: true
}
2020-05-13 22:03:50 +10:00
BottomBar {
id: bottomBar
2020-05-13 21:37:39 +10:00
roomList: roomList
2020-05-13 21:37:39 +10:00
Layout.fillWidth: true
}
}
}