mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-19 15:16:01 -04:00
Scaled open folder image with SmoothTransformation
This commit is contained in:
parent
ff90c91e97
commit
9e7800d051
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…
x
Reference in New Issue
Block a user