def changeTheme(self, newTheme=None):
if newTheme is not None:
for action in self.themeGroup.actions():
if action.theme == newTheme:
action.setChecked(True)
action = self.themeGroup.checkedAction()
styles = Styles()
styles.setStyle(action.theme)
theme = styles.getStyle()
self.setStyleSheet(theme)
logging.critical("Setting new theme: {}".format(action.theme))
self.cache.putIntoCache("theme", action.theme, 60 * 60 * 24 * 365)
self.setupMap()
self.clearIntelChat()
if self.autoRescanIntelEnabled:
self.rescanIntel()
评论列表
文章目录