2import QtQuick.Controls.Suru 2.2
3import Lomiri.Components 1.3
4import Lomiri.Components.Popups 1.3
5import Dekko.Components 1.0
7import Dekko.Mail.API 1.0
8import Dekko.Mail.Stores.Composer 1.0
11import Dekko.Lomiri.Components 1.0
12import Dekko.Lomiri.Constants 1.0
13import Dekko.Lomiri.Helpers 1.0
30 implicitHeight: height
31 color: Suru.secondaryBackgroundColor
35 anchors.leftMargin: units.gu(1)
36 anchors.rightMargin: units.gu(1)
38 readonly
property bool textVisible: composer.width > units.gu(60)
41 anchors.verticalCenter: parent.verticalCenter
42 action: ComposerStore.actions.discardMessageAction
43 showLabel: row.textVisible
47 anchors.verticalCenter: parent.verticalCenter
48 visible: ComposerStore.hasValidIdentity
49 action: ComposerStore.actions.saveDraftAction
50 showLabel: row.textVisible
55 anchors.verticalCenter: parent.verticalCenter
58 iconName: Icons.AttachmentIcon
59 iconSource: Paths.actionIconUrl(Icons.AttachmentIcon)
60 onTriggered: ContentActions.pickFile(composer)
62 showLabel: row.textVisible
67 anchors.verticalCenter: parent.verticalCenter
69 text: qsTr(
"Contacts")
71 onTriggered: PopupUtils.open(Qt.resolvedUrl(
"./ComposerOverflowMenu.qml"), composer)
73 showLabel: row.textVisible
78 anchors.verticalCenter: parent.verticalCenter
79 action: ComposerStore.actions.toggleComposeModeAction
80 showLabel: row.textVisible
87 anchors.verticalCenter: parent.verticalCenter
88 visible: ComposerStore.hasValidIdentity
89 action: ComposerStore.actions.sendAction
90 showLabel: row.textVisible
111 implicitHeight: parent.height - attachmentPanel.height
120 attachments: ComposerStore.attachments
124 bottom: parent.bottom
127 maxHeight: parent.height / 2