From: Flavio Date: Fri, 18 Jul 2014 21:05:17 +0000 (+0200) Subject: Minor color change X-Git-Tag: 2.2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed00a4b0e43e91a119c6dda563166f48d5633268;p=minitube Minor color change --- 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);