mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-04 04:14:15 -04:00
Scaled open folder image with SmoothTransformation
This commit is contained in:
parent
ff90c91e97
commit
9e7800d051
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 |
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue