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,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.") "\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
Rectangle { Row {
id: buyMeCoffeeButton id: buttonRow
width: 200
height: 50
color: "#FFDD00" // Color matching Buy Me a Coffee branding
radius: 10
border.color: "#333333"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: aboutText.bottom 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 { // Buy Me a Coffee Button
id: buttonText Rectangle {
anchors.centerIn: parent id: buyMeCoffeeButton
text: qsTr("Buy Me a Coffee") width: 200
color: "#333333" height: 50
font.bold: true 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 { // PayPal Button
anchors.fill: parent Rectangle {
onClicked: { id: paypalButton
Qt.openUrlExternally("https://buymeacoffee.com/rohithz") 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 MouseArea {
} anchors.fill: parent
onReleased: { onClicked: {
buyMeCoffeeButton.color = "#FFDD00" Qt.openUrlExternally("https://www.paypal.com/ncp/payment/NU89529268M2W")
}
onPressed: {
paypalButton.color = "#00548F" // Slight color change on press
}
onReleased: {
paypalButton.color = "#0070BA"
}
} }
} }
} }