mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 05:31:25 -05:00
Added onionshare logo as settings window icon
This commit is contained in:
parent
984d2b6084
commit
eb342d3e57
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user