Update AboutTab.qml

Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com>
This commit is contained in:
rohithzmoi 2024-09-07 23:42:47 +05:30 committed by GitHub
parent a335bb630c
commit af5c35ae66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 61 additions and 24 deletions

View File

@ -52,7 +52,15 @@ 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.") "\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. // 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 buttons
spacing: 10 // Space between buttons
// Buy Me a Coffee Button
Rectangle { Rectangle {
id: buyMeCoffeeButton id: buyMeCoffeeButton
width: 200 width: 200
@ -60,9 +68,6 @@ Item {
color: "#FFDD00" // Color matching Buy Me a Coffee branding color: "#FFDD00" // Color matching Buy Me a Coffee branding
radius: 10 radius: 10
border.color: "#333333" border.color: "#333333"
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: aboutText.bottom
anchors.topMargin: 20 // Space between text and button
Text { Text {
id: buttonText id: buttonText
@ -85,6 +90,38 @@ Item {
} }
} }
} }
// 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
}
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"
}
}
}
}
} }
} }
} }