diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-09-15 09:35:09 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-09-15 09:35:09 +0200 |
commit | 711ac9758976f1e2412b28b7b1a80780eec4641f (patch) | |
tree | 18303970d74ca21f4be4b2b94e9969e735680526 /components/mailviewer/qml | |
parent | 217819aa165a72c5c006f3b980e4dc8a4db213c0 (diff) | |
download | kube-711ac9758976f1e2412b28b7b1a80780eec4641f.tar.gz kube-711ac9758976f1e2412b28b7b1a80780eec4641f.zip |
use new security boder images
Diffstat (limited to 'components/mailviewer/qml')
-rw-r--r-- | components/mailviewer/qml/EncryptedPart.qml | 38 | ||||
-rw-r--r-- | components/mailviewer/qml/MailModel.qml | 2 |
2 files changed, 7 insertions, 33 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 | ||
4 | Item { | 4 | Item { |
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 | } |
diff --git a/components/mailviewer/qml/MailModel.qml b/components/mailviewer/qml/MailModel.qml index 8177b9d4..808a8d5b 100644 --- a/components/mailviewer/qml/MailModel.qml +++ b/components/mailviewer/qml/MailModel.qml | |||
@@ -4,7 +4,7 @@ ListModel { | |||
4 | 4 | ||
5 | ListElement { | 5 | ListElement { |
6 | type: "encrypted" | 6 | type: "encrypted" |
7 | trusted: true | 7 | securityLevel: "GREEN" |
8 | content: [ | 8 | content: [ |
9 | ListElement { | 9 | ListElement { |
10 | type: "plaintext" | 10 | type: "plaintext" |