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:
|
for n in names:
|
||||||
if str(self.searchbox.text()) == "" or n.lower().find(str(self.searchbox.text()).lower()) != -1:
|
if str(self.searchbox.text()) == "" or n.lower().find(str(self.searchbox.text()).lower()) != -1:
|
||||||
item = QtWidgets.QListWidgetItem(n)
|
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.addItem(item)
|
||||||
self.userarea.sortItems()
|
self.userarea.sortItems()
|
||||||
@QtCore.pyqtSlot(QString, QString, QString)
|
@QtCore.pyqtSlot(QString, QString, QString)
|
||||||
|
@ -1561,7 +1561,7 @@ class PesterUserlist(QtWidgets.QDialog):
|
||||||
self.addUser(h)
|
self.addUser(h)
|
||||||
def addUser(self, name):
|
def addUser(self, name):
|
||||||
item = QtWidgets.QListWidgetItem(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.addItem(item)
|
||||||
self.userarea.sortItems()
|
self.userarea.sortItems()
|
||||||
def delUser(self, name):
|
def delUser(self, name):
|
||||||
|
|
|
@ -2402,6 +2402,7 @@ class PesterWindow(MovingWindow):
|
||||||
self.quirkmenu = None
|
self.quirkmenu = None
|
||||||
@QtCore.pyqtSlot()
|
@QtCore.pyqtSlot()
|
||||||
def openChat(self):
|
def openChat(self):
|
||||||
|
self.setStyleSheet("QInputDialog {" + self.theme["convo/tabwindow/style"] + "}")
|
||||||
if not hasattr(self, "openchatdialog"):
|
if not hasattr(self, "openchatdialog"):
|
||||||
self.openchatdialog = None
|
self.openchatdialog = None
|
||||||
if not self.openchatdialog:
|
if not self.openchatdialog:
|
||||||
|
|
Loading…
Reference in a new issue