moment/src/qml/SidePane/SidePane.qml

36 lines
733 B
QML
Raw Normal View History

2019-07-08 13:52:41 +10:00
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../Base"
HRectangle {
id: sidePane
2019-04-29 01:01:38 +10:00
2019-07-12 12:25:50 +10:00
// Avoid artifacts when collapsed
clip: true
property bool collapsed: false
property int normalSpacing: 8
readonly property int currentSpacing: collapsed ? 0 : normalSpacing
HColumnLayout {
anchors.fill: parent
AccountList {
Layout.fillWidth: true
Layout.fillHeight: true
2019-07-13 07:06:37 +10:00
spacing: currentSpacing
bottomMargin: currentSpacing
Behavior on spacing { HNumberAnimation {} }
}
PaneToolBar {
id: paneToolBar
}
}
}