mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
* fix: fixed links on page with service description * fix: fixed subscription text color * chore: update ru translations * chore: add save button * fix: ru translation fixes
38 lines
960 B
QML
38 lines
960 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
import Style 1.0
|
|
|
|
import "../Controls2/TextTypes"
|
|
|
|
ParagraphTextType {
|
|
id: root
|
|
|
|
property string termsUrl: ""
|
|
property string privacyUrl: ""
|
|
|
|
Layout.fillWidth: true
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
textFormat: Text.RichText
|
|
color: AmneziaStyle.color.mutedGray
|
|
font.pixelSize: 12
|
|
lineHeight: 1.35
|
|
lineHeightMode: Text.ProportionalHeight
|
|
|
|
text: qsTr("By continuing, you agree to the <a href=\"%1\" style=\"color: %3;\">Terms of Use</a> and <a href=\"%2\" style=\"color: %3;\">Privacy Policy</a>")
|
|
.arg(root.termsUrl)
|
|
.arg(root.privacyUrl)
|
|
.arg(AmneziaStyle.color.goldenApricotString)
|
|
|
|
onLinkActivated: function(link) {
|
|
Qt.openUrlExternally(link)
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
acceptedButtons: Qt.NoButton
|
|
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
|
|
}
|
|
}
|