summaryrefslogtreecommitdiffstats
path: root/components/package
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-12-13 22:40:07 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-12-13 22:40:07 +0100
commit3b65f07abd987d5229cd22a8d8dbadd7761d8e1c (patch)
treecff5c5f943583adc5912200f9d0059e85bb4ada3 /components/package
parent98ee778e4cab50cfc3e0972b60c800c0cecea45b (diff)
downloadkube-3b65f07abd987d5229cd22a8d8dbadd7761d8e1c.tar.gz
kube-3b65f07abd987d5229cd22a8d8dbadd7761d8e1c.zip
remove plaintext/html button and replace with pretty text
Diffstat (limited to 'components/package')
-rw-r--r--components/package/contents/ui/SingleMailView.qml26
1 files changed, 17 insertions, 9 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml
index e027a139..49217e56 100644
--- a/components/package/contents/ui/SingleMailView.qml
+++ b/components/package/contents/ui/SingleMailView.qml
@@ -45,9 +45,14 @@ Item {
45 color: Kirigami.Theme.backgroundColor 45 color: Kirigami.Theme.backgroundColor
46 46
47 Kirigami.Heading { 47 Kirigami.Heading {
48 anchors.centerIn: parent
49 48
50 width: parent.width - Kirigami.Units.gridUnit * 4.2 49 anchors {
50 left: parent.left
51 leftMargin: Kirigami.Units.largeSpacing
52 verticalCenter: parent.verticalCenter
53 }
54
55 width: parent.width - Kirigami.Units.gridUnit * 5
51 56
52 text: "Some subject" 57 text: "Some subject"
53 color: Kirigami.Theme.textColor 58 color: Kirigami.Theme.textColor
@@ -56,21 +61,23 @@ Item {
56 61
57 } 62 }
58 63
59 Button { 64 //TODO Make it clickable
65 Text {
60 anchors { 66 anchors {
61 right: parent.right 67 right: parent.right
62 rightMargin: Kirigami.Units.gridUnit * 0.2 68 rightMargin: Kirigami.Units.gridUnit * 0.2
63 verticalCenter: parent.verticalCenter 69 bottom: parent.bottom
70 bottomMargin: Kirigami.Units.gridUnit * 0.2 + 1
64 } 71 }
65 text: "show plaintext"
66 72
67 onClicked: { 73 //make it blue and lightgrey
68 text = text == "show plaintext" ? "show html" : "show plaintext" 74 text: "<b>Plaintext</b> / <i>HTML</i>"
69 focus = false 75 color: Kirigami.Theme.textColor
70 } 76 font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7
71 } 77 }
72 78
73 Rectangle { 79 Rectangle {
80
74 anchors.bottom: parent.bottom 81 anchors.bottom: parent.bottom
75 82
76 height: 1 83 height: 1
@@ -350,6 +357,7 @@ Item {
350 } 357 }
351 358
352 iconName: "mail-reply-sender" 359 iconName: "mail-reply-sender"
360 //TODO add text
353 } 361 }
354 } 362 }
355 } 363 }