From: Christophe Bourcier Date: Thu, 27 Apr 2023 16:22:25 +0000 (+0200) Subject: To let python console text be white on dark theme, don't hard-code black X-Git-Tag: V9_11_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a0b50e1d912611e262eebf879501e528a95bc04;p=modules%2Fgui.git To let python console text be white on dark theme, don't hard-code black --- diff --git a/tools/PyConsole/src/PyConsole_Editor.cxx b/tools/PyConsole/src/PyConsole_Editor.cxx index d3ffff9df..ee70fbd9c 100644 --- a/tools/PyConsole/src/PyConsole_Editor.cxx +++ b/tools/PyConsole/src/PyConsole_Editor.cxx @@ -369,8 +369,6 @@ void PyConsole_Editor::addText( const QString& str, aCursor.insertBlock(); if ( isError ) cf.setForeground( QBrush( Qt::red ) ); - else - cf.setForeground( QBrush( Qt::black ) ); aCursor.insertText( str, cf ); moveCursor( QTextCursor::End ); ensureCursorVisible();