From be36ce80cac534afda4393fc6bd904d489b63361 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 17 Sep 2021 20:34:32 +0200 Subject: [ui] more dialogs icons, new font --- gui/components/Help.qml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'gui/components/Help.qml') diff --git a/gui/components/Help.qml b/gui/components/Help.qml index aced273..460dde4 100644 --- a/gui/components/Help.qml +++ b/gui/components/Help.qml @@ -1,32 +1,33 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 -Page { +ThemedPage { title: qsTr("Help") + property var issueTracker: "https://0xacab.org/leap/bitmask-vpn/issues" Column { anchors.centerIn: parent spacing: 10 - Button { + Text { + font.pixelSize: 14 anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("Donate") - onClicked: stackView.push("Donate.qml") + text: getDummyLink(qsTr("Troubleshooting and support")) + onLinkActivated: Qt.openUrlExternally(ctx.helpURL) } - Button { + Text { + font.pixelSize: 14 anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("Terms of Service") - onClicked: stackView.push("Donate.qml") + text: getDummyLink(qsTr("Report a bug")) + onLinkActivated: Qt.openUrlExternally(issueTracker) } Button { anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("Contact Support") - onClicked: stackView.push("Donate.qml") - } - Button { - anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("Report bug") - onClicked: stackView.push("Donate.qml") + text: qsTr("Open logs") } } + + function getDummyLink(text) { + return "" + text + "" + } } -- cgit v1.2.3