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