Browse Source

do not use svg icons

283
ThomasV 13 years ago
parent
commit
edb012e14a
  1. 6
      client/gui_qt.py
  2. 6
      client/icons.qrc
  3. BIN
      client/icons/lock.png
  4. BIN
      client/icons/status_waiting.png
  5. BIN
      client/icons/unconfirmed.png
  6. 1
      client/interface.py

6
client/gui_qt.py

@ -192,7 +192,7 @@ class ElectrumWindow(QMainWindow):
icon = QIcon(":icons/status_disconnected.png")
elif not self.wallet.interface.is_up_to_date:
text = "Synchronizing..."
icon = QIcon(":icons/status_waiting.svg")
icon = QIcon(":icons/status_waiting.png")
else:
c, u = self.wallet.get_balance()
text = "Balance: %s "%( format_satoshis(c) )
@ -315,7 +315,7 @@ class ElectrumWindow(QMainWindow):
else:
conf = 0
time_str = 'pending'
icon = QIcon(":icons/unconfirmed.svg")
icon = QIcon(":icons/unconfirmed.png")
v = tx['value']
balance += v
label = self.wallet.labels.get(tx_hash)
@ -619,7 +619,7 @@ class ElectrumWindow(QMainWindow):
def create_status_bar(self):
sb = QStatusBar()
sb.setFixedHeight(35)
sb.addPermanentWidget( StatusBarButton( QIcon(":icons/lock.svg"), "Password", lambda: self.change_password_dialog(self.wallet, self) ) )
sb.addPermanentWidget( StatusBarButton( QIcon(":icons/lock.png"), "Password", lambda: self.change_password_dialog(self.wallet, self) ) )
sb.addPermanentWidget( StatusBarButton( QIcon(":icons/preferences.png"), "Preferences", self.settings_dialog ) )
sb.addPermanentWidget( StatusBarButton( QIcon(":icons/seed.png"), "Seed", lambda: self.show_seed_dialog(self.wallet, self) ) )
self.status_button = StatusBarButton( QIcon(":icons/status_disconnected.png"), "Network", lambda: self.network_dialog(self.wallet, self) )

6
client/icons.qrc

@ -1,13 +1,13 @@
<RCC>
<qresource prefix="/" >
<file>icons/confirmed.png</file>
<file>icons/lock.svg</file>
<file>icons/lock.png</file>
<file>icons/preferences.png</file>
<file>icons/seed.png</file>
<file>icons/status_connected.png</file>
<file>icons/status_disconnected.png</file>
<file>icons/status_waiting.svg</file>
<file>icons/unconfirmed.svg</file>
<file>icons/status_waiting.png</file>
<file>icons/unconfirmed.png</file>
<file>icons/network.png</file>
</qresource>
</RCC>

BIN
client/icons/lock.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
client/icons/status_waiting.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
client/icons/unconfirmed.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

1
client/interface.py

@ -398,6 +398,7 @@ def loop_interfaces_thread(wallet):
time.sleep(5)
except:
traceback.print_exc(file=sys.stdout)
time.sleep(5)
continue
print "Starting new session: %s:%d"%(wallet.host,wallet.port)

Loading…
Cancel
Save