diff options
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index d8b39900..a78173d1 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Controls 1.3 | 20 | import QtQuick.Controls 1.3 |
21 | import QtQuick.Controls 2 as Controls2 | ||
21 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 |
22 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
23 | 24 | ||
@@ -45,11 +46,29 @@ Rectangle { | |||
45 | 46 | ||
46 | color: Kirigami.Theme.backgroundColor | 47 | color: Kirigami.Theme.backgroundColor |
47 | 48 | ||
48 | Text { | 49 | Kirigami.Heading { |
49 | anchors.centerIn: parent | 50 | anchors.centerIn: parent |
50 | 51 | ||
52 | width: parent.width - Kirigami.Units.gridUnit * 4.2 | ||
53 | |||
51 | text: "Some subject" | 54 | text: "Some subject" |
52 | color: Kirigami.Theme.textColor | 55 | color: Kirigami.Theme.textColor |
56 | level: 4 | ||
57 | font.italic: true | ||
58 | |||
59 | } | ||
60 | |||
61 | Controls2.Button { | ||
62 | anchors { | ||
63 | right: parent.right | ||
64 | rightMargin: Kirigami.Units.gridUnit * 0.2 | ||
65 | verticalCenter: parent.verticalCenter | ||
66 | } | ||
67 | text: "show plaintext" | ||
68 | |||
69 | onClicked: { | ||
70 | text = text == "show plaintext" ? "show html" : "show plaintext" | ||
71 | } | ||
53 | } | 72 | } |
54 | 73 | ||
55 | Rectangle { | 74 | Rectangle { |