Esempio n. 1
0
 def applyPreviewStyle(self, colors):
     self.blockSignals(True)
     self.hgl = syntaxHighLighter.PythonHighlighterClass(self, colors)
     qss = design.applyColorToEditorStyle(colors)
     self.setStyleSheet(qss)
     self.completer.setStyleSheet(qss)
     self.blockSignals(False)
Esempio n. 2
0
 def applyHightLighter(self, theme=None, qss=None):
     self.blockSignals(True)
     colors = None
     if theme or not theme == 'default':
         colors = design.getColors(theme)
         if self.completer:
             self.completer.updateStyle(colors)
     self.hgl = syntaxHighLighter.PythonHighlighterClass(self, colors)
     st = design.editorStyle(theme)
     self.setStyleSheet(st)
     self.blockSignals(False)