From 7fd099fb737d625befa6f04dcfad1f6c74705e14 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 23 Nov 2018 14:17:09 +0100 Subject: Use palette colors where applicable Don't assume we know what color ought to use. Ask the palette where applicable, but keep the modified configuration options. --- smdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'smdialog.cpp') diff --git a/smdialog.cpp b/smdialog.cpp index e5ca13c..bd6c3f6 100644 --- a/smdialog.cpp +++ b/smdialog.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include "smdialog.h" #include "helper.h" @@ -107,7 +108,7 @@ void UnpackDialog::addOutput(const QString &msg, const QString &prepend){ cur.insertText(prepend); } QTextCharFormat fmtBlack; - fmtBlack.setForeground(QBrush(Qt::black)); + fmtBlack.setForeground(qApp->palette().color(QPalette::Text)); cur.setCharFormat(fmtBlack); cur.insertText(msg); mOutput->ensureCursorVisible(); -- cgit v1.2.3-70-g09d2