Commit 7c7c6738 authored by Pino Toscano's avatar Pino Toscano

Instead of hardcoding Qt::gray, use the Dark color of the widget palette.

Let's see how it looks...

svn path=/trunk/KDE/kdegraphics/okular/; revision=690972
parent ff3cf049
......@@ -2058,7 +2058,8 @@ void PageView::drawDocumentOnPainter( const QRect & contentsRect, QPainter * p )
// fill with background color the unpainted area
const QVector<QRect> &backRects = remainingArea.rects();
int backRectsNumber = backRects.count();
QColor backColor = /*d->items.isEmpty() ? Qt::lightGray :*/ Qt::gray;
// the previous color here was Qt::gray
QColor backColor = widget()->palette().color( QPalette::Dark );
for ( int jr = 0; jr < backRectsNumber; jr++ )
p->fillRect( backRects[ jr ], backColor );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment