Gui: use default app text color for Python code instuctions highlighting

This allows to deal with OS native dark themes
 In such cases, Python instructions were black on a dark background
This commit is contained in:
0penBrain
2022-10-03 17:52:45 +02:00
committed by Chris Hennes
parent 4f17fa7387
commit dc9e4db491
4 changed files with 18 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ DlgSettingsEditorImp::DlgSettingsEditorImp( QWidget* parent )
d = new DlgSettingsEditorP();
QColor col;
col = Qt::black;
col = qApp->palette().windowText().color();
unsigned int lText = (col.red() << 24) | (col.green() << 16) | (col.blue() << 8);
d->colormap.push_back(QPair<QString, unsigned int>
(QString::fromLatin1(QT_TR_NOOP("Text")), lText));