2023-06-14 19:06:13 +00:00
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
|
|
StatusModal {
|
|
|
|
|
id: root
|
|
|
|
|
width: 640
|
2023-10-12 10:52:27 +00:00
|
|
|
|
title: qsTr("Welcome to Status Desktop Beta")
|
2023-11-15 16:16:09 +00:00
|
|
|
|
objectName: "desktopBetaStatusModal"
|
2023-06-14 19:06:13 +00:00
|
|
|
|
hasCloseButton: false
|
2023-10-12 10:52:27 +00:00
|
|
|
|
verticalPadding: 20
|
2023-06-14 19:06:13 +00:00
|
|
|
|
|
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
|
|
|
|
|
|
component Paragraph: StatusBaseText {
|
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
|
lineHeight: 22
|
|
|
|
|
visible: !!text
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
component AgreementSection: ColumnLayout {
|
|
|
|
|
property alias title: titleItem.text
|
|
|
|
|
property alias body: bodyItem.text
|
2023-10-12 10:52:27 +00:00
|
|
|
|
spacing: 8
|
2023-06-14 19:06:13 +00:00
|
|
|
|
Paragraph {
|
|
|
|
|
id: titleItem
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
font.weight: Font.DemiBold
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Paragraph {
|
|
|
|
|
id: bodyItem
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusScrollView {
|
|
|
|
|
id: scrollView
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
contentWidth: availableWidth
|
|
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
id: layout
|
|
|
|
|
width: scrollView.availableWidth
|
2023-10-12 10:52:27 +00:00
|
|
|
|
spacing: 20
|
2023-06-14 19:06:13 +00:00
|
|
|
|
|
|
|
|
|
AgreementSection {
|
|
|
|
|
title: qsTr("Warning - Status desktop is currently in Beta")
|
2023-10-12 10:52:27 +00:00
|
|
|
|
body: qsTr(" • Status Desktop is incompatible with Status Mobile versions 1.x
|
|
|
|
|
• This version of Status may break or stop working without warning
|
|
|
|
|
• Communities created with this version may be broken by future releases
|
|
|
|
|
• Status desktop currently consumes large amounts of bandwidth")
|
2023-06-14 19:06:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AgreementSection {
|
2024-10-08 10:10:01 +00:00
|
|
|
|
body: qsTr("We are working to fix all these issues ASAP")
|
2023-06-14 19:06:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
|
id: agreeToUse
|
2023-11-15 16:16:09 +00:00
|
|
|
|
objectName: "desktopBetaAgreeCheckBox"
|
2023-06-14 19:06:13 +00:00
|
|
|
|
Layout.fillWidth: true
|
2023-10-12 10:52:27 +00:00
|
|
|
|
Layout.topMargin: -8 //reduced margin by design
|
|
|
|
|
text: qsTr("I’ve read the above and understand that Status Desktop is Beta software")
|
2023-06-14 19:06:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
|
id: readyToUse
|
2023-11-15 16:16:09 +00:00
|
|
|
|
objectName: "desktopBetaReadyCheckBox"
|
2023-06-14 19:06:13 +00:00
|
|
|
|
Layout.fillWidth: true
|
2023-10-12 10:52:27 +00:00
|
|
|
|
Layout.topMargin: -16 //reduced margin by design
|
|
|
|
|
text: qsTr("I’m ready to use Status Desktop Beta")
|
2023-06-14 19:06:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rightButtons: [
|
|
|
|
|
StatusButton {
|
|
|
|
|
text: qsTr("I’m ready to use Status Desktop Beta")
|
|
|
|
|
enabled: agreeToUse.checked && readyToUse.checked
|
|
|
|
|
onClicked: root.close()
|
2023-11-15 16:16:09 +00:00
|
|
|
|
objectName: "desktopBetaStatusButton"
|
2023-06-14 19:06:13 +00:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|