Refresh theme button
This commit is contained in:
parent
06be7ae422
commit
6dacc4c4de
4 changed files with 17 additions and 3 deletions
|
@ -36,6 +36,8 @@ CHANGELOG
|
|||
* Disable randomEncounter options when it's offline - Kiooeht [evacipatedBox] (Idea: Lexi [lexicalNuance])
|
||||
* Sort list of memos alphabetically or by number of users - Kiooeht [evacipatedBox] (Idea: [lostGash])
|
||||
* Low-bandwidth mode - Kiooeht [evacipatedBox] (Idea: [canLover])
|
||||
* New smilies - Kiooeht [evacipatedBox]
|
||||
* Refresh theme in options - Kiooeht [evacipatedBox]
|
||||
* Bug fixes
|
||||
* Don't delete random chum when blocking someone not on chumroll - Kiooeht [evacipatedBox]
|
||||
* Openning global userlist doesn't reset OP status of memo users - Kiooeht [evacipatedBox]
|
||||
|
|
|
@ -24,6 +24,7 @@ Features
|
|||
* "Pester" menu option to just pester a handle
|
||||
* Auto-login Nickserv
|
||||
* Make toast notifications only on certain chums
|
||||
* Separate tabbed/untabbed memos and convos
|
||||
|
||||
Bugs
|
||||
----
|
||||
|
|
4
menus.py
4
menus.py
|
@ -1165,6 +1165,9 @@ class PesterOptions(QtGui.QDialog):
|
|||
self.themeBox.addItem(t)
|
||||
if (not notheme and t == theme.name) or (notheme and t == "pesterchum"):
|
||||
self.themeBox.setCurrentIndex(i)
|
||||
self.refreshtheme = QtGui.QPushButton("Refresh current theme", self)
|
||||
self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'),
|
||||
parent, QtCore.SLOT('themeSelectOverride()'))
|
||||
|
||||
self.buttonOptions = ["Minimize to Taskbar", "Minimize to Tray", "Quit"]
|
||||
self.miniBox = QtGui.QComboBox(self)
|
||||
|
@ -1349,6 +1352,7 @@ class PesterOptions(QtGui.QDialog):
|
|||
layout_theme.setAlignment(QtCore.Qt.AlignTop)
|
||||
layout_theme.addWidget(QtGui.QLabel("Pick a Theme:"))
|
||||
layout_theme.addWidget(self.themeBox)
|
||||
layout_theme.addWidget(self.refreshtheme)
|
||||
self.pages.addWidget(widget)
|
||||
|
||||
# Advanced
|
||||
|
|
|
@ -2331,9 +2331,16 @@ class PesterWindow(MovingWindow):
|
|||
self, QtCore.SLOT('close()'));
|
||||
|
||||
@QtCore.pyqtSlot()
|
||||
def themeSelected(self):
|
||||
themename = unicode(self.optionmenu.themeBox.currentText())
|
||||
if themename != self.theme.name:
|
||||
def themeSelectOverride(self):
|
||||
self.themeSelected(self.theme.name)
|
||||
|
||||
@QtCore.pyqtSlot()
|
||||
def themeSelected(self, override=False):
|
||||
if not override:
|
||||
themename = unicode(self.optionmenu.themeBox.currentText())
|
||||
else:
|
||||
themename = override
|
||||
if override or themename != self.theme.name:
|
||||
try:
|
||||
self.changeTheme(pesterTheme(themename))
|
||||
except ValueError, e:
|
||||
|
|
Loading…
Reference in a new issue