show antialiased icons
This commit is contained in:
parent
79f7dac0f8
commit
b292c3ddbd
|
@ -290,7 +290,8 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
||||||
|
|
||||||
def set_icon(self, filename):
|
def set_icon(self, filename):
|
||||||
prior_filename, self.icon_filename = self.icon_filename, filename
|
prior_filename, self.icon_filename = self.icon_filename, filename
|
||||||
self.logo.setPixmap(QPixmap(filename).scaledToWidth(60))
|
self.logo.setPixmap(QPixmap(filename)
|
||||||
|
.scaledToWidth(64, Qt.SmoothTransformation))
|
||||||
return prior_filename
|
return prior_filename
|
||||||
|
|
||||||
def set_layout(self, layout, title=None, next_enabled=True):
|
def set_layout(self, layout, title=None, next_enabled=True):
|
||||||
|
|
|
@ -103,7 +103,8 @@ class PasswordLayout(object):
|
||||||
lockfile = ":icons/lock.png"
|
lockfile = ":icons/lock.png"
|
||||||
else:
|
else:
|
||||||
lockfile = ":icons/unlock.png"
|
lockfile = ":icons/unlock.png"
|
||||||
logo.setPixmap(QPixmap(lockfile).scaledToWidth(36))
|
logo.setPixmap(QPixmap(lockfile)
|
||||||
|
.scaledToWidth(36, Qt.SmoothTransformation))
|
||||||
|
|
||||||
grid.addWidget(QLabel(msgs[0]), 1, 0)
|
grid.addWidget(QLabel(msgs[0]), 1, 0)
|
||||||
grid.addWidget(self.new_pw, 1, 1)
|
grid.addWidget(self.new_pw, 1, 1)
|
||||||
|
|
|
@ -105,7 +105,8 @@ class SeedLayout(QVBoxLayout):
|
||||||
hbox = QHBoxLayout()
|
hbox = QHBoxLayout()
|
||||||
if icon:
|
if icon:
|
||||||
logo = QLabel()
|
logo = QLabel()
|
||||||
logo.setPixmap(QPixmap(":icons/seed.png").scaledToWidth(64))
|
logo.setPixmap(QPixmap(":icons/seed.png")
|
||||||
|
.scaledToWidth(64, Qt.SmoothTransformation))
|
||||||
logo.setMaximumWidth(60)
|
logo.setMaximumWidth(60)
|
||||||
hbox.addWidget(logo)
|
hbox.addWidget(logo)
|
||||||
hbox.addWidget(self.seed_e)
|
hbox.addWidget(self.seed_e)
|
||||||
|
|
Loading…
Reference in New Issue