summaryrefslogtreecommitdiff
path: root/gui/components/Help.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:10:26 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:10:26 +0100
commit07ad41230d663816e9894b59b110fa2f7075ca18 (patch)
treedfa951c61263f46bf54c40f04276ac401444fafa /gui/components/Help.qml
parentb25ec7c923924e53ddb65f9a34e9a669dcf066c7 (diff)
[ui] style help links
Diffstat (limited to 'gui/components/Help.qml')
-rw-r--r--gui/components/Help.qml28
1 files changed, 26 insertions, 2 deletions
diff --git a/gui/components/Help.qml b/gui/components/Help.qml
index 6148ece..ed6f543 100644
--- a/gui/components/Help.qml
+++ b/gui/components/Help.qml
@@ -1,9 +1,12 @@
-import QtQuick 2.9
+import QtQuick 2.15
import QtQuick.Controls 2.2
+import "../themes/themes.js" as Theme
+
ThemedPage {
title: qsTr("Help")
property var issueTracker: "https://0xacab.org/leap/bitmask-vpn/issues"
+ property var uninstall: "https://0xacab.org/leap/bitmask-vpn/-/blob/main/docs/uninstall.md"
Column {
anchors.centerIn: parent
@@ -11,15 +14,36 @@ ThemedPage {
Text {
font.pixelSize: 14
+ textFormat: Text.RichText
+ color: Theme.green
anchors.horizontalCenter: parent.horizontalCenter
text: getDummyLink(qsTr("Troubleshooting and support"))
onLinkActivated: Qt.openUrlExternally(ctx.helpURL)
+ HoverHandler {
+ cursorShape: Qt.PointingHandCursor
+ }
}
Text {
font.pixelSize: 14
+ textFormat: Text.RichText
+ color: Theme.green
anchors.horizontalCenter: parent.horizontalCenter
text: getDummyLink(qsTr("Report a bug"))
onLinkActivated: Qt.openUrlExternally(issueTracker)
+ HoverHandler {
+ cursorShape: Qt.PointingHandCursor
+ }
+ }
+ Text {
+ font.pixelSize: 14
+ textFormat: Text.RichText
+ color: Theme.green
+ anchors.horizontalCenter: parent.horizontalCenter
+ text: getDummyLink(qsTr("How to uninstall"))
+ onLinkActivated: Qt.openUrlExternally(uninstall)
+ HoverHandler {
+ cursorShape: Qt.PointingHandCursor
+ }
}
/* XXX needs implementation in the backend
Button {
@@ -30,6 +54,6 @@ ThemedPage {
}
function getDummyLink(text) {
- return "<a href='#'>" + text + "</a>"
+ return "<style>a:link {color: '" + Theme.green + "';}</style><a href=\"#\">" + text + "</a>"
}
}