summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/qml/EncryptedPart.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mailviewer/qml/EncryptedPart.qml')
-rw-r--r--components/mailviewer/qml/EncryptedPart.qml38
1 files changed, 6 insertions, 32 deletions
diff --git a/components/mailviewer/qml/EncryptedPart.qml b/components/mailviewer/qml/EncryptedPart.qml
index 9f4b984e..eba6c035 100644
--- a/components/mailviewer/qml/EncryptedPart.qml
+++ b/components/mailviewer/qml/EncryptedPart.qml
@@ -3,49 +3,23 @@ import QtQuick.Controls 1.5
3 3
4Item { 4Item {
5 5
6 height: mailPart.height 6 height: mailPart.height + 20
7 width: mailPart.width 7 width: mailPart.width + 20
8
9 // Rectangle {
10 // id: border
11
12 // border.width: 5
13 // border.color: "lightgreen"
14 //}
15 8
16 BorderImage { 9 BorderImage {
17 10
18 anchors.fill: parent 11 anchors.fill: parent
19 border { left: 40; top: 40; right: 40; bottom: 40 } 12 border { left: 40; top: 40; right: 40; bottom: 40 }
20 horizontalTileMode: BorderImage.Repeat 13 horizontalTileMode: BorderImage.Round
21 verticalTileMode: BorderImage.Repeat 14 verticalTileMode: BorderImage.Round
22 15
23 source: model.trusted ? "bordergreen.png" : "bordergrey.png" 16 source: "securityborders" + model.securityLevel + ".png"
24 } 17 }
25 18
26 MailPart { 19 MailPart {
27 id: mailPart 20 id: mailPart
28 21
29 } 22 anchors.centerIn: parent
30
31 Rectangle {
32
33 anchors {
34 top: parent.top
35 right: parent.right
36 }
37
38 height: 50
39 width: 50
40
41 radius: 100
42
43 color: model.trusted ? "lightgreen" : "lightgrey"
44
45 ToolButton {
46 anchors.fill: parent
47 23
48 iconName: "document-encrypt"
49 }
50 } 24 }
51} 25}