From ed00a4b0e43e91a119c6dda563166f48d5633268 Mon Sep 17 00:00:00 2001 From: Flavio Date: Fri, 18 Jul 2014 23:05:17 +0200 Subject: [PATCH] Minor color change --- src/playlistitemdelegate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playlistitemdelegate.cpp b/src/playlistitemdelegate.cpp index 295eba8..f0de4b4 100644 --- a/src/playlistitemdelegate.cpp +++ b/src/playlistitemdelegate.cpp @@ -146,9 +146,9 @@ void PlaylistItemDelegate::paintBody( QPainter* painter, // text color if (isSelected) - painter->setPen(QPen(option.palette.brush(QPalette::HighlightedText), 0)); + painter->setPen(QPen(option.palette.highlightedText(), 0)); else - painter->setPen(QPen(option.palette.brush(QPalette::Text), 0)); + painter->setPen(QPen(option.palette.text(), 0)); // title QString videoTitle = video->title(); @@ -190,7 +190,7 @@ void PlaylistItemDelegate::paintBody( QPainter* painter, if (authorHovered) painter->setPen(QPen(option.palette.brush(QPalette::Highlight), 0)); else - painter->setPen(QPen(option.palette.brush(QPalette::Mid), 0)); + painter->setOpacity(.5); } QString authorString = video->author(); textLoc.setX(textLoc.x() + stringSize.width() + PADDING); -- 2.39.5