From af5c35ae66c39fd200e5cdfcb23b769f5b674841 Mon Sep 17 00:00:00 2001 From: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> Date: Sat, 7 Sep 2024 23:42:47 +0530 Subject: [PATCH] Update AboutTab.qml Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> --- AboutTab.qml | 85 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 61 insertions(+), 24 deletions(-) diff --git a/AboutTab.qml b/AboutTab.qml index 96a6250..773f586 100644 --- a/AboutTab.qml +++ b/AboutTab.qml @@ -52,36 +52,73 @@ Item { "\n\nThis customized iOS/Android version, built and distributed by VU3LVO, is specifically designed for use by a select group and is not intended for public use at the moment.") } - // Buy Me a Coffee Button - This contribution will help me pay for the Apple developer program and keep iOS app live. - Rectangle { - id: buyMeCoffeeButton - width: 200 - height: 50 - color: "#FFDD00" // Color matching Buy Me a Coffee branding - radius: 10 - border.color: "#333333" + // Row to align buttons side-by-side + Row { + id: buttonRow anchors.horizontalCenter: parent.horizontalCenter anchors.top: aboutText.bottom - anchors.topMargin: 20 // Space between text and button + anchors.topMargin: 20 // Space between text and buttons + spacing: 10 // Space between buttons - Text { - id: buttonText - anchors.centerIn: parent - text: qsTr("Buy Me a Coffee") - color: "#333333" - font.bold: true + // Buy Me a Coffee Button + Rectangle { + id: buyMeCoffeeButton + width: 200 + height: 50 + color: "#FFDD00" // Color matching Buy Me a Coffee branding + radius: 10 + border.color: "#333333" + + Text { + id: buttonText + anchors.centerIn: parent + text: qsTr("Buy Me a Coffee") + color: "#333333" + font.bold: true + } + + MouseArea { + anchors.fill: parent + onClicked: { + Qt.openUrlExternally("https://buymeacoffee.com/rohithz") + } + onPressed: { + buyMeCoffeeButton.color = "#FFC700" // Slight color change on press + } + onReleased: { + buyMeCoffeeButton.color = "#FFDD00" + } + } } - MouseArea { - anchors.fill: parent - onClicked: { - Qt.openUrlExternally("https://buymeacoffee.com/rohithz") + // PayPal Button + Rectangle { + id: paypalButton + width: 200 + height: 50 + color: "#0070BA" + radius: 10 + border.color: "#333333" + + Text { + id: paypalButtonText + anchors.centerIn: parent + text: qsTr("Contribute via PayPal") + color: "white" + font.bold: true } - onPressed: { - buyMeCoffeeButton.color = "#FFC700" // Slight color change on press - } - onReleased: { - buyMeCoffeeButton.color = "#FFDD00" + + MouseArea { + anchors.fill: parent + onClicked: { + Qt.openUrlExternally("https://www.paypal.com/ncp/payment/NU89529268M2W") + } + onPressed: { + paypalButton.color = "#00548F" // Slight color change on press + } + onReleased: { + paypalButton.color = "#0070BA" + } } } }