From 711ac9758976f1e2412b28b7b1a80780eec4641f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 15 Sep 2016 09:35:09 +0200 Subject: use new security boder images --- components/mailviewer/qml/EncryptedPart.qml | 38 +++++------------------------ components/mailviewer/qml/MailModel.qml | 2 +- 2 files changed, 7 insertions(+), 33 deletions(-) (limited to 'components/mailviewer') 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 Item { - height: mailPart.height - width: mailPart.width - - // Rectangle { - // id: border - - // border.width: 5 - // border.color: "lightgreen" - //} + height: mailPart.height + 20 + width: mailPart.width + 20 BorderImage { anchors.fill: parent border { left: 40; top: 40; right: 40; bottom: 40 } - horizontalTileMode: BorderImage.Repeat - verticalTileMode: BorderImage.Repeat + horizontalTileMode: BorderImage.Round + verticalTileMode: BorderImage.Round - source: model.trusted ? "bordergreen.png" : "bordergrey.png" + source: "securityborders" + model.securityLevel + ".png" } MailPart { id: mailPart - } - - Rectangle { - - anchors { - top: parent.top - right: parent.right - } - - height: 50 - width: 50 - - radius: 100 - - color: model.trusted ? "lightgreen" : "lightgrey" - - ToolButton { - anchors.fill: parent + anchors.centerIn: parent - iconName: "document-encrypt" - } } } 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 { ListElement { type: "encrypted" - trusted: true + securityLevel: "GREEN" content: [ ListElement { type: "plaintext" -- cgit v1.2.3