6import QtQuick.Controls as QQC2
7import org.kde.kirigami as Kirigami
55 default property alias drawerContentItem: drawerContent.contentItem
62 property alias headerContentItem: headerContent.contentItem
64 component Handle: Rectangle {
65 color: Kirigami.Theme.textColor
69 implicitWidth: Math.round(Kirigami.Units.gridUnit * 2.5)
70 implicitHeight: Math.round(Kirigami.Units.gridUnit / 4)
72 Layout.margins: Kirigami.Units.mediumSpacing
73 Layout.alignment: Qt.AlignHCenter
77 width: applicationWindow().width
78 height: Math.min(contentItem.implicitHeight, Math.round(applicationWindow().height * 0.8))
83 background: Kirigami.ShadowedRectangle {
85 topRightRadius: Kirigami.Units.largeSpacing
86 topLeftRadius: Kirigami.Units.largeSpacing
90 size: Kirigami.Units.gridUnit
91 color: Qt.rgba(0, 0, 0, 0.5)
94 color: Kirigami.Theme.backgroundColor
97 onAboutToShow: root.interactive = true
98 onClosed: root.interactive = false
100 contentItem: ColumnLayout {
103 Kirigami.ShadowedRectangle {
106 visible: headerContentItem
107 height: header.implicitHeight
109 Kirigami.Theme.colorSet: Kirigami.Theme.Window
110 color: Kirigami.Theme.backgroundColor
112 Layout.fillWidth: true
135 leftPadding: Kirigami.Units.mediumSpacing + handle.height
136 rightPadding: Kirigami.Units.mediumSpacing + handle.height
137 bottomPadding: Kirigami.Units.mediumSpacing + handle.height
139 Layout.fillHeight: true
140 Layout.fillWidth: true
147 visible: !headerContentItem
148 Layout.topMargin: Kirigami.Units.largeSpacing
149 Layout.bottomMargin: Kirigami.Units.largeSpacing
153 Layout.fillWidth: true
159 Layout.fillWidth: true
160 Layout.fillHeight: true
167 background: Rectangle {
168 Kirigami.Theme.colorSet: Kirigami.Theme.View
169 Kirigami.Theme.inherit: false
170 color: Kirigami.Theme.backgroundColor