moment/src/gui/MainPane/MainPane.qml

56 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
// minimumSize: bottomBar.addAccountButton.width
readonly property alias accountBar: accountBar
readonly property alias roomList: roomList
readonly property alias filterRoomsField: filterRoomsField
readonly property bool small:
width < theme.controls.avatar.size + theme.spacing * 2
2019-12-16 19:42:41 +11:00
Behavior on opacity { HNumberAnimation {} }
Binding on visible {
value: false
when: ! mainUI.accountsPresent
}
HRowLayout {
anchors.fill: parent
AccountsBar {
id: accountBar
roomList: roomList
Layout.fillWidth: false
}
HColumnLayout {
RoomList {
id: roomList
clip: true
Layout.fillWidth: true
Layout.fillHeight: true
}
FilterRoomsField {
id: filterRoomsField
roomList: roomList
Layout.fillWidth: true
}
}
}
}