summaryrefslogtreecommitdiffstats
path: root/smdialog.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-11-23 14:17:09 +0100
committerArno <arno@disconnect.de>2018-11-23 14:17:09 +0100
commit7fd099fb737d625befa6f04dcfad1f6c74705e14 (patch)
tree2864b6177561e142f325d03c9f9b6785cb113748 /smdialog.cpp
parent8c932c2d21e35fe5b446f80643f3b0ecf19b177d (diff)
downloadSheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.tar.gz
SheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.tar.bz2
SheMov-7fd099fb737d625befa6f04dcfad1f6c74705e14.zip
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.
Diffstat (limited to 'smdialog.cpp')
-rw-r--r--smdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/smdialog.cpp b/smdialog.cpp
index e5ca13c..bd6c3f6 100644
--- a/smdialog.cpp
+++ b/smdialog.cpp
@@ -12,6 +12,7 @@
#include <QFormLayout>
#include <QTextEdit>
#include <QTextBlock>
+#include <QApplication>
#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();