2021-06-28 11:11:54 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.14
|
2022-07-14 14:40:06 +00:00
|
|
|
import QtQml.Models 2.14
|
2021-06-28 11:11:54 +00:00
|
|
|
|
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
|
2022-07-14 14:40:06 +00:00
|
|
|
import StatusQ.Popups.Dialog 0.1
|
2021-10-20 12:23:58 +00:00
|
|
|
|
2022-07-14 14:40:06 +00:00
|
|
|
StatusDialog {
|
2022-07-14 16:39:16 +00:00
|
|
|
id: root
|
2021-10-12 18:26:02 +00:00
|
|
|
|
2022-07-14 13:09:56 +00:00
|
|
|
width: 480
|
2021-11-30 15:45:36 +00:00
|
|
|
anchors.centerIn: parent
|
2022-01-17 10:34:35 +00:00
|
|
|
closePolicy: Popup.NoAutoClose
|
2021-11-30 15:45:36 +00:00
|
|
|
|
2022-07-14 14:40:06 +00:00
|
|
|
header: StatusDialogHeader {
|
|
|
|
headline.title: qsTr("Before you get started...")
|
|
|
|
actions.closeButton.visible: false
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: StatusDialogFooter {
|
|
|
|
rightButtons: ObjectModel {
|
|
|
|
StatusButton {
|
|
|
|
objectName: "getStartedStatusButton"
|
|
|
|
enabled: acknowledge.checked && termsOfUse.checked
|
|
|
|
size: StatusBaseButton.Size.Large
|
|
|
|
font.weight: Font.Medium
|
|
|
|
text: qsTr("Get Started")
|
2022-07-14 16:39:16 +00:00
|
|
|
onClicked: root.close()
|
2022-07-14 14:40:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
contentItem: Item {
|
|
|
|
Column {
|
2022-07-14 14:40:06 +00:00
|
|
|
width: 416
|
|
|
|
spacing: 16
|
|
|
|
anchors.centerIn: parent
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
id: acknowledge
|
|
|
|
objectName: "acknowledgeCheckBox"
|
2022-07-14 13:09:56 +00:00
|
|
|
spacing: 8
|
|
|
|
font.pixelSize: 15
|
2021-11-30 15:45:36 +00:00
|
|
|
width: parent.width
|
2022-07-14 13:09:56 +00:00
|
|
|
text: qsTr("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-11-30 15:45:36 +00:00
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
id: termsOfUse
|
|
|
|
objectName: "termsOfUseCheckBox"
|
2022-07-14 13:09:56 +00:00
|
|
|
width: parent.width
|
|
|
|
font.pixelSize: 15
|
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 {
|
2022-03-04 23:31:31 +00:00
|
|
|
text: qsTr("I accept Status")
|
2022-07-14 13:09:56 +00:00
|
|
|
font.pixelSize: 15
|
2021-11-30 15:45:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
2022-03-04 23:31:31 +00:00
|
|
|
objectName: "termsOfUseLink"
|
2022-07-14 13:09:56 +00:00
|
|
|
text: qsTr("Terms of Use")
|
2021-11-30 15:45:36 +00:00
|
|
|
color: Theme.palette.primaryColor1
|
2022-07-14 13:09:56 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
font.weight: Font.Medium
|
2021-11-30 15:45:36 +00:00
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
2022-07-14 13:09:56 +00:00
|
|
|
Qt.openUrlExternally("https://status.im/terms-of-use/")
|
2021-11-30 15:45:36 +00:00
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-04 23:31:31 +00:00
|
|
|
|
|
|
|
StatusBaseText {
|
2022-07-14 13:09:56 +00:00
|
|
|
text: "&"
|
|
|
|
font.pixelSize: 15
|
2022-03-04 23:31:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
objectName: "privacyPolicyLink"
|
|
|
|
text: qsTr("Privacy Policy")
|
|
|
|
color: Theme.palette.primaryColor1
|
2022-07-14 13:09:56 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
font.weight: Font.Medium
|
2022-03-04 23:31:31 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|