summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/app.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-12-06 23:53:15 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2016-12-07 14:58:24 +0100
commit758595e34038148b0f4b48e803aaf5588efd40f2 (patch)
treee0b492acce58ba989bc6b523193a0ae4d86d8de1 /src/leap/bitmask/gui/app.py
parentd6016d3be95884b45eb7e48e84e3b1d6037a2b20 (diff)
[feature] add icon to the window
- Resolves: #8676
Diffstat (limited to 'src/leap/bitmask/gui/app.py')
-rw-r--r--src/leap/bitmask/gui/app.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py
index 2c8d188f..b2343a68 100644
--- a/src/leap/bitmask/gui/app.py
+++ b/src/leap/bitmask/gui/app.py
@@ -31,6 +31,9 @@ from multiprocessing import Process
from leap.bitmask.core.launcher import run_bitmaskd, pid
+from leap.bitmask.gui import app_rc
+
+
if platform.system() == 'Windows':
from multiprocessing import freeze_support
from PySide import QtCore, QtGui
@@ -87,6 +90,11 @@ class BrowserWindow(QDialog):
layout = QtGui.QVBoxLayout(self)
layout.addWidget(self.splitter)
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap(":/mask-icon.png"),
+ QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.setWindowIcon(icon)
+
self.setWindowTitle('Bitmask')
self.load_app()
self.closing = False