Skip to content
Permalink
Browse files

Certificate dialog: Hi-DPI scaling of the padlock

  • Loading branch information...
albertosottile committed May 14, 2019
1 parent bc242c2 commit 8f5b77c0bfed34003627c11bbc63a9b6ed1bc9b6
Showing with 3 additions and 2 deletions.
  1. BIN syncplay/resources/lock_green_dialog@2x.png
  2. +3 −2 syncplay/ui/gui.py
Binary file not shown.
@@ -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)

0 comments on commit 8f5b77c

Please sign in to comment.
You can’t perform that action at this time.