2 import QtQuick.Controls.Suru 2.2
3 import Lomiri.Components 1.3
4 import
Dekko.Components 1.0
6 import
Dekko.Mail.API 1.0
7 import
Dekko.Mail.Stores.Composer 1.0
10 import
Dekko.Lomiri.Components 1.0
11 import
Dekko.Lomiri.Constants 1.0
12 import
Dekko.Lomiri.Helpers 1.0
13 import
"../components"
29 implicitHeight: height
30 color: Suru.secondaryBackgroundColor
34 anchors.leftMargin: units.gu(1)
35 anchors.rightMargin: units.gu(1)
37 readonly
property bool textVisible: composer.width > units.gu(60)
40 anchors.verticalCenter: parent.verticalCenter
41 action: ComposerStore.actions.discardMessageAction
42 showLabel: row.textVisible
46 anchors.verticalCenter: parent.verticalCenter
47 visible: ComposerStore.hasValidIdentity
48 action: ComposerStore.actions.saveDraftAction
49 showLabel: row.textVisible
54 anchors.verticalCenter: parent.verticalCenter
57 iconName: Icons.AttachmentIcon
58 iconSource: Paths.actionIconUrl(Icons.AttachmentIcon)
59 onTriggered: ContentActions.pickFile(composer)
61 showLabel: row.textVisible
68 anchors.verticalCenter: parent.verticalCenter
69 visible: ComposerStore.hasValidIdentity
70 action: ComposerStore.actions.sendAction
71 showLabel: row.textVisible
92 implicitHeight: parent.height - attachmentPanel.height
101 attachments: ComposerStore.attachments
105 bottom: parent.bottom
108 maxHeight: parent.height / 2