19import Lomiri.Components 1.3
22import Dekko.Components 1.0
23import Dekko.Lomiri.Components 1.0
25import Dekko.Lomiri.Constants 1.0
29 pageHeader.title: qsTr("Message")
30 pageHeader.backAction: Action {
33 onTriggered: internalStack.pop()
35 pageHeader.state:
"custom"
38 pageHeader.showDivider: h.y !== 0
39 pageHeader.customComponent: Component {
44 topMargin: units.gu(1)
60 spacing: dekko.isSmallFF ? 0 :
Style.smallSpacing
65 width: dekko.isSmallFF ?
Style.largeSpacing : 0
67 height:
Style.defaultSpacing
68 width:
Style.defaultSpacing
69 visible: dekko.isSmallFF
72 horizontalCenter: parent.horizontalCenter
74 topMargin: units.gu(1.5)
77 onClicked: internalStack.pop()
84 height:
Style.defaultIconSize
85 width:
Style.defaultIconSize
86 name: Icons.MailReadIcon
88 horizontalCenter: parent.horizontalCenter
90 topMargin: units.gu(1.2)
99 height:
Style.defaultIconSize
100 width:
Style.defaultIconSize
101 name: Icons.ViewListSymbolic
103 horizontalCenter: parent.horizontalCenter
105 topMargin: units.gu(1.2)
110 height: parent.height
113 height:
Style.defaultIconSize
114 width:
Style.defaultIconSize
116 color: message.isJunk ? LomiriColors.red : LomiriColors.ash
118 horizontalCenter: parent.horizontalCenter
120 topMargin: units.gu(1.2)
128 height: parent.height
131 horizontalCenter: parent.horizontalCenter
134 height:
Style.defaultIconSize
135 width:
Style.defaultIconSize
136 name: message && message.isImportant ? Icons.StarredIcon : Icons.UnStarredIcon
137 color: message && message.isImportant ?
"#f0e442" :
"#888888"
139 horizontalCenter: parent.horizontalCenter
141 topMargin: units.gu(1.2)
144 onClicked: Client.markMessageImportant(message.messageId, !message.isImportant)
148 height: parent.height
153 layoutDirection: Qt.RightToLeft
154 spacing: dekko.isSmallFF ? 0 :
Style.smallSpacing
158 height: parent.height
161 height:
Style.defaultIconSize
162 width:
Style.defaultIconSize
163 name: Icons.ContextMenuIcon
165 horizontalCenter: parent.horizontalCenter
167 topMargin: units.gu(1.2)
173 height: parent.height
176 height:
Style.defaultIconSize
177 width:
Style.defaultIconSize
178 name: Icons.MailForwardIcon
180 horizontalCenter: parent.horizontalCenter
182 topMargin: units.gu(1.2)
187 height: parent.height
190 height:
Style.defaultIconSize
191 width:
Style.defaultIconSize
192 name: Icons.MailReplyAllIcon
194 horizontalCenter: parent.horizontalCenter
196 topMargin: units.gu(1.2)
201 height: parent.height
204 height:
Style.defaultIconSize
205 width:
Style.defaultIconSize
206 name: Icons.MailReplyIcon
208 horizontalCenter: parent.horizontalCenter
210 topMargin: units.gu(1.2)
219 property alias msgId: message.messageId
223 console.log(
"MainPartUrl: ", body)
224 webview.setCidQuery(message.messageId)
225 webview.setBodyUrl(body)
234 top: pageHeader.bottom
235 bottom: parent.bottom
241 leftMargin: !dekko.isSmallFF ? units.gu(1) : 0
245 locationBarController.mode: 0
246 locationBarController.height: h.height
252 y: webview ? webview.locationBarController.offset : 0