tscaled pixmaps no longer pixelated - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3031f594cb05b538e218dab3edf9e17bce599dd7 DIR parent cfc52e6441cd9301ca7efcf4622edd81c80b94a8 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 1 Jun 2018 22:36:56 +0200 scaled pixmaps no longer pixelated Diffstat: M gui/qt/installwizard.py | 2 +- M gui/qt/password_dialog.py | 4 ++-- M gui/qt/seed_dialog.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py t@@ -314,7 +314,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): def set_icon(self, filename): prior_filename, self.icon_filename = self.icon_filename, filename - self.logo.setPixmap(QPixmap(filename).scaledToWidth(60)) + self.logo.setPixmap(QPixmap(filename).scaledToWidth(60, mode=Qt.SmoothTransformation)) return prior_filename def set_layout(self, layout, title=None, next_enabled=True): DIR diff --git a/gui/qt/password_dialog.py b/gui/qt/password_dialog.py t@@ -103,7 +103,7 @@ class PasswordLayout(object): lockfile = ":icons/lock.png" else: lockfile = ":icons/unlock.png" - logo.setPixmap(QPixmap(lockfile).scaledToWidth(36)) + logo.setPixmap(QPixmap(lockfile).scaledToWidth(36, mode=Qt.SmoothTransformation)) grid.addWidget(QLabel(msgs[0]), 1, 0) grid.addWidget(self.new_pw, 1, 1) t@@ -198,7 +198,7 @@ class PasswordLayoutForHW(object): lockfile = ":icons/lock.png" else: lockfile = ":icons/unlock.png" - logo.setPixmap(QPixmap(lockfile).scaledToWidth(36)) + logo.setPixmap(QPixmap(lockfile).scaledToWidth(36, mode=Qt.SmoothTransformation)) vbox.addLayout(grid) DIR diff --git a/gui/qt/seed_dialog.py b/gui/qt/seed_dialog.py t@@ -112,7 +112,7 @@ class SeedLayout(QVBoxLayout): hbox = QHBoxLayout() if icon: logo = QLabel() - logo.setPixmap(QPixmap(":icons/seed.png").scaledToWidth(64)) + logo.setPixmap(QPixmap(":icons/seed.png").scaledToWidth(64, mode=Qt.SmoothTransformation)) logo.setMaximumWidth(60) hbox.addWidget(logo) hbox.addWidget(self.seed_e)