mirror of
https://github.com/Omni-guides/Jackify.git
synced 2026-08-14 03:13:44 +02:00
Release v0.7.1 - Remote Manifest System, Stability Fixes
This commit is contained in:
@@ -72,30 +72,43 @@ class MainWindowUIMixin:
|
||||
bottom_bar_style += " border: 2px solid lime;"
|
||||
bottom_bar.setStyleSheet(bottom_bar_style)
|
||||
|
||||
# Three-zone layout (left / center / right) with equal stretch factors on the
|
||||
# outer zones, so the center zone (Ko-fi) stays visually centered on the bar
|
||||
# regardless of how wide the version label or Settings/About block are.
|
||||
left_zone = QWidget()
|
||||
left_zone_layout = QHBoxLayout(left_zone)
|
||||
left_zone_layout.setContentsMargins(0, 0, 0, 0)
|
||||
version_label = QLabel(f"Jackify v{__version__}")
|
||||
version_label.setStyleSheet("color: #bbb; font-size: 13px;")
|
||||
bottom_bar_layout.addWidget(version_label, alignment=Qt.AlignLeft)
|
||||
bottom_bar_layout.addStretch(1)
|
||||
left_zone_layout.addWidget(version_label, alignment=Qt.AlignLeft)
|
||||
left_zone_layout.addStretch(1)
|
||||
bottom_bar_layout.addWidget(left_zone, 1)
|
||||
|
||||
kofi_link = QLabel('<a href="#" style="color:#3fd0ea; text-decoration:none;">Support on Ko-fi</a>')
|
||||
kofi_link.setStyleSheet("color: #3fd0ea; font-size: 13px;")
|
||||
kofi_link.setTextInteractionFlags(Qt.TextBrowserInteraction)
|
||||
kofi_link.setOpenExternalLinks(False)
|
||||
kofi_link.linkActivated.connect(lambda: self._open_url("https://ko-fi.com/omni1"))
|
||||
kofi_link.setToolTip("Support Jackify development")
|
||||
bottom_bar_layout.addWidget(kofi_link)
|
||||
bottom_bar_layout.addStretch(1)
|
||||
bottom_bar_layout.addWidget(kofi_link, 0, alignment=Qt.AlignCenter)
|
||||
|
||||
right_zone = QWidget()
|
||||
right_zone_layout = QHBoxLayout(right_zone)
|
||||
right_zone_layout.setContentsMargins(0, 0, 0, 0)
|
||||
right_zone_layout.addStretch(1)
|
||||
settings_btn = QLabel('<a href="#" style="color:#6cf; text-decoration:none;">Settings</a>')
|
||||
settings_btn.setStyleSheet("color: #6cf; font-size: 13px; padding-right: 8px;")
|
||||
settings_btn.setTextInteractionFlags(Qt.TextBrowserInteraction)
|
||||
settings_btn.setOpenExternalLinks(False)
|
||||
settings_btn.linkActivated.connect(self.open_settings_dialog)
|
||||
bottom_bar_layout.addWidget(settings_btn, alignment=Qt.AlignRight)
|
||||
right_zone_layout.addWidget(settings_btn, alignment=Qt.AlignRight)
|
||||
about_btn = QLabel('<a href="#" style="color:#6cf; text-decoration:none;">About</a>')
|
||||
about_btn.setStyleSheet("color: #6cf; font-size: 13px; padding-right: 8px;")
|
||||
about_btn.setTextInteractionFlags(Qt.TextBrowserInteraction)
|
||||
about_btn.setOpenExternalLinks(False)
|
||||
about_btn.linkActivated.connect(self.open_about_dialog)
|
||||
bottom_bar_layout.addWidget(about_btn, alignment=Qt.AlignRight)
|
||||
right_zone_layout.addWidget(about_btn, alignment=Qt.AlignRight)
|
||||
bottom_bar_layout.addWidget(right_zone, 1)
|
||||
|
||||
central_widget = QWidget()
|
||||
main_layout = QVBoxLayout()
|
||||
|
||||
Reference in New Issue
Block a user