summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.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 /pictureviewer2.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 'pictureviewer2.cpp')
-rw-r--r--pictureviewer2.cpp2
1 files changed, 1 insertions, 1 deletions
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);