Skip to content

Commit

Permalink
fix(applications): improve icon scaling for better aspect ratio prese…
Browse files Browse the repository at this point in the history
…rvation
  • Loading branch information
amnweb committed Jan 6, 2025
1 parent 1c6ecbe commit cd2a65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/widgets/yasb/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _update_label(self):
label.setProperty("class", "label")
icon = app_data['icon']
if os.path.isfile(icon):
pixmap = QPixmap(icon).scaled(self._image_icon_size, self._image_icon_size)
pixmap = QPixmap(icon).scaled(self._image_icon_size, self._image_icon_size, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation)
label.setPixmap(pixmap)
else:
label.setText(icon)
Expand Down

0 comments on commit cd2a65a

Please sign in to comment.