mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 05:54:15 +02:00
### Features
- Applications search
- Now when you right-click a selected application you can:
- retrieve its information
- retrieve its commit history
- downgrade
- install and uninstall it
- "About" window available when right-clicking the tray icon.
### Improvements
- Performance and memory usage
- Adding tooltips to toolbar buttons
- "Update ?" column renamed to "Upgrade ?"
- Management panel title renamed
- Showing runtime apps when no app is available
- Allowing to specify a custom app translation with the environment variable **FPAKMAN_LOCALE**
- Adding expiration time for cached app data. Default to 1 hour. The environment variable **FPAKMAN_CACHE_EXPIRATION** can change this value.
- Now the application accepts arguments related to environment variables as well. Check 'README.md'.
- Minor GUI improvements
- Notifying only new updates
- New icon
- Progress bar
72 lines
2.5 KiB
Python
72 lines
2.5 KiB
Python
from PyQt5.QtCore import Qt
|
|
from PyQt5.QtGui import QPixmap
|
|
from PyQt5.QtWidgets import QVBoxLayout, QDialog, QLabel
|
|
|
|
from fpakman import __version__
|
|
from fpakman.core import resource
|
|
|
|
PROJECT_URL = 'https://github.com/vinifmor/fpakman'
|
|
LICENSE_URL = 'https://raw.githubusercontent.com/vinifmor/fpakman/master/LICENSE'
|
|
|
|
|
|
class AboutDialog(QDialog):
|
|
|
|
def __init__(self, locale_keys: dict):
|
|
super(AboutDialog, self).__init__()
|
|
self.setWindowTitle(locale_keys['tray.action.about'])
|
|
layout = QVBoxLayout()
|
|
self.setLayout(layout)
|
|
|
|
label_logo = QLabel(self)
|
|
label_logo.setPixmap(QPixmap(resource.get_path('img/logo.svg')))
|
|
label_logo.setAlignment(Qt.AlignCenter)
|
|
layout.addWidget(label_logo)
|
|
|
|
label_name = QLabel('fpakman ( {} {} )'.format(locale_keys['flatpak.info.version'].lower(), __version__))
|
|
label_name.setStyleSheet('font-weight: bold;')
|
|
label_name.setAlignment(Qt.AlignCenter)
|
|
layout.addWidget(label_name)
|
|
|
|
layout.addWidget(QLabel(''))
|
|
|
|
line_desc = QLabel(self)
|
|
line_desc.setStyleSheet('font-size: 10px; font-weight: bold;')
|
|
line_desc.setText(locale_keys['about.info.desc'])
|
|
line_desc.setAlignment(Qt.AlignCenter)
|
|
line_desc.setMinimumWidth(400)
|
|
layout.addWidget(line_desc)
|
|
|
|
layout.addWidget(QLabel(''))
|
|
|
|
label_more_info = QLabel()
|
|
label_more_info.setStyleSheet('font-size: 9px;')
|
|
label_more_info.setText(locale_keys['about.info.link'] + ": <a href='{url}'>{url}</a>".format(url=PROJECT_URL))
|
|
label_more_info.setOpenExternalLinks(True)
|
|
label_more_info.setAlignment(Qt.AlignCenter)
|
|
layout.addWidget(label_more_info)
|
|
|
|
label_license = QLabel()
|
|
label_license.setStyleSheet('font-size: 9px;')
|
|
label_license.setText("<a href='{}'>{}</a>".format(LICENSE_URL, locale_keys['about.info.license']))
|
|
label_license.setOpenExternalLinks(True)
|
|
label_license.setAlignment(Qt.AlignCenter)
|
|
layout.addWidget(label_license)
|
|
|
|
layout.addWidget(QLabel(''))
|
|
|
|
label_rate = QLabel()
|
|
label_rate.setStyleSheet('font-size: 9px; font-weight: bold;')
|
|
label_rate.setText(locale_keys['about.info.rate'] + ' :)')
|
|
label_rate.setOpenExternalLinks(True)
|
|
label_rate.setAlignment(Qt.AlignCenter)
|
|
layout.addWidget(label_rate)
|
|
|
|
layout.addWidget(QLabel(''))
|
|
|
|
self.adjustSize()
|
|
self.setFixedSize(self.size())
|
|
|
|
def closeEvent(self, event):
|
|
event.ignore()
|
|
self.hide()
|