2019-12-19 22:46:16 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
2019-04-29 05:18:36 +10:00
|
|
|
import "../Base"
|
2019-03-26 18:19:55 +11:00
|
|
|
|
2019-12-09 05:43:41 +11:00
|
|
|
HDrawer {
|
2019-12-11 06:17:41 +11:00
|
|
|
id: mainPane
|
2019-12-11 07:29:49 +11:00
|
|
|
saveName: "mainPane"
|
2020-04-28 13:49:36 +10:00
|
|
|
background: null
|
2020-04-27 04:20:45 +10:00
|
|
|
// minimumSize: bottomBar.addAccountButton.width
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2020-04-30 04:00:02 +10:00
|
|
|
readonly property alias accountBar: accountBar
|
|
|
|
readonly property alias roomList: roomList
|
|
|
|
readonly property alias filterRoomsField: filterRoomsField
|
2020-03-13 14:17:23 +11:00
|
|
|
|
|
|
|
readonly property bool small:
|
|
|
|
width < theme.controls.avatar.size + theme.spacing * 2
|
|
|
|
|
2019-08-21 03:41:55 +10:00
|
|
|
|
2019-12-16 19:42:41 +11:00
|
|
|
Behavior on opacity { HNumberAnimation {} }
|
2019-12-09 05:43:41 +11:00
|
|
|
|
2019-12-12 04:03:33 +11:00
|
|
|
Binding on visible {
|
2019-12-10 19:18:17 +11:00
|
|
|
value: false
|
|
|
|
when: ! mainUI.accountsPresent
|
|
|
|
}
|
|
|
|
|
2020-04-27 04:20:45 +10:00
|
|
|
HRowLayout {
|
2019-03-26 18:19:55 +11:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2020-04-28 12:40:04 +10:00
|
|
|
AccountsBar {
|
2020-04-27 04:20:45 +10:00
|
|
|
id: accountBar
|
2020-04-30 04:00:02 +10:00
|
|
|
roomList: roomList
|
2020-03-13 14:17:23 +11:00
|
|
|
|
2020-04-27 04:20:45 +10:00
|
|
|
Layout.fillWidth: false
|
2020-03-13 13:16:33 +11:00
|
|
|
}
|
|
|
|
|
2020-04-30 04:00:02 +10:00
|
|
|
HColumnLayout {
|
|
|
|
RoomList {
|
|
|
|
id: roomList
|
|
|
|
clip: true
|
2019-08-18 17:27:00 +10:00
|
|
|
|
2020-04-30 04:00:02 +10:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
|
|
|
|
FilterRoomsField {
|
|
|
|
id: filterRoomsField
|
|
|
|
roomList: roomList
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
2019-03-26 18:19:55 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|