Add image to GitHub link button

This commit is contained in:
Matti Viljanen 2022-08-28 00:53:33 +03:00
parent a31cf8b003
commit 5ba91376b7
No known key found for this signature in database
GPG key ID: CF32A1495158F888
3 changed files with 6 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -135,9 +135,12 @@ Page {
text: qsTr("Contributions and translations are always appreciated!") text: qsTr("Contributions and translations are always appreciated!")
} }
Button { ImageButton {
text: "GitHub" source: Qt.resolvedUrl(
anchors.horizontalCenter: parent.horizontalCenter Theme.colorScheme === Theme.LightOnDark
? "/usr/share/harbour-batterybuddy/images/GitHub-Mark-Light-120px-plus.png"
: "/usr/share/harbour-batterybuddy/images/GitHub-Mark-120px-plus.png"
)
onClicked: Qt.openUrlExternally("https://github.com/direc85/harbour-batterybuddy") onClicked: Qt.openUrlExternally("https://github.com/direc85/harbour-batterybuddy")
} }