moved images to subfolder (#126)

This commit is contained in:
Micah Lee 2014-09-03 17:36:03 -07:00
parent bfcd5190bd
commit 8d01ad7ec6
11 changed files with 27 additions and 25 deletions

View File

@ -5,10 +5,10 @@ include version
include onionshare/index.html
include onionshare/404.html
include onionshare/strings.json
include onionshare_gui/logo.png
include onionshare_gui/drop_files.png
include onionshare_gui/server_stopped.png
include onionshare_gui/server_started.png
include onionshare_gui/server_working.png
include onionshare_gui/images/logo.png
include onionshare_gui/images/drop_files.png
include onionshare_gui/images/server_stopped.png
include onionshare_gui/images/server_started.png
include onionshare_gui/images/server_working.png
include setup/onionshare.desktop
include setup/onionshare80.xpm

View File

@ -36,7 +36,7 @@ class FileList(QtGui.QListWidget):
# drag and drop label
self.drop_label = QtGui.QLabel(QtCore.QString(strings._('gui_drag_and_drop')), parent=self)
self.drop_label.setAlignment(QtCore.Qt.AlignCenter)
self.drop_label.setStyleSheet('background: url({0}/drop_files.png) no-repeat center center; color: #999999;'.format(common.onionshare_gui_dir))
self.drop_label.setStyleSheet('background: url({0}/images/drop_files.png) no-repeat center center; color: #999999;'.format(common.onionshare_gui_dir))
self.drop_label.hide()
self.filenames = []

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 346 B

View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

View File

Before

Width:  |  Height:  |  Size: 338 B

After

Width:  |  Height:  |  Size: 338 B

View File

@ -227,7 +227,7 @@ def main():
# create the onionshare icon
global window_icon
window_icon = QtGui.QIcon("{0}/logo.png".format(common.onionshare_gui_dir))
window_icon = QtGui.QIcon("{0}/images/logo.png".format(common.onionshare_gui_dir))
# start the onionshare app
web.set_stay_open(stay_open)

View File

@ -43,9 +43,9 @@ class ServerStatus(QtGui.QVBoxLayout):
self.file_selection = file_selection
# server layout
self.status_image_stopped = QtGui.QImage('{0}/server_stopped.png'.format(common.onionshare_gui_dir))
self.status_image_working = QtGui.QImage('{0}/server_working.png'.format(common.onionshare_gui_dir))
self.status_image_started = QtGui.QImage('{0}/server_started.png'.format(common.onionshare_gui_dir))
self.status_image_stopped = QtGui.QImage('{0}/images/server_stopped.png'.format(common.onionshare_gui_dir))
self.status_image_working = QtGui.QImage('{0}/images/server_working.png'.format(common.onionshare_gui_dir))
self.status_image_started = QtGui.QImage('{0}/images/server_started.png'.format(common.onionshare_gui_dir))
self.status_image_label = QtGui.QLabel()
self.status_image_label.setFixedWidth(30)
self.start_server_button = QtGui.QPushButton(strings._('gui_start_server'))

View File

@ -8,11 +8,11 @@ a.datas += [
('onionshare/strings.json', 'onionshare/strings.json', 'DATA'),
('onionshare/index.html', 'onionshare/index.html', 'DATA'),
('onionshare/404.html', 'onionshare/404.html', 'DATA'),
('onionshare_gui/logo.png', 'onionshare_gui/logo.png', 'DATA'),
('onionshare_gui/drop_files.png', 'onionshare_gui/drop_files.png', 'DATA'),
('onionshare_gui/server_stopped.png', 'onionshare_gui/server_stopped.png', 'DATA'),
('onionshare_gui/server_started.png', 'onionshare_gui/server_started.png', 'DATA'),
('onionshare_gui/server_working.png', 'onionshare_gui/server_working.png', 'DATA'),
('onionshare_gui/images/logo.png', 'onionshare_gui/images/logo.png', 'DATA'),
('onionshare_gui/images/drop_files.png', 'onionshare_gui/images/drop_files.png', 'DATA'),
('onionshare_gui/images/server_stopped.png', 'onionshare_gui/images/server_stopped.png', 'DATA'),
('onionshare_gui/images/server_started.png', 'onionshare_gui/images/server_started.png', 'DATA'),
('onionshare_gui/images/server_working.png', 'onionshare_gui/images/server_working.png', 'DATA'),
]
pyz = PYZ(a.pure)
exe = EXE(pyz,

View File

@ -58,11 +58,12 @@ Section "install"
File "${BINPATH}\onionshare_gui\onionshare_gui.pyc"
File "${BINPATH}\onionshare_gui\__init__.py"
File "${BINPATH}\onionshare_gui\__init__.pyc"
File "${BINPATH}\onionshare_gui\logo.png"
File "${BINPATH}\onionshare_gui\drop_files.png"
File "${BINPATH}\onionshare_gui\server_stopped.png"
File "${BINPATH}\onionshare_gui\server_started.png"
File "${BINPATH}\onionshare_gui\server_working.png"
SetOutPath "$INSTDIR\onionshare_gui\images"
File "${BINPATH}\onionshare_gui\images\logo.png"
File "${BINPATH}\onionshare_gui\images\drop_files.png"
File "${BINPATH}\onionshare_gui\images\server_stopped.png"
File "${BINPATH}\onionshare_gui\images\server_started.png"
File "${BINPATH}\onionshare_gui\images\server_working.png"
# dependencies
SetOutPath $INSTDIR
@ -165,11 +166,11 @@ Section "uninstall"
Delete "$INSTDIR\onionshare\strings.json"
Delete "$INSTDIR\onionshare_gui\__init__.py"
Delete "$INSTDIR\onionshare_gui\__init__.pyc"
Delete "$INSTDIR\onionshare_gui\logo.png"
Delete "$INSTDIR\onionshare_gui\drop_files.png"
Delete "$INSTDIR\onionshare_gui\server_stopped.png"
Delete "$INSTDIR\onionshare_gui\server_started.png"
Delete "$INSTDIR\onionshare_gui\server_working.png"
Delete "$INSTDIR\onionshare_gui\images\logo.png"
Delete "$INSTDIR\onionshare_gui\images\drop_files.png"
Delete "$INSTDIR\onionshare_gui\images\server_stopped.png"
Delete "$INSTDIR\onionshare_gui\images\server_started.png"
Delete "$INSTDIR\onionshare_gui\images\server_working.png"
Delete "$INSTDIR\onionshare_gui\onionshare_gui.py"
Delete "$INSTDIR\onionshare_gui\onionshare_gui.pyc"
Delete "$INSTDIR\qt4_plugins\accessible\qtaccessiblewidgets4.dll"
@ -215,6 +216,7 @@ Section "uninstall"
Delete "$INSTDIR\win32wnet.pyd"
rmDir "$INSTDIR\onionshare"
rmDir "$INSTDIR\onionshare_gui\images"
rmDir "$INSTDIR\onionshare_gui"
rmDir "$INSTDIR\Include"
rmDir "$INSTDIR\qt4_plugins\accessible"