summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/package/contents/ui/SingleMailView.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml
index 49217e56..9b38b5be 100644
--- a/components/package/contents/ui/SingleMailView.qml
+++ b/components/package/contents/ui/SingleMailView.qml
@@ -63,6 +63,7 @@ Item {
63 63
64 //TODO Make it clickable 64 //TODO Make it clickable
65 Text { 65 Text {
66
66 anchors { 67 anchors {
67 right: parent.right 68 right: parent.right
68 rightMargin: Kirigami.Units.gridUnit * 0.2 69 rightMargin: Kirigami.Units.gridUnit * 0.2
@@ -74,6 +75,14 @@ Item {
74 text: "<b>Plaintext</b> / <i>HTML</i>" 75 text: "<b>Plaintext</b> / <i>HTML</i>"
75 color: Kirigami.Theme.textColor 76 color: Kirigami.Theme.textColor
76 font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 77 font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7
78
79 MouseArea {
80 anchors.fill: parent
81
82 onClicked: {
83 parent.text == "<b>Plaintext</b> / <i>HTML</i>" ? parent.text = "<i>Plaintext</i> / <b>HTML</b>" : parent.text = "<b>Plaintext</b> / <i>HTML</i>"
84 }
85 }
77 } 86 }
78 87
79 Rectangle { 88 Rectangle {