2020-06-17 19:18:31 +00:00
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2022-03-17 16:15:38 +00:00
|
|
|
|
import StatusQ.Controls 0.1
|
2022-05-25 08:32:00 +00:00
|
|
|
|
import StatusQ.Components 0.1
|
2023-09-22 10:08:28 +00:00
|
|
|
|
import StatusQ.Popups.Dialog 0.1
|
2022-05-25 08:32:00 +00:00
|
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
|
import shared 1.0
|
|
|
|
|
import shared.status 1.0
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
2022-05-07 11:45:15 +00:00
|
|
|
|
SettingsContentBase {
|
2021-10-06 09:16:39 +00:00
|
|
|
|
id: root
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
|
property var store
|
|
|
|
|
|
2023-06-12 17:54:19 +00:00
|
|
|
|
// TODO when we re-implement check for updates, put isProduction back
|
|
|
|
|
titleRowComponentLoader.active: false //root.store.isProduction
|
2022-05-25 08:32:00 +00:00
|
|
|
|
titleRowComponentLoader.sourceComponent: StatusButton {
|
|
|
|
|
size: StatusBaseButton.Size.Small
|
2022-04-04 11:26:30 +00:00
|
|
|
|
text: qsTr("Check for updates")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
onClicked: {
|
|
|
|
|
root.store.checkForUpdates()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
component LinkItem: StatusListItem {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
components: [
|
|
|
|
|
StatusIcon {
|
|
|
|
|
icon: "external-link"
|
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
component DocumentItem: StatusListItem {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
components: [
|
|
|
|
|
StatusIcon {
|
|
|
|
|
icon: "next"
|
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-07 11:45:15 +00:00
|
|
|
|
ColumnLayout {
|
|
|
|
|
spacing: Constants.settingsSection.itemSpacing
|
|
|
|
|
width: root.contentWidth
|
2020-09-23 17:22:05 +00:00
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
Column {
|
2022-05-07 11:45:15 +00:00
|
|
|
|
Layout.fillWidth: true
|
2023-07-26 14:34:21 +00:00
|
|
|
|
StatusIcon {
|
2022-05-25 08:32:00 +00:00
|
|
|
|
id: statusIcon
|
|
|
|
|
width: 80
|
|
|
|
|
height: 80
|
2024-05-07 21:11:20 +00:00
|
|
|
|
icon: root.store.isProduction ? Style.png("status-logo-circle") : Style.png("status-logo-dev-circle")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
2020-09-23 17:22:05 +00:00
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
Item { width: 1; height: 8}
|
2020-06-17 21:05:59 +00:00
|
|
|
|
|
2023-07-26 14:34:21 +00:00
|
|
|
|
StatusLinkText {
|
2022-05-25 08:32:00 +00:00
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: 22
|
|
|
|
|
font.bold: true
|
2023-07-26 14:34:21 +00:00
|
|
|
|
normalColor: Theme.palette.directColor1
|
|
|
|
|
text: (root.store.isProduction ? "" : "git:") + root.store.getCurrentVersion()
|
|
|
|
|
onClicked: root.store.getReleaseNotes()
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
text: qsTr("Current Version")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 17}
|
|
|
|
|
|
2023-07-26 14:34:21 +00:00
|
|
|
|
StatusLinkText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: 17
|
|
|
|
|
font.bold: true
|
|
|
|
|
normalColor: Theme.palette.directColor1
|
|
|
|
|
text: root.store.getStatusGoVersion()
|
2024-08-12 19:05:13 +00:00
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/status-go/tree/%1".arg(root.store.getStatusGoVersion()))
|
2023-07-26 14:34:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2023-09-22 10:08:28 +00:00
|
|
|
|
font.pixelSize: Style.current.additionalTextSize
|
2023-07-26 14:34:21 +00:00
|
|
|
|
text: qsTr("Status Go Version")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 17}
|
|
|
|
|
|
2024-08-12 19:05:13 +00:00
|
|
|
|
StatusLinkText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: 17
|
|
|
|
|
font.bold: true
|
|
|
|
|
normalColor: Theme.palette.directColor1
|
|
|
|
|
text: root.store.qtRuntimeVersion()
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/qt/qtreleasenotes/blob/dev/qt/%1/release-note.md".arg(text))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: Style.current.additionalTextSize
|
|
|
|
|
text: qsTr("Qt Version")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 17}
|
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
StatusButton {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
|
icon.name: "info"
|
|
|
|
|
text: qsTr("Release Notes")
|
2023-07-26 14:34:21 +00:00
|
|
|
|
visible: root.store.isProduction
|
2023-09-22 10:08:28 +00:00
|
|
|
|
onClicked: root.store.getReleaseNotes()
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
} // Column
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
ColumnLayout {
|
2022-05-07 11:45:15 +00:00
|
|
|
|
Layout.fillWidth: true
|
2023-09-22 10:08:28 +00:00
|
|
|
|
Layout.topMargin: Style.current.padding
|
|
|
|
|
|
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("Status Manifesto")
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
onClicked: root.store.openLink("https://status.app/manifesto")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusDialogDivider {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
}
|
2020-06-17 21:05:59 +00:00
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
StatusBaseText {
|
2023-09-22 10:08:28 +00:00
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: Style.current.padding
|
|
|
|
|
Layout.leftMargin: Style.current.padding
|
2022-05-25 08:32:00 +00:00
|
|
|
|
text: qsTr("Status desktop’s GitHub Repositories")
|
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("status-desktop")
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/status-desktop")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("status-go")
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/status-go")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("StatusQ")
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/status-desktop/tree/master/ui/StatusQ")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("go-waku")
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/go-waku")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
StatusDialogDivider {
|
2022-05-25 08:32:00 +00:00
|
|
|
|
Layout.fillWidth: true
|
2021-01-14 13:23:48 +00:00
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
2023-09-22 10:08:28 +00:00
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: Style.current.padding
|
|
|
|
|
Layout.leftMargin: Style.current.padding
|
2022-05-25 08:32:00 +00:00
|
|
|
|
text: qsTr("Legal & Privacy Documents")
|
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
DocumentItem {
|
|
|
|
|
title: qsTr("Terms of Use")
|
|
|
|
|
onClicked: Global.changeAppSectionBySectionType(Constants.appSection.profile,
|
|
|
|
|
Constants.settingsSubsection.about_terms)
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
DocumentItem {
|
2024-08-19 20:42:27 +00:00
|
|
|
|
title: qsTr("Privacy Policy")
|
2023-09-22 10:08:28 +00:00
|
|
|
|
onClicked: Global.changeAppSectionBySectionType(Constants.appSection.profile,
|
|
|
|
|
Constants.settingsSubsection.about_privacy)
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-22 10:08:28 +00:00
|
|
|
|
LinkItem {
|
|
|
|
|
title: qsTr("Software License")
|
|
|
|
|
onClicked: root.store.openLink("https://github.com/status-im/status-desktop/blob/master/LICENSE.md")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
2023-09-22 10:08:28 +00:00
|
|
|
|
}
|
2020-06-17 21:05:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|