diff options
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r-- | framework/qml/ConversationView.qml | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index 0d71dde9..bdcd0aa0 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -254,7 +254,7 @@ Rectangle { | |||
254 | 254 | ||
255 | state: "small" | 255 | state: "small" |
256 | 256 | ||
257 | Text { | 257 | Kube.Label { |
258 | id: date_label | 258 | id: date_label |
259 | 259 | ||
260 | anchors { | 260 | anchors { |
@@ -265,7 +265,6 @@ Rectangle { | |||
265 | text: Qt.formatDateTime(model.date, "dd MMM yyyy hh:mm") | 265 | text: Qt.formatDateTime(model.date, "dd MMM yyyy hh:mm") |
266 | 266 | ||
267 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 | 267 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 |
268 | color: Kube.Colors.textColor | ||
269 | opacity: 0.75 | 268 | opacity: 0.75 |
270 | } | 269 | } |
271 | 270 | ||
@@ -289,40 +288,32 @@ Rectangle { | |||
289 | spacing: Kube.Units.smallSpacing | 288 | spacing: Kube.Units.smallSpacing |
290 | clip: true | 289 | clip: true |
291 | 290 | ||
292 | Text { | 291 | Kube.Label { |
293 | id: senderName | 292 | id: senderName |
294 | 293 | ||
295 | text: model.senderName | 294 | text: model.senderName |
296 | |||
297 | font.weight: Font.DemiBold | 295 | font.weight: Font.DemiBold |
298 | color: Kube.Colors.textColor | ||
299 | opacity: 0.75 | 296 | opacity: 0.75 |
300 | } | 297 | } |
301 | 298 | ||
302 | Text { | 299 | Kube.Label { |
300 | width: parent.width - senderName.width - date_label.width - Kube.Units.largeSpacing | ||
303 | 301 | ||
304 | text: model.sender | ||
305 | 302 | ||
306 | width: parent.width - senderName.width - date_label.width - Kube.Units.largeSpacing | 303 | text: model.sender |
307 | elide: Text.ElideRight | 304 | elide: Text.ElideRight |
308 | |||
309 | color: Kube.Colors.textColor | ||
310 | opacity: 0.75 | 305 | opacity: 0.75 |
311 | |||
312 | clip: true | 306 | clip: true |
313 | } | 307 | } |
314 | } | 308 | } |
315 | 309 | ||
316 | Text { | 310 | Kube.Label { |
317 | id: subject | 311 | id: subject |
318 | 312 | ||
319 | width: to.width | 313 | width: to.width |
320 | 314 | ||
321 | text: model.subject | 315 | text: model.subject |
322 | |||
323 | elide: Text.ElideRight | 316 | elide: Text.ElideRight |
324 | |||
325 | color: Kube.Colors.textColor | ||
326 | opacity: 0.75 | 317 | opacity: 0.75 |
327 | font.italic: true | 318 | font.italic: true |
328 | states: [ | 319 | states: [ |
@@ -341,52 +332,43 @@ Rectangle { | |||
341 | ] | 332 | ] |
342 | } | 333 | } |
343 | 334 | ||
344 | Text { | 335 | Kube.Label { |
345 | id: recipients | 336 | id: recipients |
346 | 337 | ||
347 | width: parent.width - goDown.width - Kube.Units.smallSpacing | 338 | width: parent.width - goDown.width - Kube.Units.smallSpacing |
348 | 339 | ||
349 | text:"to: "+ model.to + " " + model.cc + " " + model.bcc | 340 | text:"to: "+ model.to + " " + model.cc + " " + model.bcc |
350 | |||
351 | elide: Text.ElideRight | 341 | elide: Text.ElideRight |
352 | |||
353 | color: Kube.Colors.textColor | ||
354 | opacity: 0.75 | 342 | opacity: 0.75 |
355 | } | 343 | } |
356 | 344 | ||
357 | Text { | 345 | Kube.Label { |
358 | id: to | 346 | id: to |
359 | 347 | ||
360 | width: parent.width - goDown.width - Kube.Units.smallSpacing | 348 | width: parent.width - goDown.width - Kube.Units.smallSpacing |
361 | 349 | ||
362 | text:"to: " + model.to | 350 | text:"to: " + model.to |
363 | |||
364 | wrapMode: Text.WordWrap | 351 | wrapMode: Text.WordWrap |
365 | color: Kube.Colors.textColor | ||
366 | opacity: 0.75 | 352 | opacity: 0.75 |
367 | } | 353 | } |
368 | 354 | ||
369 | Text { | 355 | Kube.Label { |
370 | id: cc | 356 | id: cc |
371 | 357 | ||
372 | width: parent.width - goDown.width - Kube.Units.smallSpacing | 358 | width: parent.width - goDown.width - Kube.Units.smallSpacing |
373 | 359 | ||
374 | text:"cc: " + model.cc | 360 | text:"cc: " + model.cc |
375 | |||
376 | wrapMode: Text.WordWrap | 361 | wrapMode: Text.WordWrap |
377 | color: Kube.Colors.textColor | ||
378 | opacity: 0.75 | 362 | opacity: 0.75 |
379 | } | 363 | } |
380 | 364 | ||
381 | Text { | 365 | Kube.Label { |
382 | id: bcc | 366 | id: bcc |
383 | 367 | ||
384 | width: parent.width - goDown.width - Kube.Units.smallSpacing | 368 | width: parent.width - goDown.width - Kube.Units.smallSpacing |
385 | 369 | ||
386 | text:"bcc: " + model.bcc | 370 | text:"bcc: " + model.bcc |
387 | |||
388 | wrapMode: Text.WordWrap | 371 | wrapMode: Text.WordWrap |
389 | color: Kube.Colors.textColor | ||
390 | opacity: 0.75 | 372 | opacity: 0.75 |
391 | } | 373 | } |
392 | 374 | ||
@@ -481,7 +463,7 @@ Rectangle { | |||
481 | visible: !model.incomplete | 463 | visible: !model.incomplete |
482 | } | 464 | } |
483 | 465 | ||
484 | Label { | 466 | Kube.Label { |
485 | id: incompleteBody | 467 | id: incompleteBody |
486 | anchors { | 468 | anchors { |
487 | top: header.bottom | 469 | top: header.bottom |
@@ -514,7 +496,7 @@ Rectangle { | |||
514 | height: Kube.Units.gridUnit * 2 | 496 | height: Kube.Units.gridUnit * 2 |
515 | width: parent.width | 497 | width: parent.width |
516 | 498 | ||
517 | Text { | 499 | Kube.Label { |
518 | anchors{ | 500 | anchors{ |
519 | verticalCenter: parent.verticalCenter | 501 | verticalCenter: parent.verticalCenter |
520 | left: parent.left | 502 | left: parent.left |
@@ -527,7 +509,6 @@ Rectangle { | |||
527 | } | 509 | } |
528 | 510 | ||
529 | text: model.trash ? qsTr("Delete Mail") : qsTr("Move to trash") | 511 | text: model.trash ? qsTr("Delete Mail") : qsTr("Move to trash") |
530 | color: Kube.Colors.textColor | ||
531 | opacity: 0.5 | 512 | opacity: 0.5 |
532 | enabled: model.trash ? mailController.removeAction.enabled : mailController.moveToTrashAction.enabled | 513 | enabled: model.trash ? mailController.removeAction.enabled : mailController.moveToTrashAction.enabled |
533 | MouseArea { | 514 | MouseArea { |