def defaultColor(self, ix): for i in self.styles: if i.style() == ix: return i.color() return QsciLexerJavaScript.defaultColor(self, ix)
def defaultColor(self, style): '''Returns the foreground colour of the text for style number style''' color = self.lexer.get_default_color(style, self.description(style)) if color != 'not': return color return QsciLexerJavaScript.defaultColor(self, style)