19import QtQuick.Layouts 1.1
20import Lomiri.Components 1.3
21import Dekko.Components 1.0
23import Dekko.Lomiri.Components 1.0
24import Dekko.Mail.API 1.0
25import Dekko.Lomiri.Constants 1.0
32 height: dekko.isSmallFF ? units.gu(6) : units.gu(9.075)
39 property bool showBack: dekko.isSmallFF
50 width: showBack ? units.gu(4) : 0
55 ViewActions.popStageArea(ViewKeys.messageListStack)
56 ViewActions.delayCall(
'resetSelectedMsgIndex')
64 left: inner_button.right
65 leftMargin: showBack ? 0 :
Style.defaultSpacing
67 topMargin: units.gu(1.5)
68 right: starButton.left
69 rightMargin:
Style.smallSpacing
73 elide: Text.ElideRight
74 font.weight: Font.Light
82 topMargin:
Style.smallSpacing
83 right: starButton.left
84 rightMargin:
Style.smallSpacing
91 elide: Text.ElideRight
92 visible: !dekko.isSmallFF
93 font.weight: Font.Normal
101 right: deleteButton.left
106 iconColor: msg.isImportant ?
"#f0e442" :
"#888888"
108 iconSource: msg.isImportant ? Paths.actionIconUrl(Icons.StarredIcon) : Paths.actionIconUrl(Icons.UnStarredIcon)
109 onTriggered: MessageActions.markMessageImportant(msg.messageId, !msg.isImportant)
117 rightMargin:
Style.smallSpacing
126 if (dekko.isSmallFF) {
127 ViewActions.popStageArea(ViewKeys.messageListStack)
128 ViewActions.delayCall(
'resetSelectedMsgIndex')
129 ViewActions.delayCallWithArgs(
'deleteMessage', {msgId: msg.messageId})
131 MessageActions.deleteMessage(msg.messageId)
142 bottom: header.bottom