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
|
|
|
|
|
|
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
|
|
|
|
|
|
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()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
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
|
2022-05-25 08:32:00 +00:00
|
|
|
|
Image {
|
|
|
|
|
id: statusIcon
|
|
|
|
|
width: 80
|
|
|
|
|
height: 80
|
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2022-06-20 12:28:36 +00:00
|
|
|
|
source: Style.png("status-logo")
|
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
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: 22
|
|
|
|
|
font.bold: true
|
|
|
|
|
text: root.store.getCurrentVersion()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.pixelSize: 15
|
|
|
|
|
text: qsTr("Current Version")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 17}
|
|
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
|
icon.name: "info"
|
|
|
|
|
text: qsTr("Release Notes")
|
2022-10-13 19:02:40 +00:00
|
|
|
|
onClicked: {
|
|
|
|
|
root.store.getReleaseNotes()
|
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
} // Column
|
|
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
|
title: qsTr("Our Principles")
|
2022-05-07 11:45:15 +00:00
|
|
|
|
Layout.fillWidth: true
|
2022-05-25 08:32:00 +00:00
|
|
|
|
implicitHeight: 64
|
|
|
|
|
components: [
|
|
|
|
|
StatusIcon {
|
2022-10-24 15:43:43 +00:00
|
|
|
|
icon: "next"
|
2022-05-25 08:32:00 +00:00
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-10-24 15:43:43 +00:00
|
|
|
|
onClicked: root.store.openLink("https://status.im/about/#our-principles")
|
2020-06-17 21:05:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-25 08:32:00 +00:00
|
|
|
|
Column {
|
2022-05-07 11:45:15 +00:00
|
|
|
|
Layout.fillWidth: true
|
2022-05-25 08:32:00 +00:00
|
|
|
|
spacing: 4
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
text: qsTr("Status desktop’s GitHub Repositories")
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
|
font.pixelSize: 15
|
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("Status Desktop")
|
|
|
|
|
icon.width: 0
|
|
|
|
|
onClicked: {
|
2022-10-13 19:02:40 +00:00
|
|
|
|
root.store.openLink("https://github.com/status-im/status-desktop")
|
2021-01-14 13:23:48 +00:00
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("Status Go")
|
|
|
|
|
icon.width: 0
|
|
|
|
|
onClicked: {
|
2022-10-13 19:02:40 +00:00
|
|
|
|
root.store.openLink("https://github.com/status-im/status-go")
|
2021-01-14 13:23:48 +00:00
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("StatusQ")
|
|
|
|
|
icon.width: 0
|
2021-01-14 13:23:48 +00:00
|
|
|
|
onClicked: {
|
2022-10-13 19:02:40 +00:00
|
|
|
|
root.store.openLink("https://github.com/status-im/statusq")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("go-waku")
|
|
|
|
|
icon.width: 0
|
|
|
|
|
onClicked: {
|
2022-10-13 19:02:40 +00:00
|
|
|
|
root.store.openLink("https://github.com/status-im/go-waku")
|
2021-01-14 13:23:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-17 21:05:59 +00:00
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
spacing: 4
|
|
|
|
|
StatusBaseText {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
|
text: qsTr("Legal & Privacy Documents")
|
|
|
|
|
font.pixelSize: 15
|
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("Terms of Use")
|
|
|
|
|
icon.width: 0
|
2022-10-13 19:02:40 +00:00
|
|
|
|
onClicked: {
|
|
|
|
|
root.store.openLink("https://status.im/terms-of-use/")
|
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
|
|
|
|
text: qsTr("Privacy Policy")
|
|
|
|
|
icon.width: 0
|
|
|
|
|
onClicked: {
|
2022-10-13 19:02:40 +00:00
|
|
|
|
root.store.openLink("https://status.im/privacy-policy/")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
leftPadding: Style.current.padding
|
|
|
|
|
rightPadding: Style.current.padding
|
2022-04-04 11:26:30 +00:00
|
|
|
|
text: qsTr("Software License")
|
2022-05-25 08:32:00 +00:00
|
|
|
|
icon.width: 0
|
2022-10-13 19:02:40 +00:00
|
|
|
|
onClicked: {
|
|
|
|
|
root.store.openLink("https://github.com/status-im/status-desktop/blob/master/LICENSE.md")
|
|
|
|
|
}
|
2022-05-25 08:32:00 +00:00
|
|
|
|
}
|
|
|
|
|
} // Column
|
2020-06-17 21:05:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|