status-desktop/ui/app/AppLayouts/Onboarding/popups/BeforeGetStartedModal.qml

117 lines
3.7 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.14
import utils 1.0
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import StatusQ.Popups 0.1
StatusModal {
id: popup
anchors.centerIn: parent
header.title: qsTr("Before you get started")
hasCloseButton: false
closePolicy: Popup.NoAutoClose
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
Item { height: 12; width: parent.width }
StatusCheckBox {
id: acknowledge
objectName: "acknowledgeCheckBox"
width: parent.width
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")
}
StatusCheckBox {
id: termsOfUse
objectName: "termsOfUseCheckBox"
contentItem: Row {
spacing: 4
leftPadding: termsOfUse.indicator.width + termsOfUse.spacing
StatusBaseText {
text: qsTr("I accept Status")
color: Theme.palette.directColor1
}
StatusBaseText {
objectName: "termsOfUseLink"
text: qsTr("Terms of service")
color: Theme.palette.primaryColor1
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/")
}
}
}
StatusBaseText {
text: " & "
color: Theme.palette.directColor1
}
StatusBaseText {
objectName: "privacyPolicyLink"
text: qsTr("Privacy Policy")
color: Theme.palette.primaryColor1
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/")
}
}
}
}
}
Item { height: 12; width: parent.width }
}
}
rightButtons: [
StatusButton {
id: getStartedButton
objectName: "getStartedStatusButton"
enabled: acknowledge.checked && termsOfUse.checked
text: qsTr("Get started")
onClicked: {
popup.close()
}
}
]
}