Pesterdunk Ghostchum!!
This commit is contained in:
parent
1f5fd9d42f
commit
73f66789da
5 changed files with 13 additions and 1 deletions
3
menus.py
3
menus.py
|
@ -1174,6 +1174,8 @@ class PesterOptions(QtGui.QDialog):
|
||||||
self.refreshtheme = QtGui.QPushButton("Refresh current theme", self)
|
self.refreshtheme = QtGui.QPushButton("Refresh current theme", self)
|
||||||
self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'),
|
self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'),
|
||||||
parent, QtCore.SLOT('themeSelectOverride()'))
|
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.buttonOptions = ["Minimize to Taskbar", "Minimize to Tray", "Quit"]
|
||||||
self.miniBox = QtGui.QComboBox(self)
|
self.miniBox = QtGui.QComboBox(self)
|
||||||
|
@ -1360,6 +1362,7 @@ class PesterOptions(QtGui.QDialog):
|
||||||
layout_theme.addWidget(QtGui.QLabel("Pick a Theme:"))
|
layout_theme.addWidget(QtGui.QLabel("Pick a Theme:"))
|
||||||
layout_theme.addWidget(self.themeBox)
|
layout_theme.addWidget(self.themeBox)
|
||||||
layout_theme.addWidget(self.refreshtheme)
|
layout_theme.addWidget(self.refreshtheme)
|
||||||
|
layout_theme.addWidget(self.ghostchum)
|
||||||
self.pages.addWidget(widget)
|
self.pages.addWidget(widget)
|
||||||
|
|
||||||
# Advanced
|
# Advanced
|
||||||
|
|
|
@ -1673,6 +1673,10 @@ class PesterWindow(MovingWindow):
|
||||||
self.trollslum.changeTheme(theme)
|
self.trollslum.changeTheme(theme)
|
||||||
if hasattr(self, 'allusers') and self.allusers:
|
if hasattr(self, 'allusers') and self.allusers:
|
||||||
self.allusers.changeTheme(theme)
|
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
|
# system tray icon
|
||||||
self.updateSystemTray()
|
self.updateSystemTray()
|
||||||
|
|
||||||
|
@ -2354,7 +2358,10 @@ class PesterWindow(MovingWindow):
|
||||||
self.config.set('idleTime', idlesetting)
|
self.config.set('idleTime', idlesetting)
|
||||||
self.idlethreshold = 60*idlesetting
|
self.idlethreshold = 60*idlesetting
|
||||||
# theme
|
# theme
|
||||||
self.themeSelected()
|
ghostchumsetting = self.optionmenu.ghostchum.isChecked()
|
||||||
|
curghostchum = self.config.ghostchum()
|
||||||
|
self.config.set('ghostchum', ghostchumsetting)
|
||||||
|
self.themeSelected(ghostchumsetting != curghostchum)
|
||||||
# randoms
|
# randoms
|
||||||
if self.randhandler.running:
|
if self.randhandler.running:
|
||||||
self.randhandler.setRandomer(self.optionmenu.randomscheck.isChecked())
|
self.randhandler.setRandomer(self.optionmenu.randomscheck.isChecked())
|
||||||
|
|
|
@ -221,6 +221,8 @@ class userConfig(object):
|
||||||
return self.config.get('notifyOptions', self.SIGNIN | self.NEWMSG | self.NEWCONVO | self.INITIALS)
|
return self.config.get('notifyOptions', self.SIGNIN | self.NEWMSG | self.NEWCONVO | self.INITIALS)
|
||||||
def lowBandwidth(self):
|
def lowBandwidth(self):
|
||||||
return self.config.get('lowBandwidth', False)
|
return self.config.get('lowBandwidth', False)
|
||||||
|
def ghostchum(self):
|
||||||
|
return self.config.get('ghostchum', False)
|
||||||
def addChum(self, chum):
|
def addChum(self, chum):
|
||||||
if chum.handle not in self.chums():
|
if chum.handle not in self.chums():
|
||||||
fp = open(self.filename) # what if we have two clients open??
|
fp = open(self.filename) # what if we have two clients open??
|
||||||
|
|
BIN
themes/pesterchum/ghostchum.png
Normal file
BIN
themes/pesterchum/ghostchum.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 353 B |
BIN
themes/pesterchum/pesterdunk.png
Normal file
BIN
themes/pesterchum/pesterdunk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 332 B |
Loading…
Reference in a new issue