diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-07 17:57:20 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-07 17:57:20 +0100 |
commit | 0ef35c542585539bc7bc7f2f85478fbf02f3878a (patch) | |
tree | 26ba88fc5196a50a1736f39845eb3eff2341facb /components/package/contents/ui/SingleMailView.qml | |
parent | ae1a5572bc65c8bbfb9f4c83d0ab1a0e12aec133 (diff) | |
download | kube-0ef35c542585539bc7bc7f2f85478fbf02f3878a.tar.gz kube-0ef35c542585539bc7bc7f2f85478fbf02f3878a.zip |
move subject inline with mail sheet and add plaintext/html button
Diffstat (limited to 'components/package/contents/ui/SingleMailView.qml')
-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 { |