forked from Silverfish/proton-bridge
GODT-1369: Fix link render and wording in Help view
This commit is contained in:
@ -93,21 +93,15 @@ SettingsView {
|
|||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
type: Label.Caption
|
type: Label.Caption
|
||||||
color: root.colorScheme.text_weak
|
color: root.colorScheme.text_weak
|
||||||
textFormat: Text.RichText
|
textFormat: Text.StyledText
|
||||||
linkColor: root.colorScheme.interaction_norm_active
|
linkColor: root.colorScheme.interaction_norm_active
|
||||||
|
|
||||||
text: {
|
horizontalAlignment: Text.AlignHCenter
|
||||||
var version = root.backend.version
|
|
||||||
var license = qsTr("License")
|
text: qsTr("Proton Mail Bridge v%1<br>© 2021 Proton Technologies AG<br>%2 %3").
|
||||||
var licensePath = "file://"+root.backend.licensePath
|
arg(root.backend.version).
|
||||||
var release= qsTr("Release notes")
|
arg(link("file://"+root.backend.licensePath, qsTr("License"))).
|
||||||
var releaseNotesLink = root.backend.releaseNotesLink
|
arg(link(root.backend.releaseNotesLink, qsTr("Release notes")))
|
||||||
return `<p style="text-align:center;">Proton Mail Bridge v${version}<br>
|
|
||||||
© 2021 Proton Technologies AG<br>
|
|
||||||
<a style="color: ${linkColor};" href="${licensePath}">${license}</a>
|
|
||||||
<a style="color: ${linkColor};" href="${releaseNotesLink}">${release}</a>
|
|
||||||
</p>`
|
|
||||||
}
|
|
||||||
|
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user