status-desktop/ui/app/AppLayouts/Profile/views/AboutView.qml

84 lines
2.4 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import utils 1.0
import shared 1.0
import shared.status 1.0
2020-05-27 21:28:25 +00:00
SettingsContentBase {
id: root
2020-05-27 21:28:25 +00:00
property var store
property var globalStore
ColumnLayout {
spacing: Constants.settingsSection.itemSpacing
width: root.contentWidth
2020-09-23 17:22:05 +00:00
// TODO: replace with StatusListItem
StatusSectionDescItem {
Layout.fillWidth: true
Layout.leftMargin: Style.current.padding
Layout.rightMargin: Style.current.padding
2021-02-18 16:36:05 +00:00
//% "App version"
name: qsTrId("version")
//% "Version: %1"
description: qsTrId("version---1").arg(root.store.getCurrentVersion())
tooltipUnder: true
store: root.globalStore
2020-09-23 17:22:05 +00:00
}
// TODO: replace with StatusListItem
StatusSectionDescItem {
Layout.fillWidth: true
Layout.leftMargin: Style.current.padding
Layout.rightMargin: Style.current.padding
2021-02-18 16:36:05 +00:00
//% "Node version "
name: qsTrId("node-version-")
description: root.store.nodeVersion()
store: root.globalStore
2020-09-23 17:22:05 +00:00
}
2020-06-17 21:05:59 +00:00
StatusFlatButton {
Layout.fillWidth: true
leftPadding: Style.current.padding
rightPadding: Style.current.padding
2021-02-18 16:36:05 +00:00
//% "Check for updates"
text: qsTrId("check-for-updates")
loading: root.store.fetchingUpdate
onClicked: root.store.checkForUpdates()
icon.width: 0
2020-06-17 21:05:59 +00:00
}
StatusBaseText {
Layout.fillWidth: true
Layout.leftMargin: Style.current.padding
Layout.rightMargin: Style.current.padding
2021-02-18 16:36:05 +00:00
//% "Privacy Policy"
text: qsTrId("privacy-policy")
font.pixelSize: 15
color: Theme.palette.primaryColor1
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: {
parent.font.underline = true
}
onExited: {
parent.font.underline = false
}
onClicked: {
Global.openLink("https://status.im/privacy-policy/")
}
}
2020-06-17 21:05:59 +00:00
}
}
}