Skip to content
Permalink
Browse files

About dialog: attempt Hi-DPI scaling of the logo

  • Loading branch information...
albertosottile committed May 6, 2019
1 parent fbe9f3a commit 819e6b6cae4caff4273514b1c65f388ad1dfdcd1
@@ -688,7 +688,8 @@ def run(self):
'resources/shield_edit.png',
'resources/shield_add.png',
'resources/email_go.png',
'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng'
'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng',
'resources/syncplayAbout.png', 'resources/syncplayAbout@2x.png'
]

guiIcons = ['syncplay/' + s for s in guiIcons]
Binary file not shown.
Binary file not shown.
@@ -137,9 +137,10 @@ def __init__(self, parent=None):
licenseLabel = QtWidgets.QLabel(
"<center><p>Copyright &copy; 2012&ndash;2019 Syncplay</p><p>" +
getMessage("about-dialog-license-text") + "</p></center>")
aboutIconPixmap = QtGui.QPixmap(resourcespath + "syncplay.png")
aboutIcon = QtGui.QIcon()
aboutIcon.addFile(resourcespath + "syncplayAbout.png")
aboutIconLabel = QtWidgets.QLabel()
aboutIconLabel.setPixmap(aboutIconPixmap.scaled(65, 65, Qt.KeepAspectRatio))
aboutIconLabel.setPixmap(aboutIcon.pixmap(64, 64))
aboutLayout = QtWidgets.QGridLayout()
aboutLayout.addWidget(aboutIconLabel, 0, 0, 3, 4, Qt.AlignHCenter)
aboutLayout.addWidget(nameLabel, 3, 0, 1, 4)

0 comments on commit 819e6b6

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