summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/ComposerView.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml
index 7bc3b061..cfc0e392 100644
--- a/components/kube/contents/ui/ComposerView.qml
+++ b/components/kube/contents/ui/ComposerView.qml
@@ -167,6 +167,8 @@ Kube.View {
167 167
168 PropertyChanges {target: background; color: Kube.Colors.highlightColor; opacity: 0.6} 168 PropertyChanges {target: background; color: Kube.Colors.highlightColor; opacity: 0.6}
169 PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} 169 PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor}
170 PropertyChanges {target: date; visible: false}
171 PropertyChanges {target: buttons; visible: true}
170 } 172 }
171 ] 173 ]
172 174
@@ -218,6 +220,29 @@ Kube.View {
218 font.pointSize: 9 220 font.pointSize: 9
219 } 221 }
220 } 222 }
223 Row {
224 id: buttons
225
226 property bool containsMouse: deleteButton.hovered
227
228 anchors {
229 right: parent.right
230 bottom: parent.bottom
231 margins: Kube.Units.smallSpacing
232 }
233
234 visible: false
235 spacing: Kube.Units.smallSpacing
236 opacity: 0.7
237
238 Kube.IconButton {
239 id: deleteButton
240 iconName: Kube.Icons.moveToTrash
241 visible: enabled
242 enabled: !!model.mail
243 onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.mail})
244 }
245 }
221 } 246 }
222 } 247 }
223 } 248 }