Add image to GitHub link button
This commit is contained in:
parent
a31cf8b003
commit
5ba91376b7
3 changed files with 6 additions and 3 deletions
BIN
application/images/GitHub-Mark-120px-plus.png
Normal file
BIN
application/images/GitHub-Mark-120px-plus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
application/images/GitHub-Mark-Light-120px-plus.png
Normal file
BIN
application/images/GitHub-Mark-Light-120px-plus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
|
@ -135,9 +135,12 @@ Page {
|
|||
text: qsTr("Contributions and translations are always appreciated!")
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "GitHub"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
ImageButton {
|
||||
source: Qt.resolvedUrl(
|
||||
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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue