summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/qml/EncryptedPart.qml
blob: 9f4b984ec3e072e9e2891be91d6012823aa22f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import QtQuick 2.4
import QtQuick.Controls 1.5

Item {

    height: mailPart.height
    width: mailPart.width

   // Rectangle {
     //   id: border

       // border.width: 5
      //  border.color: "lightgreen"
    //}

        BorderImage {

        anchors.fill: parent
        border { left: 40; top: 40; right: 40; bottom: 40 }
        horizontalTileMode: BorderImage.Repeat
        verticalTileMode: BorderImage.Repeat

        source: model.trusted ?  "bordergreen.png" : "bordergrey.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

            iconName: "document-encrypt"
        }
    }
}