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-10-12 18:26:02 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-10-20 12:23:58 +00:00
|
|
|
import StatusQ.Controls 0.1
|
2021-11-30 15:45:36 +00:00
|
|
|
import StatusQ.Popups 0.1
|
2021-10-20 12:23:58 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
StatusModal {
|
2021-06-28 11:11:54 +00:00
|
|
|
id: popup
|
2021-10-12 18:26:02 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
anchors.centerIn: parent
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Before you get started..."
|
2021-11-30 15:45:36 +00:00
|
|
|
header.title: qsTrId("before-you-get-started---")
|
|
|
|
hasCloseButton: false
|
2022-01-17 10:34:35 +00:00
|
|
|
closePolicy: Popup.NoAutoClose
|
2021-11-30 15:45:36 +00:00
|
|
|
|
|
|
|
contentItem: Item {
|
|
|
|
implicitHeight: childrenRect.height
|
|
|
|
width: popup.width
|
|
|
|
Column {
|
|
|
|
spacing: 12
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.leftMargin: 32
|
|
|
|
anchors.rightMargin: 32
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
Item { height: 12; width: parent.width }
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
id: acknowledge
|
|
|
|
objectName: "acknowledgeCheckBox"
|
|
|
|
width: parent.width
|
|
|
|
//% "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
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
id: termsOfUse
|
|
|
|
objectName: "termsOfUseCheckBox"
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
contentItem: Row {
|
|
|
|
spacing: 4
|
|
|
|
leftPadding: termsOfUse.indicator.width + termsOfUse.spacing
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
//% "I accept"
|
|
|
|
text: qsTrId("i-accept")
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
//% "Terms of Use"
|
|
|
|
text: qsTrId("terms-of-service")
|
|
|
|
color: Theme.palette.primaryColor1
|
|
|
|
objectName: "termsOfUseLink"
|
|
|
|
|
|
|
|
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-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-05 06:59:09 +00:00
|
|
|
}
|
2021-11-30 15:45:36 +00:00
|
|
|
|
|
|
|
Item { height: 12; width: parent.width }
|
2021-07-05 06:59:09 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
leftButtons: [
|
|
|
|
StatusBaseText {
|
2021-07-05 06:59:09 +00:00
|
|
|
id: ppText
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Privacy Policy"
|
2021-10-25 13:29:28 +00:00
|
|
|
objectName: "privacyPolicyLink"
|
2021-07-16 20:22:50 +00:00
|
|
|
text: qsTrId("privacy-policy")
|
2021-11-30 15:45:36 +00:00
|
|
|
color: Theme.palette.primaryColor1
|
2021-07-05 06:59:09 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
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-11-30 15:45:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
rightButtons: [
|
2021-07-05 06:59:09 +00:00
|
|
|
StatusButton {
|
|
|
|
id: getStartedButton
|
2021-10-25 13:29:28 +00:00
|
|
|
objectName: "getStartedStatusButton"
|
2021-07-05 06:59:09 +00:00
|
|
|
enabled: acknowledge.checked && termsOfUse.checked
|
2021-07-16 20:22:50 +00:00
|
|
|
//% "Get Started"
|
|
|
|
text: qsTrId("get-started")
|
2021-07-05 06:59:09 +00:00
|
|
|
onClicked: {
|
|
|
|
popup.close()
|
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
2021-11-30 15:45:36 +00:00
|
|
|
]
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|