mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-29 01:18:51 -04:00
Move all resources (locale, images, html, version.txt) into central resources dir, and clean up logic to find absolute paths to resources
This commit is contained in:
parent
7c18d77fb2
commit
e81f809882
34 changed files with 59 additions and 137 deletions
|
@ -22,8 +22,6 @@ from PyQt5 import QtCore, QtWidgets, QtGui
|
|||
|
||||
from onionshare import strings, helpers
|
||||
|
||||
from . import common
|
||||
|
||||
class FileList(QtWidgets.QListWidget):
|
||||
"""
|
||||
The list of files and folders in the GUI.
|
||||
|
@ -49,7 +47,7 @@ class FileList(QtWidgets.QListWidget):
|
|||
self.setAlignment(QtCore.Qt.AlignCenter)
|
||||
|
||||
if image:
|
||||
self.setPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(common.get_image_path('drop_files.png'))))
|
||||
self.setPixmap(QtGui.QPixmap.fromImage(QtGui.QImage(helpers.get_resource_path('images/drop_files.png'))))
|
||||
else:
|
||||
self.setText(strings._('gui_drag_and_drop', True))
|
||||
self.setStyleSheet('color: #999999;')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue