2020-11-27 16:21:15 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import "../../../imports"
|
|
|
|
import "../../../shared"
|
|
|
|
import "../../../shared/status"
|
|
|
|
import "."
|
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
id: signPhrasePopup
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Signing phrase"
|
|
|
|
title: qsTrId("signing-phrase")
|
2020-11-27 16:21:15 +00:00
|
|
|
height: 390
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
|
|
|
|
Column {
|
2021-03-25 09:34:05 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2020-11-27 16:21:15 +00:00
|
|
|
|
|
|
|
StyledText {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "This is your signing phrase"
|
|
|
|
text: qsTrId("this-is-you-signing")
|
2020-11-27 16:21:15 +00:00
|
|
|
font.pixelSize: 17
|
|
|
|
font.weight: Font.Bold
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
height: Style.current.padding * 3
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "You should see these 3 words before signing each transaction"
|
|
|
|
text: qsTrId("three-words-description")
|
2020-11-27 16:21:15 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
width: 330
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
height: Style.current.padding * 4
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: Style.current.inputBackground
|
|
|
|
height: 44
|
2021-03-25 09:34:05 +00:00
|
|
|
width: parent.width
|
2020-11-27 16:21:15 +00:00
|
|
|
StyledText {
|
|
|
|
id: signingPhrase
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: walletModel.signingPhrase
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
height: 30
|
|
|
|
width: parent.width
|
|
|
|
SVGImage {
|
|
|
|
width: 13.33
|
|
|
|
height: 13.33
|
|
|
|
sourceSize.height: height * 2
|
|
|
|
sourceSize.width: width * 2
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
source: "../../img/exclamation_outline.svg"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "If you see a different combination, cancel the transaction and sign out"
|
|
|
|
text: qsTrId("three-words-description-2")
|
2020-11-27 16:21:15 +00:00
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2021-03-25 09:34:05 +00:00
|
|
|
width: parent.width
|
2020-11-27 16:21:15 +00:00
|
|
|
font.pixelSize: 13
|
|
|
|
height: 18
|
|
|
|
color: Style.current.danger
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: Item {
|
2021-01-13 19:15:52 +00:00
|
|
|
width: parent.width
|
|
|
|
height: btnRemindLater.height
|
2020-11-27 16:21:15 +00:00
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
anchors.right: btnRemindLater.left
|
|
|
|
anchors.rightMargin: Style.current.padding
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Ok, got it"
|
|
|
|
text: qsTrId("ens-got-it")
|
2020-11-27 16:21:15 +00:00
|
|
|
type: "secondary"
|
|
|
|
onClicked: {
|
|
|
|
appSettings.hideSignPhraseModal = true;
|
|
|
|
close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
id: btnRemindLater
|
|
|
|
anchors.right: parent.right
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Remind me later"
|
|
|
|
text: qsTrId("remind-me-later")
|
2020-11-27 16:21:15 +00:00
|
|
|
onClicked: {
|
|
|
|
hideSignPhraseModal = true;
|
|
|
|
close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-07 16:28:49 +00:00
|
|
|
}
|