summaryrefslogtreecommitdiffstats
path: root/framework/qml/MailListView.qml
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-09-11 14:54:57 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-09-11 14:54:57 +0200
commit9a059cbeb0c7ce778ecccb4d01a94948ce937720 (patch)
treeb2465dbae6ac9251b1403031555be7ded2f2c950 /framework/qml/MailListView.qml
parent0fc4fc7f9b19499fe5922eddd84fce8f01badea2 (diff)
downloadkube-9a059cbeb0c7ce778ecccb4d01a94948ce937720.tar.gz
kube-9a059cbeb0c7ce778ecccb4d01a94948ce937720.zip
style mail list filter field and add close button
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r--framework/qml/MailListView.qml31
1 files changed, 28 insertions, 3 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index 94e591e7..042196e4 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -68,10 +68,35 @@ FocusScope {
68 68
69 spacing: 0 69 spacing: 0
70 70
71 Kube.TextField { 71 Rectangle {
72 id: filterField
72 Layout.fillWidth: true 73 Layout.fillWidth: true
73 placeholderText: "Filter..." 74 height: Kube.Units.gridUnit * 2
74 onTextChanged: mailListModel.filter = text 75
76 color: Kube.Colors.buttonColor
77
78 RowLayout {
79 anchors {
80 verticalCenter: parent.verticalCenter
81 }
82
83 width: parent.width - Kube.Units.smallSpacing
84 spacing: 0
85
86 Kube.IconButton {
87 iconName: Kube.Icons.remove
88 onClicked: {
89 filterField.visible = false
90 mailListModel.filter = ""
91 }
92 }
93
94 Kube.TextField {
95 Layout.fillWidth: true
96 placeholderText: "Filter..."
97 onTextChanged: mailListModel.filter = text
98 }
99 }
75 } 100 }
76 101
77 Kube.ListView { 102 Kube.ListView {