2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtGraphicalEffects 1.15
|
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../stores"
|
2021-09-20 12:06:14 +00:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: root
|
|
|
|
height: visible ? 32 : 0
|
2022-08-09 15:08:39 +00:00
|
|
|
visible: !RootStore.mnemonicBackedUp
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.dangerColor1
|
2021-09-20 12:06:14 +00:00
|
|
|
|
|
|
|
Row {
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.halfPadding
|
2021-09-20 12:06:14 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
StyledText {
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Back up your seed phrase")
|
2021-09-20 12:06:14 +00:00
|
|
|
font.pixelSize: 13
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.white
|
2021-09-20 12:06:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
width: 58
|
|
|
|
height: 24
|
|
|
|
contentItem: Item {
|
|
|
|
anchors.fill: parent
|
|
|
|
Text {
|
2022-07-19 08:34:27 +00:00
|
|
|
text: qsTr("Back up")
|
2021-09-20 12:06:14 +00:00
|
|
|
font.pixelSize: 13
|
|
|
|
font.weight: Font.Medium
|
2024-10-15 19:26:12 +00:00
|
|
|
font.family: Theme.baseFont.name
|
2021-09-20 12:06:14 +00:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.white
|
2021-09-20 12:06:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
background: Rectangle {
|
|
|
|
radius: 4
|
|
|
|
anchors.fill: parent
|
2024-10-15 19:26:12 +00:00
|
|
|
border.color: Theme.palette.white
|
2021-09-20 12:06:14 +00:00
|
|
|
color: "#19FFFFFF"
|
|
|
|
}
|
|
|
|
MouseArea {
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
anchors.fill: parent
|
2021-12-30 12:39:47 +00:00
|
|
|
onClicked: Global.openBackUpSeedPopup()
|
2021-09-20 12:06:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: closeImg
|
2022-08-09 15:08:39 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2021-09-20 12:06:14 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 18
|
2024-10-15 19:26:12 +00:00
|
|
|
source: Theme.svg("close-white")
|
2021-09-20 12:06:14 +00:00
|
|
|
height: 20
|
|
|
|
width: 20
|
|
|
|
}
|
|
|
|
ColorOverlay {
|
|
|
|
anchors.fill: closeImg
|
|
|
|
source: closeImg
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.white
|
2021-09-20 12:06:14 +00:00
|
|
|
opacity: 0.7
|
|
|
|
}
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: closeImg
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onClicked: ParallelAnimation {
|
|
|
|
PropertyAnimation { target: root; property: "visible"; to: false; }
|
|
|
|
PropertyAnimation { target: root; property: "y"; to: -1 * root.height }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|