Library system base

This commit is contained in:
Chris Cochrun 2022-02-15 11:13:28 -06:00
parent 0d71e53ec6
commit e6db4cd395
6 changed files with 379 additions and 673 deletions

View file

@ -4,20 +4,20 @@ import QtQuick.Layouts 1.2
import org.kde.kirigami 2.13 as Kirigami
Item {
id: root
default property var contentItem: null
property string title: "panel"
id: root
property bool current: false
Layout.fillWidth: true
height: 30
Layout.fillHeight: current
property bool current: false
ColumnLayout {
anchors.fill: parent
spacing: 0
Rectangle {
id: bar
Layout.fillWidth: true
height: 30
height: 40
color: root.current ? Kirigami.Theme.highlightColor : Kirigami.Theme.backgroundColor
Controls.Label {
anchors.fill: parent
@ -37,6 +37,9 @@ Item {
verticalAlignment: Text.AlignVCenter
text: "^"
rotation: root.current ? "180" : 0
Behavior on rotation {
PropertyAnimation { duration: 100 }
}
}
MouseArea {
anchors.fill: parent