From 73f66789dabed2170c492570df59a4ea62ad0317 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Fri, 8 Jun 2012 02:02:12 -0700 Subject: [PATCH] Pesterdunk Ghostchum!! --- menus.py | 3 +++ pesterchum.py | 9 ++++++++- profile.py | 2 ++ themes/pesterchum/ghostchum.png | Bin 0 -> 353 bytes themes/pesterchum/pesterdunk.png | Bin 0 -> 332 bytes 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 themes/pesterchum/ghostchum.png create mode 100644 themes/pesterchum/pesterdunk.png 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 0000000000000000000000000000000000000000..cb9d0b230f7bcda22fcd02ecaa0454bc6c8c3982 GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^Vn8g+!3HF!RQ~M%Qfx`y?k)`fL2$v|<&%LToCO|{ z#S9F5hd`K7RKu$QD9B#o>FdgVhmC`SL2==-SFu2$cb+beAr`0CPB|#pqQK)iS!9#1 zgKtDjdUwODEgZQj)dicAICzYnJ>vMNUK8(-))wX?m(N+4+R}Gm)&{W}tvs&nF4f(F zdqj3gUYb2gApB*@8i7brch_QGt-YK6Xn%jR=X5#`U*5eXXWz9+GVqEuZRVcP%4d8) zPWH{k#x}S2SEUxlZ4roGA^G!GS0I;KK2L|+8Lu}lL-uuQKlY87q|R@^&OSdN|G$Ua zv@L&+mMTw4Hp+7DR7x&h(*Hz$?emtvw?dJ1GMR#v@m%MgTzP(Z$6deuM>pS`!63M| uFaDg9TFj?AN{9c+-}KntGXJ>hAJ!_Jsq+qQYkmjxIfJLGpUXO@geCy=V~S(| literal 0 HcmV?d00001 diff --git a/themes/pesterchum/pesterdunk.png b/themes/pesterchum/pesterdunk.png new file mode 100644 index 0000000000000000000000000000000000000000..67730f7e4b2908f6e2d2a7788d492760cc6d630a GIT binary patch literal 332 zcmeAS@N?(olHy`uVBq!ia0vp^Vn8g+!3HF!RQ~M%Qfx`y?k)`fL2$v|<&%LToCO|{ z#S9F5hd`K7RKu$QD9B#o>FdgVhmC`SMe*n<{YaqDO-~oc5R21mr`+XjHsEQg?XcYC zVijz~a$dIS%oQF-@k03np^xND93#2{{@KmfQ&*_hV!K#0ZZe4eC`}PA?RW}~r%RkvK>Z2HZ{@hf%!>fH~Y6prkuGqfi;12f6!13^xy~bJ3j4b*`|`HZ>!0@BFWmo@bk8+y!AOBVigTLR;^QJ zyO_#%-%|Rt%$7aL-+f+GEXkPkzpM5P50AL9?Q6q;%??I)SnQj^9tc%zJH