-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCryptography.qml
182 lines (170 loc) · 5 KB
/
Cryptography.qml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
import QtQuick 2.0
Rectangle{
id:rootcryptography
visible: cryptographybox
anchors.fill: parent
color: Qt.rgba(0,0,0,0.5)
z:99
MouseArea{
anchors.fill: parent
}
SequentialAnimation{
running: rootcryptography.visible
NumberAnimation {
target: bx
property: "opacity"
from:0
to:1
duration: 200
easing.type: Easing.InBounce
}
ScriptAction{
script: inputtxt.forceActiveFocus();
}
}
Rectangle{
id:bx
width: 300
height: 340
opacity: 0
anchors.centerIn: parent
radius: 10
color: '#2d2d2d'
Rectangle{
id:_title
width: parent.width
height: 40
color: '#ff3434'
Text {
text: qsTr("Enter the encryption key ")
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: 10
font.weight: Font.Bold
color: '#fff'
}
}
Image {
id: cryptography
source: 'image/Cryptography.png'
anchors.top:_title.bottom
anchors.topMargin: 15
anchors.horizontalCenter: parent.horizontalCenter
width: 65
height: 59
}
Text {
id:note1
anchors.top: cryptography.bottom
anchors.topMargin: 20
anchors.right: parent.right
anchors.left: parent.left
anchors.leftMargin: 20
anchors.rightMargin: 20
wrapMode:Text.Wrap
color: '#fff'
text: qsTr("Please enter the agreed encryption key , The key to encryption is the first message ")
}
Rectangle {
id:inputbg
anchors.top: note1.bottom
height: 35
radius: 100
color: '#222222'
border.width: 1
border.color: '#19ca4f'
anchors.topMargin: 20
anchors.right: parent.right
anchors.left: parent.left
anchors.leftMargin: 20
anchors.rightMargin: 20
Text {
text: qsTr("***********")
font.pointSize: 20
color: '#999'
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 8
visible: !inputtxt.text
}
TextInput{
id:inputtxt
font.pointSize: 15
color: '#999'
horizontalAlignment: Text.AlignHCenter
anchors.top: parent.top
anchors.topMargin: 8
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: 20
anchors.leftMargin: 20
z:5
}
}
Rectangle {
id:_continue
anchors.top: inputbg.bottom
anchors.right: parent.right
anchors.rightMargin: 20
anchors.topMargin: 10
height: 35
width: 126
radius: 100
color: '#19ca4f'
Image {
source: "image/lock.png"
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 20
width: 14
height: 19
}
Text {
text: qsTr("Continue")
color: '#fff'
font.weight: Font.Bold
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 20
}
}
Rectangle {
id:_close
anchors.top: inputbg.bottom
anchors.left: parent.left
anchors.leftMargin: 20
anchors.topMargin: 10
height: 35
width: 126
radius: 100
color: '#2d2d2d'
border.width: 1
border.color: '#ff3434'
Text {
text: qsTr("Close Window")
color: '#ff3434'
font.weight: Font.Bold
anchors.centerIn: parent
}
MouseArea{
anchors.fill: parent
onClicked: {
cryptographybox = false;
}
}
}
Text {
id:note2
anchors.top: _close.bottom
anchors.topMargin: 20
anchors.right: parent.right
anchors.left: parent.left
anchors.leftMargin: 20
anchors.rightMargin: 20
wrapMode:Text.Wrap
font.pointSize: 11
color: '#ff3434'
text: qsTr("Please enter the agreed encryption key , The key to encryption is the first message ")
}
}
}