Newer
Older
Andrey Daragan
committed
import QtQuick.Layouts 1.3
import "qrc:/widgets"
import "../../../"
Andrey Daragan
committed
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
dapButtonClose.normalImageButton: "qrc:/res/icons/back_icon.png"
dapButtonClose.hoverImageButton: "qrc:/res/icons/back_icon_hover.png"
dapHeaderData:
Rectangle
{
id: frameHeaderItem
anchors.fill: parent
height: parent.height
color: "transparent"
Rectangle
{
anchors.fill: parent
anchors.leftMargin: 16 * pt
anchors.rightMargin: 16 * pt
anchors.topMargin: 12 * pt
anchors.bottomMargin: 12 * pt
color: "transparent"
Item
{
id: itemButtonBack
data: dapButtonClose
height: dapButtonClose.height
width: dapButtonClose.width
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
}
Text
{
id: textHeader
text: qsTr("New wallet")
font.pixelSize: 14 * pt
color: "#3E3853"
anchors.left: itemButtonBack.right
anchors.leftMargin: 12 * pt
anchors.verticalCenter: parent.verticalCenter
}
}
Rectangle
{
id: bottomBorder
height: 1 * pt
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
color: "#757184"
}
}
dapContentItemData:
Rectangle
{
anchors.fill: parent
color: "transparent"
Andrey Daragan
committed
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
Rectangle
{
id: frameMethod
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottomMargin: 8 * pt
color: "#757184"
height: 30 * pt
Text
{
id: textMethod
color: "#ffffff"
text: qsTr("24 words")
font.pixelSize: 12 * pt
horizontalAlignment: Text.AlignLeft
font.family: "Roboto"
font.styleName: "Normal"
font.weight: Font.Normal
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 16 * pt
}
}
Text
{
id: textTopMessage
anchors.left: parent.left
anchors.right: parent.right
anchors.top: frameMethod.bottom
anchors.topMargin: 24 * pt
anchors.leftMargin: 16 * pt
anchors.rightMargin: 16 * pt
anchors.bottomMargin: 24 * pt
text: qsTr("Keep these words in a safe place. They will be\nrequired to restore your wallet in case of loss of\naccess to it")
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
color: "#FF0300"
font
{
family: "Roboto"
styleName: "Normal"
weight: Font.Normal
pixelSize: 14 * pt
}
}
Rectangle
{
id: frameRecoveryWords
anchors.top: textTopMessage.bottom
anchors.topMargin: 24 * pt
anchors.right: parent.right
anchors.left: parent.left
anchors.leftMargin: 16 * pt
anchors.rightMargin: 16 * pt
color: "transparent"
height: 250 * pt
ListModel
{
id: modelRecoveryWords
ListElement
{
word: "Word1"
}
ListElement
{
word: "Word2"
}
ListElement
{
word: "Word3"
}
ListElement
{
word: "Word4"
}
ListElement
{
word: "Word5"
}
ListElement
{
word: "Word6"
}
ListElement
{
word: "Word7"
}
ListElement
{
word: "Word8"
}
ListElement
{
word: "Word9"
}
ListElement
{
word: "Word10"
}
ListElement
{
word: "Word11"
}
ListElement
{
word: "Word12"
}
}
RowLayout
{
id: rowListView
spacing: 60 * pt
anchors.fill: parent
height: frameRecoveryWords.height
ListView
{
id: firstListViewRecoveryWords
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
height: frameRecoveryWords.height
width: 50 * pt
model: modelRecoveryWords
delegate:
Text
{
text: word
color: "#070023"
anchors.horizontalCenter: parent.horizontalCenter
font
{
pixelSize: 16 * pt
family: "Roboto"
styleName: "Normal"
weight: Font.Normal
}
}
}
ListView
{
id: lastListViewRecoveryWords
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
height: frameRecoveryWords.height
width: 50 * pt
model: modelRecoveryWords
delegate:
Text
{
text: word
color: "#070023"
anchors.horizontalCenter: parent.horizontalCenter
font
{
pixelSize: 16 * pt
family: "Roboto"
styleName: "Normal"
weight: Font.Normal
}
}
}
}
}
Text
{
id: textBottomMessage
anchors.top: frameRecoveryWords.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: 24 * pt
anchors.leftMargin: 16 * pt
anchors.rightMargin: 16 * pt
color: "#6F9F00"
font.pixelSize: 14 * pt
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
RowLayout
{
id: rowButtons
height: 44 * pt
anchors.top: textBottomMessage.bottom
anchors.topMargin: 24 * pt
anchors.left: parent.left
anchors.right: parent.right
Layout.columnSpan: 2
DapButton
{
id: nextButton
heightButton: 44 * pt
widthButton: 130 * pt
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
textButton: qsTr("Next")
existenceImage: false
horizontalAligmentText: Text.AlignHCenter
indentTextRight: 0
fontButton.pixelSize: 18 * pt
colorBackgroundButton: "#3E3853"
}
DapButton
{
id: copyButton
heightButton: 44 * pt
widthButton: 130 * pt
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
checkable: true
textButton: qsTr("Copy")
existenceImage: false
horizontalAligmentText: Text.AlignHCenter
indentTextRight: 0
fontButton.pixelSize: 18 * pt
colorBackgroundButton: copyButton.checked ? "#EDEFF2" : "#3E3853"
colorTextButton: copyButton.checked ? "#3E3853" : "#FFFFFF"
onClicked: textBottomMessage.text = qsTr("Recovery words copied to clipboard. Keep them in a\nsafe place before proceeding to the next step.")
}
}
Rectangle
{
id: frameMethodData
height: 124 * pt
color: "transparent"
anchors.top: rowButtons.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 16 * pt
anchors.rightMargin: 16 * pt
}
}
}
/*##^## Designer {
D{i:0;autoSize:true;height:480;width:640}