summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/ConversationView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-04 07:22:50 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-04 15:19:55 +0200
commit4c1f62bceff8db26da6d0354b29438c3294e2522 (patch)
tree9dd8271742e8974fea248ae12659e05111d07d6e /components/package/contents/ui/ConversationView.qml
parent65362ba42ac14f718b36b8e527f1d14605fd1761 (diff)
downloadkube-4c1f62bceff8db26da6d0354b29438c3294e2522.tar.gz
kube-4c1f62bceff8db26da6d0354b29438c3294e2522.zip
use theme
Diffstat (limited to 'components/package/contents/ui/ConversationView.qml')
-rw-r--r--components/package/contents/ui/ConversationView.qml64
1 files changed, 32 insertions, 32 deletions
diff --git a/components/package/contents/ui/ConversationView.qml b/components/package/contents/ui/ConversationView.qml
index 728b81de..4196ebbd 100644
--- a/components/package/contents/ui/ConversationView.qml
+++ b/components/package/contents/ui/ConversationView.qml
@@ -84,13 +84,13 @@ Rectangle {
84 } 84 }
85 85
86 header: Item { 86 header: Item {
87 height: Kirigami.Units.gridUnit * 0.5 87 height: KubeTheme.Units.gridUnit * 0.5
88 width: parent.width 88 width: parent.width
89 89
90 } 90 }
91 91
92 footer: Item { 92 footer: Item {
93 height: Kirigami.Units.gridUnit 93 height: KubeTheme.Units.gridUnit
94 width: parent.width 94 width: parent.width
95 } 95 }
96 96
@@ -185,14 +185,14 @@ Rectangle {
185 } 185 }
186 } 186 }
187 187
188 height: sheet.height + Kirigami.Units.gridUnit 188 height: sheet.height + KubeTheme.Units.gridUnit
189 width: parent.width 189 width: parent.width
190 190
191 Rectangle { 191 Rectangle {
192 id: sheet 192 id: sheet
193 anchors.centerIn: parent 193 anchors.centerIn: parent
194 implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kirigami.Units.largeSpacing 194 implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + KubeTheme.Units.largeSpacing
195 width: parent.width - Kirigami.Units.gridUnit * 2 195 width: parent.width - KubeTheme.Units.gridUnit * 2
196 196
197 //Overlay for non-active mails 197 //Overlay for non-active mails
198 Rectangle { 198 Rectangle {
@@ -213,10 +213,10 @@ Rectangle {
213 top: parent.top 213 top: parent.top
214 left: parent.left 214 left: parent.left
215 right: parent.right 215 right: parent.right
216 margins: Kirigami.Units.largeSpacing 216 margins: KubeTheme.Units.largeSpacing
217 } 217 }
218 218
219 height: headerContent.height + Kirigami.Units.smallSpacing 219 height: headerContent.height + KubeTheme.Units.smallSpacing
220 220
221 states: [ 221 states: [
222 State { 222 State {
@@ -262,7 +262,7 @@ Rectangle {
262 horizontalCenter: parent.horizontalCenter 262 horizontalCenter: parent.horizontalCenter
263 } 263 }
264 264
265 //spacing: Kirigami.Units.smallSpacing 265 //spacing: KubeTheme.Units.smallSpacing
266 266
267 width: parent.width 267 width: parent.width
268 268
@@ -271,7 +271,7 @@ Rectangle {
271 271
272 width: parent.width 272 width: parent.width
273 273
274 spacing: Kirigami.Units.smallSpacing 274 spacing: KubeTheme.Units.smallSpacing
275 clip: true 275 clip: true
276 276
277 Text { 277 Text {
@@ -288,7 +288,7 @@ Rectangle {
288 288
289 text: model.sender 289 text: model.sender
290 290
291 width: parent.width - senderName.width - date_label.width - Kirigami.Units.largeSpacing 291 width: parent.width - senderName.width - date_label.width - KubeTheme.Units.largeSpacing
292 elide: Text.ElideRight 292 elide: Text.ElideRight
293 293
294 color: KubeTheme.Colors.textColor 294 color: KubeTheme.Colors.textColor
@@ -315,7 +315,7 @@ Rectangle {
315 Text { 315 Text {
316 id: recipients 316 id: recipients
317 317
318 width: parent.width - goDown.width - Kirigami.Units.smallSpacing 318 width: parent.width - goDown.width - KubeTheme.Units.smallSpacing
319 319
320 text:"to: "+ model.to + " " + model.cc + " " + model.bcc 320 text:"to: "+ model.to + " " + model.cc + " " + model.bcc
321 321
@@ -328,7 +328,7 @@ Rectangle {
328 Text { 328 Text {
329 id: to 329 id: to
330 330
331 width: parent.width - goDown.width - Kirigami.Units.smallSpacing 331 width: parent.width - goDown.width - KubeTheme.Units.smallSpacing
332 332
333 text:"to: " + model.to 333 text:"to: " + model.to
334 334
@@ -340,7 +340,7 @@ Rectangle {
340 Text { 340 Text {
341 id: cc 341 id: cc
342 342
343 width: parent.width - goDown.width - Kirigami.Units.smallSpacing 343 width: parent.width - goDown.width - KubeTheme.Units.smallSpacing
344 344
345 text:"cc: " + model.cc 345 text:"cc: " + model.cc
346 346
@@ -352,7 +352,7 @@ Rectangle {
352 Text { 352 Text {
353 id: bcc 353 id: bcc
354 354
355 width: parent.width - goDown.width - Kirigami.Units.smallSpacing 355 width: parent.width - goDown.width - KubeTheme.Units.smallSpacing
356 356
357 text:"bcc: " + model.bcc 357 text:"bcc: " + model.bcc
358 358
@@ -369,7 +369,7 @@ Rectangle {
369 right: seperator.right 369 right: seperator.right
370 } 370 }
371 371
372 height: Kirigami.Units.gridUnit 372 height: KubeTheme.Units.gridUnit
373 width: height 373 width: height
374 374
375 color: KubeTheme.Colors.backgroundColor 375 color: KubeTheme.Colors.backgroundColor
@@ -377,7 +377,7 @@ Rectangle {
377 Controls1.ToolButton { 377 Controls1.ToolButton {
378 anchors.fill: parent 378 anchors.fill: parent
379 379
380 iconName: "go-down" 380 iconName: KubeTheme.Icons.goDown
381 } 381 }
382 } 382 }
383 383
@@ -387,7 +387,7 @@ Rectangle {
387 right: seperator.right 387 right: seperator.right
388 } 388 }
389 389
390 height: Kirigami.Units.gridUnit 390 height: KubeTheme.Units.gridUnit
391 width: height 391 width: height
392 392
393 color: KubeTheme.Colors.backgroundColor 393 color: KubeTheme.Colors.backgroundColor
@@ -395,7 +395,7 @@ Rectangle {
395 Controls1.ToolButton { 395 Controls1.ToolButton {
396 anchors.fill: parent 396 anchors.fill: parent
397 397
398 iconName: header.state === "details" ? "go-up" : "go-down" 398 iconName: header.state === "details" ? KubeTheme.Icons.goUp : KubeTheme.Icons.goDown
399 399
400 onClicked: { 400 onClicked: {
401 header.state === "details" ? header.state = "small" : header.state = "details" 401 header.state === "details" ? header.state = "small" : header.state = "details"
@@ -425,14 +425,14 @@ Rectangle {
425 425
426 anchors { 426 anchors {
427 top: header.bottom 427 top: header.bottom
428 topMargin: Kirigami.Units.smallSpacing 428 topMargin: KubeTheme.Units.smallSpacing
429 right: header.right 429 right: header.right
430 } 430 }
431 431
432 width: header.width - Kirigami.Units.largeSpacing 432 width: header.width - KubeTheme.Units.largeSpacing
433 433
434 layoutDirection: Qt.RightToLeft 434 layoutDirection: Qt.RightToLeft
435 spacing: Kirigami.Units.smallSpacing 435 spacing: KubeTheme.Units.smallSpacing
436 clip: true 436 clip: true
437 437
438 Repeater { 438 Repeater {
@@ -456,12 +456,12 @@ Rectangle {
456 top: header.bottom 456 top: header.bottom
457 left: header.left 457 left: header.left
458 right: header.right 458 right: header.right
459 leftMargin: Kirigami.Units.largeSpacing 459 leftMargin: KubeTheme.Units.largeSpacing
460 rightMargin: Kirigami.Units.largeSpacing 460 rightMargin: KubeTheme.Units.largeSpacing
461 topMargin: Math.max(attachments.height, Kirigami.Units.largeSpacing) 461 topMargin: Math.max(attachments.height, KubeTheme.Units.largeSpacing)
462 } 462 }
463 463
464 width: header.width - Kirigami.Units.largeSpacing * 2 464 width: header.width - KubeTheme.Units.largeSpacing * 2
465 height: desiredHeight 465 height: desiredHeight
466 466
467 message: model.mimeMessage 467 message: model.mimeMessage
@@ -474,9 +474,9 @@ Rectangle {
474 top: header.bottom 474 top: header.bottom
475 left: header.left 475 left: header.left
476 right: header.right 476 right: header.right
477 leftMargin: Kirigami.Units.largeSpacing 477 leftMargin: KubeTheme.Units.largeSpacing
478 rightMargin: Kirigami.Units.largeSpacing 478 rightMargin: KubeTheme.Units.largeSpacing
479 topMargin: Math.max(attachments.height, Kirigami.Units.largeSpacing) 479 topMargin: Math.max(attachments.height, KubeTheme.Units.largeSpacing)
480 } 480 }
481 visible: model.incomplete 481 visible: model.incomplete
482 text: "Incomplete body..." 482 text: "Incomplete body..."
@@ -498,14 +498,14 @@ Rectangle {
498 498
499 anchors.bottom: parent.bottom 499 anchors.bottom: parent.bottom
500 500
501 height: Kirigami.Units.gridUnit * 2 501 height: KubeTheme.Units.gridUnit * 2
502 width: parent.width 502 width: parent.width
503 503
504 Text { 504 Text {
505 anchors{ 505 anchors{
506 verticalCenter: parent.verticalCenter 506 verticalCenter: parent.verticalCenter
507 left: parent.left 507 left: parent.left
508 leftMargin: Kirigami.Units.largeSpacing 508 leftMargin: KubeTheme.Units.largeSpacing
509 } 509 }
510 510
511 KubeFramework.MailController { 511 KubeFramework.MailController {
@@ -535,7 +535,7 @@ Rectangle {
535 anchors{ 535 anchors{
536 verticalCenter: parent.verticalCenter 536 verticalCenter: parent.verticalCenter
537 right: parent.right 537 right: parent.right
538 rightMargin: Kirigami.Units.largeSpacing 538 rightMargin: KubeTheme.Units.largeSpacing
539 } 539 }
540 540
541 KubeAction.Context { 541 KubeAction.Context {
@@ -558,7 +558,7 @@ Rectangle {
558 context: maillistcontext 558 context: maillistcontext
559 } 559 }
560 560
561 iconName: model.draft ? "document-edit" : "mail-reply-sender" 561 iconName: model.draft ? KubeTheme.Icons.edit : KubeTheme.Icons.replyToSender
562 onClicked: { 562 onClicked: {
563 if (model.draft) { 563 if (model.draft) {
564 editAction.execute() 564 editAction.execute()