diff --git a/menus.py b/menus.py index 29be252..acca2c0 100644 --- a/menus.py +++ b/menus.py @@ -1174,6 +1174,8 @@ class PesterOptions(QtGui.QDialog): self.refreshtheme = QtGui.QPushButton("Refresh current theme", self) self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'), parent, QtCore.SLOT('themeSelectOverride()')) + self.ghostchum = QtGui.QCheckBox("Pesterdunk Ghostchum!!", self) + self.ghostchum.setChecked(self.config.ghostchum()) self.buttonOptions = ["Minimize to Taskbar", "Minimize to Tray", "Quit"] self.miniBox = QtGui.QComboBox(self) @@ -1360,6 +1362,7 @@ class PesterOptions(QtGui.QDialog): layout_theme.addWidget(QtGui.QLabel("Pick a Theme:")) layout_theme.addWidget(self.themeBox) layout_theme.addWidget(self.refreshtheme) + layout_theme.addWidget(self.ghostchum) self.pages.addWidget(widget) # Advanced diff --git a/pesterchum.py b/pesterchum.py index af02121..f2beb74 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -1673,6 +1673,10 @@ class PesterWindow(MovingWindow): self.trollslum.changeTheme(theme) if hasattr(self, 'allusers') and self.allusers: self.allusers.changeTheme(theme) + if self.config.ghostchum(): + self.theme["main"]["icon"] = "themes/pesterchum/pesterdunk.png" + self.theme["main"]["newmsgicon"] = "themes/pesterchum/ghostchum.png" + self.setWindowIcon(PesterIcon(self.theme["main/icon"])) # system tray icon self.updateSystemTray() @@ -2354,7 +2358,10 @@ class PesterWindow(MovingWindow): self.config.set('idleTime', idlesetting) self.idlethreshold = 60*idlesetting # theme - self.themeSelected() + ghostchumsetting = self.optionmenu.ghostchum.isChecked() + curghostchum = self.config.ghostchum() + self.config.set('ghostchum', ghostchumsetting) + self.themeSelected(ghostchumsetting != curghostchum) # randoms if self.randhandler.running: self.randhandler.setRandomer(self.optionmenu.randomscheck.isChecked()) diff --git a/profile.py b/profile.py index 3a798db..a271aae 100644 --- a/profile.py +++ b/profile.py @@ -221,6 +221,8 @@ class userConfig(object): return self.config.get('notifyOptions', self.SIGNIN | self.NEWMSG | self.NEWCONVO | self.INITIALS) def lowBandwidth(self): return self.config.get('lowBandwidth', False) + def ghostchum(self): + return self.config.get('ghostchum', False) def addChum(self, chum): if chum.handle not in self.chums(): fp = open(self.filename) # what if we have two clients open?? diff --git a/themes/pesterchum/ghostchum.png b/themes/pesterchum/ghostchum.png new file mode 100644 index 0000000..cb9d0b2 Binary files /dev/null and b/themes/pesterchum/ghostchum.png differ diff --git a/themes/pesterchum/pesterdunk.png b/themes/pesterchum/pesterdunk.png new file mode 100644 index 0000000..67730f7 Binary files /dev/null and b/themes/pesterchum/pesterdunk.png differ