Skip to content

Commit

Permalink
Certificate dialog: Hi-DPI scaling of the padlock
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosottile committed May 14, 2019
1 parent bc242c2 commit 8f5b77c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added syncplay/resources/lock_green_dialog@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ def __init__(self, tlsData, parent=None):
descLabel.setFont(QtGui.QFont("Helvetica", 12))
connDataLabel.setFont(QtGui.QFont("Helvetica", 12))
certDataLabel.setFont(QtGui.QFont("Helvetica", 12))
lockIconPixmap = QtGui.QPixmap(resourcespath + "lock_green_dialog.png")
lockIcon = QtGui.QIcon()
lockIcon.addFile(resourcespath + "lock_green_dialog.png")
lockIconLabel = QtWidgets.QLabel()
lockIconLabel.setPixmap(lockIconPixmap.scaled(64, 64, Qt.KeepAspectRatio))
lockIconLabel.setPixmap(lockIcon.pixmap(64, 64))
certLayout = QtWidgets.QGridLayout()
certLayout.addWidget(lockIconLabel, 1, 0, 3, 1, Qt.AlignLeft | Qt.AlignTop)
certLayout.addWidget(statusLabel, 0, 1, 1, 3)
Expand Down

0 comments on commit 8f5b77c

Please sign in to comment.