mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[console] Fix unclosed strings don't respect the preset font size
This commit is contained in:
parent
33669ab723
commit
6d87a4cf3f
@ -246,6 +246,7 @@ class Editor(QsciScintilla):
|
||||
self.lexer.setFont(font, 1)
|
||||
self.lexer.setFont(font, 3)
|
||||
self.lexer.setFont(font, 4)
|
||||
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
|
||||
|
||||
for style in range(0, 33):
|
||||
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColorEditor", QColor(Qt.white)))
|
||||
|
@ -195,6 +195,7 @@ class ShellOutputScintilla(QsciScintilla):
|
||||
self.lexer.setFont(font, 2)
|
||||
self.lexer.setFont(font, 3)
|
||||
self.lexer.setFont(font, 4)
|
||||
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
|
||||
|
||||
for style in range(0, 33):
|
||||
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))
|
||||
|
@ -199,6 +199,7 @@ class ShellScintilla(QsciScintilla, code.InteractiveInterpreter):
|
||||
self.lexer.setFont(font, 1)
|
||||
self.lexer.setFont(font, 3)
|
||||
self.lexer.setFont(font, 4)
|
||||
self.lexer.setFont(font, QsciLexerPython.UnclosedString)
|
||||
|
||||
for style in range(0, 33):
|
||||
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user