Skip to content

Commit

Permalink
About dialog: attempt Hi-DPI scaling of the logo
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosottile committed May 6, 2019
1 parent fbe9f3a commit 819e6b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion buildPy2exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Binary file added syncplay/resources/syncplayAbout.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added syncplay/resources/syncplayAbout@2x.png
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 @@ -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)
Expand Down

0 comments on commit 819e6b6

Please sign in to comment.