status-desktop/ui/app/AppLayouts/WalletV2/SignPhraseModal.qml

111 lines
3.2 KiB
QML
Raw Normal View History

2021-08-13 20:04:04 +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
//% "Signing phrase"
title: qsTrId("signing-phrase")
height: 390
closePolicy: Popup.NoAutoClose
Column {
anchors.left: parent.left
anchors.right: parent.right
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
//% "This is your signing phrase"
text: qsTrId("this-is-you-signing")
font.pixelSize: 17
font.weight: Font.Bold
horizontalAlignment: Text.AlignHCenter
height: Style.current.padding * 3
}
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
//% "You should see these 3 words before signing each transaction"
text: qsTrId("three-words-description")
font.pixelSize: 15
width: 330
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
height: Style.current.padding * 4
}
Rectangle {
color: Style.current.inputBackground
height: 44
width: parent.width
StyledText {
id: signingPhrase
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 15
text: walletModel.utilsView.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 {
//% "If you see a different combination, cancel the transaction and sign out"
text: qsTrId("three-words-description-2")
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
width: parent.width
font.pixelSize: 13
height: 18
color: Style.current.danger
anchors.horizontalCenter: parent.horizontalCenter
}
}
footer: Item {
width: parent.width
height: btnRemindLater.height
StatusButton {
anchors.right: btnRemindLater.left
anchors.rightMargin: Style.current.padding
//% "Ok, got it"
text: qsTrId("ens-got-it")
type: "secondary"
onClicked: {
appSettings.hideSignPhraseModal = true;
close();
}
}
StatusButton {
id: btnRemindLater
anchors.right: parent.right
//% "Remind me later"
text: qsTrId("remind-me-later")
onClicked: {
hideSignPhraseModal = true;
close();
}
}
}
}