mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
efbc8073e1
Introducing stores, panels, views and controls in order to implement the new architecture proposal in WalletV2 Closes #3479
90 lines
2.5 KiB
QML
90 lines
2.5 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import QtGraphicalEffects 1.13
|
|
import "../../../../imports"
|
|
import "../../../../shared"
|
|
import "../../Profile/Sections"
|
|
import "."
|
|
|
|
Rectangle {
|
|
id: root
|
|
height: visible ? 32 : 0
|
|
color: Style.current.red
|
|
|
|
Row {
|
|
spacing: Style.current.halfPadding
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
StyledText {
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
color: Style.current.white
|
|
font.pixelSize: 13
|
|
text: qsTrId("back-up-your-seed-phrase")
|
|
}
|
|
|
|
Control {
|
|
width: 58
|
|
height: 24
|
|
background: Rectangle {
|
|
radius: 4
|
|
anchors.fill: parent
|
|
border.color: Style.current.white
|
|
color: "#19FFFFFF"
|
|
}
|
|
contentItem: Item {
|
|
anchors.fill: parent
|
|
Text {
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
font.pixelSize: 13
|
|
font.weight: Font.Medium
|
|
font.family: Style.current.fontRegular.name
|
|
color: Style.current.white
|
|
text: "Back up"
|
|
}
|
|
}
|
|
MouseArea {
|
|
cursorShape: Qt.PointingHandCursor
|
|
anchors.fill: parent
|
|
onClicked: { backupSeedModal.open(); }
|
|
}
|
|
}
|
|
}
|
|
|
|
SVGImage {
|
|
id: closeImg
|
|
height: 20
|
|
width: 20
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 6
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 18
|
|
source: "../../../img/close-white.svg"
|
|
}
|
|
ColorOverlay {
|
|
anchors.fill: closeImg
|
|
source: closeImg
|
|
color: Style.current.white
|
|
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 }
|
|
}
|
|
}
|
|
|
|
|
|
BackupSeedModal {
|
|
id: backupSeedModal
|
|
}
|
|
}
|