moment/src/qml/SidePane/SidePane.qml

36 lines
725 B
QML
Raw Normal View History

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