]> git.sur5r.net Git - minitube/commitdiff
Minor color change
authorFlavio <flavio@odisseo.local>
Fri, 18 Jul 2014 21:05:17 +0000 (23:05 +0200)
committerFlavio <flavio@odisseo.local>
Fri, 18 Jul 2014 21:05:17 +0000 (23:05 +0200)
src/playlistitemdelegate.cpp

index 295eba8e403ea5c98498e3f6e055137528a70cd7..f0de4b47c98dae7e1a1f9c53bc1aa3cb91432524 100644 (file)
@@ -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);