Scaled open folder image with SmoothTransformation

This commit is contained in:
Miguel Jacq 2025-02-16 10:56:35 +11:00
parent ff90c91e97
commit 9e7800d051
No known key found for this signature in database
GPG Key ID: 59B3F0C24135C6A9
2 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -201,9 +201,9 @@ class ReceiveHistoryItemFile(QtWidgets.QWidget):
self.filesize_label.hide()
# Folder button
folder_pixmap = QtGui.QPixmap.fromImage(
QtGui.QImage(GuiCommon.get_resource_path("images/open_folder.png"))
)
image = QtGui.QImage(GuiCommon.get_resource_path("images/open_folder.png"))
scaled_image = image.scaledToHeight(15, QtCore.Qt.SmoothTransformation)
folder_pixmap = QtGui.QPixmap.fromImage(scaled_image)
folder_icon = QtGui.QIcon(folder_pixmap)
self.folder_button = QtWidgets.QPushButton()
self.folder_button.clicked.connect(self.open_folder)