|
|
|
@ -36,7 +36,7 @@ CACHE = appdirs.AppDirs('plchat', 'plchat').user_cache_dir |
|
|
|
|
APPDATA = appdirs.AppDirs('plchat', 'plchat').user_data_dir |
|
|
|
|
THREADS = {} |
|
|
|
|
STATIC_PREF = '' |
|
|
|
|
ICON_PATH = 'fedi.svg' |
|
|
|
|
ICON_PATH = os.path.join(os.path.dirname(__file__), "fedi.svg") |
|
|
|
|
|
|
|
|
|
class App(QMainWindow): |
|
|
|
|
settings = QSettings(APPDATA+"/settings.ini") |
|
|
|
@ -410,7 +410,7 @@ class App(QMainWindow): |
|
|
|
|
|
|
|
|
|
def setUrgent(self, ind): |
|
|
|
|
icon = QIcon() |
|
|
|
|
icon.addPixmap(QPixmap('unread.svg')) |
|
|
|
|
icon.addPixmap(QPixmap(os.path.join(os.path.dirname(__file__), "unread.svg"))) |
|
|
|
|
self.tabs.setTabIcon(ind, icon) |
|
|
|
|
self.tabs.widget(ind).unread = True |
|
|
|
|
if self.trayIcon: |
|
|
|
@ -951,7 +951,7 @@ class SendArea(QWidget): |
|
|
|
|
self.attachButton.clicked.connect(self.newFileDialog) |
|
|
|
|
self.attachButton.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.MinimumExpanding) |
|
|
|
|
|
|
|
|
|
sendButton = QPushButton(QIcon(QPixmap('send.svg')), '') |
|
|
|
|
sendButton = QPushButton(QIcon(QPixmap(os.path.join(os.path.dirname(__file__), "send.svg"))), '') |
|
|
|
|
sendButton.clicked.connect(self.sendMessage) |
|
|
|
|
sendButton.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.MinimumExpanding) |
|
|
|
|
|
|
|
|
|