mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[fix][about] icons scaling
This commit is contained in:
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- AUR:
|
- AUR:
|
||||||
- not treating **makedepends' as a list during dependency checking ( **anbox-git** installation was crashing )
|
- not treating **makedepends' as a list during dependency checking ( **anbox-git** installation was crashing )
|
||||||
- not considering the package name itself as *provided** during dependency checking ( **anbox-git** installation was crashing )
|
- not considering the package name itself as *provided** during dependency checking ( **anbox-git** installation was crashing )
|
||||||
|
- **About** window icons scaling
|
||||||
|
|
||||||
## [0.8.1] 2020-01-14
|
## [0.8.1] 2020-01-14
|
||||||
### Features:
|
### Features:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt, QSize
|
||||||
from PyQt5.QtGui import QPixmap
|
from PyQt5.QtGui import QPixmap, QIcon
|
||||||
from PyQt5.QtWidgets import QVBoxLayout, QDialog, QLabel, QWidget, QHBoxLayout
|
from PyQt5.QtWidgets import QVBoxLayout, QDialog, QLabel, QWidget, QHBoxLayout
|
||||||
|
|
||||||
from bauh import __version__, __app_name__, ROOT_DIR
|
from bauh import __version__, __app_name__, ROOT_DIR
|
||||||
@@ -55,8 +55,8 @@ class AboutDialog(QDialog):
|
|||||||
gems_widget.layout().addWidget(QLabel())
|
gems_widget.layout().addWidget(QLabel())
|
||||||
for gem_path in available_gems:
|
for gem_path in available_gems:
|
||||||
icon = QLabel()
|
icon = QLabel()
|
||||||
pxmap = QPixmap(gem_path + '/resources/img/{}.svg'.format(gem_path.split('/')[-1]))
|
icon_path = gem_path + '/resources/img/{}.svg'.format(gem_path.split('/')[-1])
|
||||||
icon.setPixmap(pxmap.scaled(24, 24, Qt.KeepAspectRatio, Qt.SmoothTransformation))
|
icon.setPixmap(QIcon(icon_path).pixmap(QSize(24, 24)))
|
||||||
gems_widget.layout().addWidget(icon)
|
gems_widget.layout().addWidget(icon)
|
||||||
gems_widget.layout().addWidget(QLabel())
|
gems_widget.layout().addWidget(QLabel())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user