Add sponsor link to About dialog
Add a styled '❤️ Sponsor' GitHub Sponsors link to the About dialog (ytsage_dialogs_base.py). The change creates a QLabel with an external href to the sponsor page, enables openExternalLinks, and appends it to the info layout so the About dialog displays a sponsor call-to-action.
This commit is contained in:
@@ -240,6 +240,11 @@ class AboutDialog(QDialog):
|
|||||||
repo_label.setOpenExternalLinks(True)
|
repo_label.setOpenExternalLinks(True)
|
||||||
info_layout.addWidget(repo_label)
|
info_layout.addWidget(repo_label)
|
||||||
|
|
||||||
|
sponsor_link = '<a href="https://github.com/sponsors/oop7" style="color: #ea4aaa; text-decoration: none; font-size: 10px; font-weight: bold;">❤️ Sponsor</a>'
|
||||||
|
sponsor_label = QLabel(sponsor_link)
|
||||||
|
sponsor_label.setOpenExternalLinks(True)
|
||||||
|
info_layout.addWidget(sponsor_label)
|
||||||
|
|
||||||
# Center the info layout
|
# Center the info layout
|
||||||
info_container = QHBoxLayout()
|
info_container = QHBoxLayout()
|
||||||
info_container.addStretch()
|
info_container.addStretch()
|
||||||
|
|||||||
Reference in New Issue
Block a user