Browse Source

add new tray icon, and activate window in showNormal

283
ThomasV 11 years ago
parent
commit
4652783cfd
  1. 4
      gui/qt/main_window.py
  2. 2
      icons.qrc
  3. BIN
      icons/electrum_dark_icon.png
  4. BIN
      icons/electrum_light_icon.png

4
gui/qt/main_window.py

@ -127,6 +127,8 @@ class ElectrumWindow(QMainWindow):
if reason == QSystemTrayIcon.DoubleClick:
self.showNormal()
def showNormal(self):
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
def __init__(self, config, network):
QMainWindow.__init__(self)
@ -137,7 +139,7 @@ class ElectrumWindow(QMainWindow):
self._close_electrum = False
self.lite = None
self.icon = QIcon(':icons/electrum.png')
self.icon = QIcon(':icons/electrum_light_icon.png')
self.tray = QSystemTrayIcon(self.icon, self)
self.tray.setToolTip('Electrum')
self.tray.activated.connect(self.tray_activated)

2
icons.qrc

@ -17,6 +17,8 @@
<file>icons/status_waiting.png</file>
<file>icons/status_lagging.png</file>
<file>icons/switchgui.png</file>
<file>icons/electrum_light_icon.png</file>
<file>icons/electrum_dark_icon.png</file>
<file>icons/unconfirmed.png</file>
<file>icons/network.png</file>
</qresource>

BIN
icons/electrum_dark_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
icons/electrum_light_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Loading…
Cancel
Save