diff --git a/application/application.pro b/application/application.pro index 41aafa3..ea40c1a 100644 --- a/application/application.pro +++ b/application/application.pro @@ -64,7 +64,10 @@ OTHER_FILES += service/harbour-batterybuddy.service service.files = service service.path = /usr/share/$${TARGET} -INSTALLS += service +images.files = images +images.path = /usr/share/$${TARGET} + +INSTALLS += service images # Begin: include sound files diff --git a/application/images/Ko-fi_Icon_RGB_rounded.png b/application/images/Ko-fi_Icon_RGB_rounded.png new file mode 100644 index 0000000..995171e Binary files /dev/null and b/application/images/Ko-fi_Icon_RGB_rounded.png differ diff --git a/application/qml/pages/AboutPage.qml b/application/qml/pages/AboutPage.qml index 75267e6..54b21f9 100644 --- a/application/qml/pages/AboutPage.qml +++ b/application/qml/pages/AboutPage.qml @@ -81,6 +81,29 @@ Page { text: "Copyright 2019-2020 Matti Viljanen" } + AboutLabel { + font.pixelSize: Theme.fontSizeSmall + color: Theme.secondaryColor + text: qsTr("If you like my work and would like to support me, you can buy me a coffee!") + } + + BackgroundItem { + anchors.horizontalCenter: parent.horizontalCenter + width: Theme.iconSizeExtraLarge * 1.2 + height: Theme.iconSizeExtraLarge * 1.2 + onClicked: Qt.openUrlExternally("https://ko-fi.com/direc85") + contentItem.radius: Theme.paddingSmall + + Image { + anchors.centerIn: parent + source: Qt.resolvedUrl("/usr/share/harbour-batterybuddy/images/Ko-fi_Icon_RGB_rounded.png") + width: Theme.iconSizeExtraLarge + height: Theme.iconSizeExtraLarge + smooth: true + asynchronous: true + } + } + AboutLabel { font.pixelSize: Theme.fontSizeSmall color: Theme.secondaryColor