2021-06-28 11:11:54 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-06-28 11:11:54 +00:00
|
|
|
import "../shared"
|
|
|
|
import "../shared/status"
|
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
displayCloseButton: false
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Before you get started..."
|
|
|
|
title: qsTrId("before-you-get-started---")
|
2021-06-28 11:11:54 +00:00
|
|
|
width: 430
|
|
|
|
height: 300
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: acknowledge
|
|
|
|
Layout.preferredWidth: parent.width
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "I acknowledge that Status Desktop is in Beta and by using it, I take the full responsibility for all risks concerning my data and funds."
|
|
|
|
text: qsTrId("i-acknowledge-that-status-desktop-is-in-beta-and-by-using-it--i-take-the-full-responsibility-for-all-risks-concerning-my-data-and-funds-")
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusCheckBox {
|
2021-07-05 06:59:09 +00:00
|
|
|
id: termsOfUse
|
2021-06-28 11:11:54 +00:00
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
|
|
|
|
contentItem: Row {
|
|
|
|
spacing: 4
|
2021-07-05 06:59:09 +00:00
|
|
|
leftPadding: termsOfUse.indicator.width + termsOfUse.spacing
|
2021-06-28 11:11:54 +00:00
|
|
|
|
|
|
|
StyledText {
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "I accept"
|
|
|
|
text: qsTrId("i-accept")
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Terms of Use"
|
|
|
|
text: qsTrId("terms-of-service")
|
2021-06-28 11:11:54 +00:00
|
|
|
color: Style.current.blue
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
|
|
|
Qt.openUrlExternally("https://status.im/terms-of-service/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-05 06:59:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-07-05 06:59:09 +00:00
|
|
|
footer: Item {
|
|
|
|
width: parent.width
|
|
|
|
implicitHeight: getStartedButton.height > ppText.height?
|
|
|
|
getStartedButton.height : ppText.height
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-07-05 06:59:09 +00:00
|
|
|
StyledText {
|
|
|
|
id: ppText
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Privacy Policy"
|
|
|
|
text: qsTrId("privacy-policy")
|
2021-07-05 06:59:09 +00:00
|
|
|
color: Style.current.blue
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-07-05 06:59:09 +00:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
|
|
|
Qt.openUrlExternally("https://status.im/privacy-policy/")
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-05 06:59:09 +00:00
|
|
|
StatusButton {
|
|
|
|
id: getStartedButton
|
|
|
|
anchors.right: parent.right
|
|
|
|
enabled: acknowledge.checked && termsOfUse.checked
|
|
|
|
width: 146
|
|
|
|
height: 44
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Get Started"
|
|
|
|
text: qsTrId("get-started")
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-07-05 06:59:09 +00:00
|
|
|
onClicked: {
|
|
|
|
popup.close()
|
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|