From 4c3a09b226fd07f95cee81bd0d278d08c93a646b Mon Sep 17 00:00:00 2001 From: Dpeta Date: Wed, 24 Mar 2021 16:03:54 +0100 Subject: [PATCH] Fixed self.self (whoops) --- memos.py | 4 +++- pesterchum.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/memos.py b/memos.py index d0b9ba5..2485a6f 100644 --- a/memos.py +++ b/memos.py @@ -559,7 +559,9 @@ class PesterMemo(PesterConvo): def initTheme(self, theme): self.resize(*theme["memos/size"]) - self.setStyleSheet("QFrame#%s { %s }" % (self.channel, theme["memos/style"])) + #self.setStyleSheet("QFrame#%s { %s }" % (self.channel, theme["memos/style"])) + # Kind of broken + self.setStyleSheet(theme["memos/style"]) self.setWindowIcon(PesterIcon(theme["memos/memoicon"])) t = Template(theme["memos/label/text"]) diff --git a/pesterchum.py b/pesterchum.py index 5097d12..a574b23 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -228,9 +228,9 @@ class chumListing(QtWidgets.QTreeWidgetItem): icon = self.mood.icon(theme) self.setIcon(0, icon) try: - self.self.setForeground(0, QtGui.QBrush(QtGui.QColor((self.mainwindow.theme["main/chums/moods"][self.mood.name()]["color"])))) + self.setForeground(0, QtGui.QBrush(QtGui.QColor((self.mainwindow.theme["main/chums/moods"][self.mood.name()]["color"])))) except KeyError: - self.self.setForeground(0, QtGui.QBrush(QtGui.QColor((self.mainwindow.theme["main/chums/moods/chummy/color"])))) + self.setForeground(0, QtGui.QBrush(QtGui.QColor((self.mainwindow.theme["main/chums/moods/chummy/color"])))) def login(self): self.setIcon(0, PesterIcon("themes/arrow_right.png")) self.status = "in"