Added onionshare logo as settings window icon

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

View File

@ -69,7 +69,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.app = app self.app = app
self.setWindowTitle('OnionShare') self.setWindowTitle('OnionShare')
self.setWindowIcon(window_icon) self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
# the menu bar # the menu bar
self.setMenuBar(Menu(self.qtapp)) self.setMenuBar(Menu(self.qtapp))
@ -428,10 +428,6 @@ def main():
debug = bool(args.debug) debug = bool(args.debug)
transparent_torification = bool(args.transparent_torification) 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 # validation
if filenames: if filenames:
valid = True 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 from PyQt5 import QtCore, QtWidgets, QtGui
import sys, platform import sys, platform
from onionshare import strings from onionshare import strings, helpers
from onionshare.settings import Settings from onionshare.settings import Settings
from onionshare.onion import * from onionshare.onion import *
@ -36,6 +36,7 @@ class SettingsDialog(QtWidgets.QDialog):
self.setModal(True) self.setModal(True)
self.setWindowTitle(strings._('gui_settings_window_title', True)) self.setWindowTitle(strings._('gui_settings_window_title', True))
self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
# Sharing options # Sharing options