Skip to content
Permalink
Browse files

Fix background colors in JS and CSS widgets

  • Loading branch information
nyalldawson committed Oct 5, 2020
1 parent dcf7da7 commit 8654efd09e759d7155df1074de46d0eb56d003bd
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/gui/qgscodeeditorcss.cpp
  2. +1 −0 src/gui/qgscodeeditorjs.cpp
@@ -44,6 +44,7 @@ void QgsCodeEditorCSS::initializeLexer()

lexer->setDefaultColor( color( ColorRole::Default ) );
lexer->setDefaultPaper( color( ColorRole::Background ) );
lexer->setPaper( color( ColorRole::Background ), -1 );

lexer->setColor( color( ColorRole::Tag ), QsciLexerCSS::Tag );
lexer->setColor( color( ColorRole::Class ), QsciLexerCSS::ClassSelector );
@@ -44,6 +44,7 @@ void QgsCodeEditorJavascript::initializeLexer()

lexer->setDefaultColor( color( ColorRole::Default ) );
lexer->setDefaultPaper( color( ColorRole::Background ) );
lexer->setPaper( color( ColorRole::Background ), -1 );

lexer->setColor( color( ColorRole::Class ), QsciLexerJavaScript::GlobalClass );
lexer->setColor( color( ColorRole::Keyword ), QsciLexerJavaScript::Keyword );

0 comments on commit 8654efd

Please sign in to comment.
You can’t perform that action at this time.