mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
adding window icon (#49)
This commit is contained in:
parent
e00a888b9d
commit
ef1767f350
@ -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
|
||||
|
BIN
onionshare_gui/onionshare-icon.png
Normal file
BIN
onionshare_gui/onionshare-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
@ -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 |
1
setup.py
1
setup.py
@ -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/*'))
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user