Add button to visit plug-in website

There are a lot of buttons leading to websites now: An arrow leading to the author website. An author name leading to the author website. A 'read more' label leading to the plug-in website and this new button leading to the plug-in website. Maybe we should raise this with the designer.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 18:46:56 +01:00
parent 09b4bd2ac2
commit ffd1a4d812
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 13 additions and 0 deletions

View file

@ -406,6 +406,16 @@ Rectangle
color: UM.Theme.getColor("text")
wrapMode: Text.Wrap
}
Cura.SecondaryButton
{
anchors.horizontalCenter: parent.horizontalCenter
text: catalog.i18nc("@button", "Visit plug-in website")
iconSource: UM.Theme.getIcon("Globe")
outlineColor: "transparent"
onClicked: Qt.openUrlExternally(packageData.packageInfoUrl)
}
}
}