20import Lomiri.Components 1.3
21import Lomiri.Components.ListItems 1.0 as ListItem
22import Dekko.Mail.API 1.0
33 property bool enabled: false
34 default property alias data: content.data
36 property Action action: Action {
38 iconName: "navigation-menu"
39 onTriggered: accountsDrawer.opened ? accountsDrawer.close() : accountsDrawer.open()
42 property int maxHeight
44 function delayClose() {
45 delayCloseTimer.start()
50 type: ViewKeys.toggleNavDrawer
51 onDispatched: accountsDrawer.opened ? accountsDrawer.close() : accountsDrawer.open()
54 type: MessageKeys.openFolder
56 if (accountsDrawer.opened) {
57 accountsDrawer.delayClose()
63 type: ViewKeys.closeNavDrawer
65 if (accountsDrawer.opened) {
75 acceptedButtons: Qt.LeftButton | Qt.RightButton
76 onClicked: mouse.accepted =
true
77 onWheel: wheel.accepted =
true
84 onTriggered: accountsDrawer.close()
87 visible: opened || animating
88 align: Qt.AlignLeading
91 visible: accountsDrawer.opened
93 acceptedButtons: Qt.LeftButton
94 onPressed: accountsDrawer.close()
103 bottom: parent.bottom
108 GradientStop { position: 0.0; color: Qt.rgba(0, 0, 0, 0.1) }
109 GradientStop { position: 1.0; color:
"transparent" }