summaryrefslogtreecommitdiffstats
path: root/components/package/contents
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-01-10 15:07:19 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-01-10 15:07:19 +0100
commitf3a34f2163bea1186b5c54379ec67988805edf42 (patch)
tree1681fbc92e067869ebff15c9f24aee47273d4e04 /components/package/contents
parent229492f0550730a62d74935e45087683cb5f88e9 (diff)
downloadkube-f3a34f2163bea1186b5c54379ec67988805edf42.tar.gz
kube-f3a34f2163bea1186b5c54379ec67988805edf42.zip
remove cicles
Diffstat (limited to 'components/package/contents')
-rw-r--r--components/package/contents/ui/MailListView.qml58
1 files changed, 24 insertions, 34 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index 68db1c43..13e697ae 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -89,7 +89,7 @@ Item {
89 } 89 }
90 } 90 }
91 91
92 ListView { 92 ListView {
93 id: listView 93 id: listView
94 94
95 anchors.top: toolbar.bottom 95 anchors.top: toolbar.bottom
@@ -152,32 +152,38 @@ Item {
152 } 152 }
153 153
154 //TODO implement bulk action 154 //TODO implement bulk action
155 // Controls.CheckBox { 155// CheckBox {
156 // visible: mailListDelegate.containsMouse == true 156// id: checkBox
157 // } 157//
158// anchors.verticalCenter: parent.verticalCenter
159//
160// visible: mailListDelegate.containsMouse == true || checked
161// }
158 162
159 Column { 163 Column {
164 id: mainContent
165
160 anchors { 166 anchors {
161 verticalCenter: parent.verticalCenter 167 verticalCenter: parent.verticalCenter
162 left: parent.left 168 left: parent.left
163 leftMargin: Kirigami.Units.largeSpacing 169 leftMargin: Kirigami.Units.largeSpacing
164 } 170 }
165 171
166 Text{ 172 Text{
167 text: model.subject 173 text: model.subject
168 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor 174 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor
169 175
170 maximumLineCount: 2 176 maximumLineCount: 2
171 width: mailListDelegate.width - Kirigami.Units.gridUnit * 3 177 width: mailListDelegate.width - Kirigami.Units.largeSpacing * 2 - unreadCounter.width
172 wrapMode: Text.WrapAnywhere 178 wrapMode: Text.Wrap
173 elide: Text.ElideRight 179 elide: Text.ElideRight
174 } 180 }
175 181
176 Text { 182 Text {
177 text: model.senderName 183 text: model.senderName
178 font.italic: true 184 font.italic: true
179 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor 185 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
180 width: mailListDelegate.width - Kirigami.Units.gridUnit * 3 186 width: mailListDelegate.width - Kirigami.Units.large
181 elide: Text.ElideRight 187 elide: Text.ElideRight
182 } 188 }
183 } 189 }
@@ -193,32 +199,16 @@ Item {
193 font.pointSize: 9 199 font.pointSize: 9
194 } 200 }
195 201
202 Text {
203 id: unreadCounter
196 204
197 Item {
198 anchors { 205 anchors {
199 right: parent.right 206 right: parent.right
200 } 207 }
208 font.italic: true
201 209
202 height: Kirigami.Units.gridUnit * 1.2 210 text: model.threadSize
203 width: height 211 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.disabledTextColor
204
205 visible: !mailListDelegate.checked
206
207 Rectangle {
208 anchors.fill: parent
209
210 opacity: model.unread ? 1 : 0.5
211 radius: 80
212 color: model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.disabledTextColor
213 }
214
215 Text {
216 anchors.centerIn: parent
217
218 text: model.threadSize
219 color: Kirigami.Theme.highlightedTextColor
220 }
221
222 } 212 }
223 } 213 }
224 } 214 }