From 07a7f3542a7897babb0a5b42cef9b30489ecc308 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 24 Mar 2021 21:38:54 +0100 Subject: [PATCH] Added stylesheet to openChat() --- menus.py | 4 ++-- pesterchum.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/menus.py b/menus.py index fb22dee..00c803a 100644 --- a/menus.py +++ b/menus.py @@ -1545,7 +1545,7 @@ class PesterUserlist(QtWidgets.QDialog): for n in names: if str(self.searchbox.text()) == "" or n.lower().find(str(self.searchbox.text()).lower()) != -1: item = QtWidgets.QListWidgetItem(n) - item.setForeground(0, QtGui.QBrush(QtGui.QColor(self.theme["main/chums/userlistcolor"]))) + item.setForeground(QtGui.QBrush(QtGui.QColor(self.theme["main/chums/userlistcolor"]))) self.userarea.addItem(item) self.userarea.sortItems() @QtCore.pyqtSlot(QString, QString, QString) @@ -1561,7 +1561,7 @@ class PesterUserlist(QtWidgets.QDialog): self.addUser(h) def addUser(self, name): item = QtWidgets.QListWidgetItem(name) - item.setForeground(0, QtGui.QBrush(QtGui.QColor(self.theme["main/chums/userlistcolor"]))) + item.setForeground(QtGui.QBrush(QtGui.QColor(self.theme["main/chums/userlistcolor"]))) self.userarea.addItem(item) self.userarea.sortItems() def delUser(self, name): diff --git a/pesterchum.py b/pesterchum.py index 0fa7c55..450c118 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -2402,6 +2402,7 @@ class PesterWindow(MovingWindow): self.quirkmenu = None @QtCore.pyqtSlot() def openChat(self): + self.setStyleSheet("QInputDialog {" + self.theme["convo/tabwindow/style"] + "}") if not hasattr(self, "openchatdialog"): self.openchatdialog = None if not self.openchatdialog: