@@ -29,7 +29,7 @@ MultipageModal
29
29
titleAlignment: Qt .AlignHCenter
30
30
titleTopMargin: 0
31
31
topMarginAfterTitle: 10
32
- flickMax: window .height - 430
32
+ flickMax: window .height - 385
33
33
34
34
header: [
35
35
RowLayout
@@ -77,62 +77,6 @@ MultipageModal
77
77
{
78
78
id: price_line
79
79
Layout .fillWidth : true
80
- },
81
-
82
- ColumnLayout
83
- {
84
- id: warnings_text
85
- Layout .fillWidth : true
86
- Layout .alignment : Qt .AlignHCenter
87
-
88
- // Large margin warning
89
- FloatingBackground
90
- {
91
- Layout .alignment : Qt .AlignCenter
92
- width: childrenRect .width
93
- height: childrenRect .height
94
- color: Style .colorRed2
95
- visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
96
-
97
- RowLayout
98
- {
99
- Layout .fillWidth : true
100
-
101
- Item { width: 3 }
102
-
103
- DefaultCheckBox
104
- {
105
- id: allow_bad_trade
106
- Layout .alignment : Qt .AlignCenter
107
- textColor: Style .colorWhite0
108
- visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
109
- spacing: 2
110
- boxWidth: 16
111
- boxHeight: 16
112
- boxRadius: 8
113
- label .wrapMode : Label .NoWrap
114
- text: qsTr (" Trade price is more than 50% different to CEX! Confirm?" )
115
- font: DexTypo .caption
116
- }
117
- }
118
- }
119
-
120
- DefaultText
121
- {
122
- Layout .alignment : Qt .AlignHCenter
123
- text_value: qsTr (" This swap request can not be undone and is a final event!" )
124
- font: DexTypo .italic12
125
- color: Dex .CurrentTheme .foregroundColor2
126
- }
127
-
128
- DefaultText
129
- {
130
- id: warnings_tx_time_text
131
- Layout .alignment : Qt .AlignHCenter
132
- text_value: qsTr (" This transaction can take up to 60 mins - DO NOT close this application!" )
133
- font: DexTypo .italic12
134
- color: Dex .CurrentTheme .foregroundColor2
135
- }
136
80
}
137
81
]
138
82
@@ -244,6 +188,38 @@ MultipageModal
244
188
}
245
189
}
246
190
191
+ // Large margin warning
192
+ FloatingBackground
193
+ {
194
+ Layout .alignment : Qt .AlignCenter
195
+ width: childrenRect .width
196
+ height: childrenRect .height
197
+ color: Style .colorRed2
198
+ visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
199
+
200
+ RowLayout
201
+ {
202
+ Layout .fillWidth : true
203
+
204
+ Item { width: 3 }
205
+
206
+ DefaultCheckBox
207
+ {
208
+ id: allow_bad_trade
209
+ Layout .alignment : Qt .AlignCenter
210
+ textColor: Style .colorWhite0
211
+ visible: Math .abs (parseFloat (API .app .trading_pg .cex_price_diff )) >= 50
212
+ spacing: 2
213
+ boxWidth: 16
214
+ boxHeight: 16
215
+ boxRadius: 8
216
+ label .wrapMode : Label .NoWrap
217
+ text: qsTr (" Trade price is more than 50% different to CEX! Confirm?" )
218
+ font: DexTypo .caption
219
+ }
220
+ }
221
+ }
222
+
247
223
// Custom config section
248
224
Item
249
225
{
@@ -416,6 +392,31 @@ MultipageModal
416
392
}
417
393
}
418
394
395
+ ColumnLayout
396
+ {
397
+ id: warnings_text
398
+ Layout .fillWidth : true
399
+ Layout .alignment : Qt .AlignHCenter
400
+
401
+
402
+ DefaultText
403
+ {
404
+ Layout .alignment : Qt .AlignHCenter
405
+ text_value: qsTr (" This swap request can not be undone and is a final event!" )
406
+ font: DexTypo .italic12
407
+ color: Dex .CurrentTheme .foregroundColor2
408
+ }
409
+
410
+ DefaultText
411
+ {
412
+ id: warnings_tx_time_text
413
+ Layout .alignment : Qt .AlignHCenter
414
+ text_value: qsTr (" This transaction can take up to 60 mins - DO NOT close this application!" )
415
+ font: DexTypo .italic12
416
+ color: Dex .CurrentTheme .foregroundColor2
417
+ }
418
+ }
419
+
419
420
Item
420
421
{
421
422
visible: buy_sell_rpc_busy
0 commit comments