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. --- pictureviewer2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pictureviewer2.cpp') diff --git a/pictureviewer2.cpp b/pictureviewer2.cpp index 5b30e1b..ed73150 100644 --- a/pictureviewer2.cpp +++ b/pictureviewer2.cpp @@ -792,7 +792,7 @@ void PictureViewer2Item::paint(QPainter *painter, const QStyleOptionGraphicsItem painter->setRenderHint(QPainter::TextAntialiasing, true); QColor bgColor = QColor(Qt::white); bgColor.setAlpha(80); - QColor fgColor = QColor(Qt::black); + QColor fgColor = QColor(qApp->palette().color(QPalette::Text)); QBrush brush(bgColor); painter->setPen(QColor(Qt::yellow)); painter->setBrush(brush); -- cgit v1.2.3-70-g09d2