Added onionshare logo as settings window icon

This commit is contained in:
Micah Lee 2017-04-14 18:37:26 -07:00
parent 9b3cee0878
commit a462c567ff
2 changed files with 3 additions and 6 deletions

View file

@ -69,7 +69,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.app = app
self.setWindowTitle('OnionShare')
self.setWindowIcon(window_icon)
self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
# the menu bar
self.setMenuBar(Menu(self.qtapp))
@ -428,10 +428,6 @@ def main():
debug = bool(args.debug)
transparent_torification = bool(args.transparent_torification)
# create the onionshare icon
global window_icon
window_icon = QtGui.QIcon(helpers.get_resource_path('images/logo.png'))
# validation
if filenames:
valid = True

View file

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets, QtGui
import sys, platform
from onionshare import strings
from onionshare import strings, helpers
from onionshare.settings import Settings
from onionshare.onion import *
@ -36,6 +36,7 @@ class SettingsDialog(QtWidgets.QDialog):
self.setModal(True)
self.setWindowTitle(strings._('gui_settings_window_title', True))
self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
# Sharing options