Added stylesheet to openChat()
This commit is contained in:
parent
0f8ead8dc4
commit
07a7f3542a
2 changed files with 3 additions and 2 deletions
4
menus.py
4
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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue