status dialog: Use contrast color for highlights

Fixes #440.
This commit is contained in:
Daniel Molkentin 2013-06-06 22:11:36 +02:00
parent 2099b7c6a0
commit 9d7db88fcb

View file

@ -169,6 +169,10 @@ void FolderViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
painter->drawPixmap(QPoint(statusRect.left(), statusRect.top()), statusIcon.pixmap(48,48));
if ((option.state & QStyle::State_Selected) && (option.state & QStyle::State_Active))
painter->setPen(option.palette.color(QPalette::HighlightedText));
else
painter->setPen(option.palette.color(QPalette::Text));
painter->setFont(aliasFont);
painter->drawText(aliasRect, aliasText);