Add voluntary Donationware support to About and public docs

This commit is contained in:
2026-11-27 01:40:47 -06:00
parent 154cbab8d2
commit 7234f828d7
9 changed files with 47 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ from PySide6.QtWidgets import (
)
from .branding import (
APPLICATION_IMAGE, COMPANY_LOGO, COPYRIGHT, DEVELOPER, DESCRIPTION, INSTALL_ID,
APPLICATION_IMAGE, COMPANY_LOGO, COPYRIGHT, DEVELOPER, DESCRIPTION, DONATION_URL, INSTALL_ID,
WEBSITE, asset, document, open_issue_tracker,
)
from .software_license import LICENSE_LABEL, LicenseDialog
@@ -141,6 +141,7 @@ class AboutPage(QWidget):
license_label = QLabel(LICENSE_LABEL if bundled else "License file unavailable",
textFormat=Qt.TextFormat.PlainText)
details.addRow("Software license", license_label)
details.addRow("Distribution model", QLabel("Donationware"))
view = QPushButton("Application Details")
view.clicked.connect(self.show_details)
self.view_license = QPushButton("View License")
@@ -149,11 +150,22 @@ class AboutPage(QWidget):
buttons = QHBoxLayout()
buttons.addWidget(view)
buttons.addWidget(self.view_license)
donate = QPushButton("Donate")
donate.clicked.connect(lambda: QDesktopServices.openUrl(QUrl(DONATION_URL)))
buttons.addWidget(donate)
self.report_issue = QPushButton(self.style().standardIcon(ISSUE_ICON), "Report Issue")
self.report_issue.clicked.connect(open_issue_tracker)
buttons.addWidget(self.report_issue)
buttons.addStretch()
details.addRow(buttons)
donationware = QLabel(
"Adaptive Resource Monitor is Donationware. If you find this application useful, "
"voluntary donations are appreciated and help support continued development. "
"Donations are not required and do not provide additional functionality, "
"preferential support or development priority."
)
donationware.setWordWrap(True)
details.addRow(donationware)
layout.addWidget(information)
self.updates = UpdatePanel(data_root, installation()[0])

View File

@@ -14,6 +14,7 @@ DEVELOPER = "Sonja M Thomas"
PUBLISHER = "SLT Design Creations, LLC"
COPYRIGHT = f"Copyright 2010-2026 {PUBLISHER}"
WEBSITE = "https://www.designcreations.us/"
DONATION_URL = "https://www.paypal.com/donate/?hosted_button_id=SWTCLV72MYG3U"
SUPPORT_URL = "https://www.designcreations.us/contact/index.php"
ISSUE_TRACKER_URL = "https://phantom.zapto.org/gitea/sonja/Adaptive_Resource_Monitor/issues"
APP_MODEL_ID = "SLTDesignCreations.AdaptiveResourceMonitor"