diff --git a/gui/gui_classic.py b/gui/gui_classic.py index e5ff5f53..bfba42a4 100644 --- a/gui/gui_classic.py +++ b/gui/gui_classic.py @@ -1178,7 +1178,9 @@ class ElectrumWindow(QMainWindow): if (int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7): sb.addPermanentWidget( StatusBarButton( QIcon(":icons/switchgui.png"), _("Switch to Lite Mode"), self.go_lite ) ) if self.wallet.seed: - sb.addPermanentWidget( StatusBarButton( QIcon(":icons/lock.png"), _("Password"), lambda: self.change_password_dialog(self.wallet, self) ) ) + self.lock_icon = QIcon(":icons/lock.png") if self.wallet.use_encryption else QIcon(":icons/unlock.png") + self.password_button = StatusBarButton( self.lock_icon, _("Password"), lambda: self.change_password_dialog(self.wallet, self) ) + sb.addPermanentWidget( self.password_button ) sb.addPermanentWidget( StatusBarButton( QIcon(":icons/preferences.png"), _("Preferences"), self.settings_dialog ) ) if self.wallet.seed: sb.addPermanentWidget( StatusBarButton( QIcon(":icons/seed.png"), _("Seed"), self.show_seed_dialog ) ) @@ -1553,6 +1555,10 @@ class ElectrumWindow(QMainWindow): return ElectrumWindow.change_password_dialog(wallet, parent) # Retry wallet.update_password(seed, password, new_password) + if parent: + icon = QIcon(":icons/lock.png") if wallet.use_encryption else QIcon(":icons/unlock.png") + parent.password_button.setIcon( icon ) + @staticmethod def seed_dialog(wallet, parent=None): diff --git a/icons.qrc b/icons.qrc index 799b0483..71582440 100644 --- a/icons.qrc +++ b/icons.qrc @@ -8,6 +8,7 @@ icons/clock5.png icons/confirmed.png icons/lock.png + icons/unlock.png icons/preferences.png icons/seed.png icons/status_connected.png diff --git a/icons/unlock.png b/icons/unlock.png new file mode 100644 index 00000000..10787e53 Binary files /dev/null and b/icons/unlock.png differ diff --git a/icons/unlock.svg b/icons/unlock.svg new file mode 100644 index 00000000..9e1c09fb --- /dev/null +++ b/icons/unlock.svg @@ -0,0 +1,508 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +