moment/src/gui/MainPane/MainPane.qml

45 lines
873 B
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
// property alias filter: bottomBar.roomFilter
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
accountView: accView
Layout.fillWidth: false
}
AccountView {
id: accView
currentIndex: 0
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}