adding window icon (#49)

This commit is contained in:
Micah Lee 2014-06-20 20:57:32 -04:00
parent e00a888b9d
commit ef1767f350
5 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ include version
include onionshare/index.html
include onionshare/404.html
include onionshare/strings.json
include onionshare_gui/onionshare-icon.png
include onionshare_gui/templates/index.html
include onionshare_gui/static/jquery-1.11.1.min.js
include onionshare_gui/static/helpers.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -28,11 +28,13 @@ class Window(QWebView):
self.resize(580, 400)
self.setMinimumSize(580, 400)
self.setMaximumSize(580, 400)
self.setWindowIcon(QIcon("onionshare-icon.png"))
self.load(QUrl("http://127.0.0.1:{0}".format(webapp_port)))
def alert(msg, icon=QMessageBox.NoIcon):
dialog = QMessageBox()
dialog.setWindowTitle("OnionShare")
self.setWindowIcon(QIcon("onionshare-icon.png"))
dialog.setText(msg)
dialog.setIcon(icon)
dialog.exec_()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -43,6 +43,7 @@ elif platform.system() == 'Windows':
args['data_files'] = [
('', ['LICENSE', 'README.md', 'version']),
('onionshare', ['onionshare/index.html', 'onionshare/404.html', 'onionshare/strings.json']),
('onionshare_gui', ['onionshare_gui/onionshare-icon.png']),
('onionshare_gui/templates', glob('onionshare_gui/templates/*')),
('onionshare_gui/static', glob('onionshare_gui/static/*'))
]