diff options
Diffstat (limited to 'gui/components/About.qml')
-rw-r--r-- | gui/components/About.qml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gui/components/About.qml b/gui/components/About.qml index cceaad4..291c491 100644 --- a/gui/components/About.qml +++ b/gui/components/About.qml @@ -26,6 +26,7 @@ ThemedPage { width: parent.width Text { + textFormat: Text.RichText width: parent.width - 40 color: Theme.fontColor font.pixelSize: 12 @@ -58,8 +59,6 @@ ThemedPage { readOnly: true selectByMouse: true text: getVersion() - //horizontalAlignment: Text.AlignCenter - //anchors.horizontalCenter: parent.horizontalCenter } } @@ -79,16 +78,19 @@ ThemedPage { if (_donateURL) { //: donation text of the about dialog _donateTXT = qsTr( - "<p>This service is paid for entirely by donations from users like you. <a href=\"%1\">Please donate</a>.</p>").arg( - _donateURL) + "<p>This service is paid for entirely by donations from users like you. <a href=\"%1\">Please donate</a>.</p>").arg(_donateURL) + } + if (_provider == "Riseup") { + // XXX this is a quick workaround. About-us should be parametrized too. + _provider = "<a href=\"https://riseup.net/about-us\">" + ctx.provider + "</a>" } //: about dialog //: %1 -> application name //: %2 -> provider name //: %3 -> donation text if activated - var _txt = qsTr( - "<p>%1 is an easy, fast, and secure VPN service from %2. %1 does not require a user account, keep logs, or track you in any way.</p> %3 <p>By using this application, you agree to the <a href=\"%4\">Terms of Service</a>. This service is provided as-is, without any warranty, and is intended for people who work to make the world a better place.</p>").arg( - _name).arg(_provider).arg(_donateTXT).arg(_tosURL) + //: %4 -> terms of service + let _txt = qsTr( + "<style>a:link {color: '" + Theme.green + "';}</style><p>%1 is an easy, fast, and secure VPN service from %2. %1 does not require a user account, keep logs, or track you in any way.</p> %3 <p>By using this application, you agree to the <a href=\"%4\">Terms of Service</a>. This service is provided as-is, without any warranty, and is intended for people who work to make the world a better place.</p>").arg(_name).arg(_provider).arg(_donateTXT).arg(_tosURL) return _txt } |