mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Try different highlight color for now-playing items.
This commit is contained in:
@@ -118,7 +118,10 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
|
|||||||
initStyleOption( &opt, index );
|
initStyleOption( &opt, index );
|
||||||
|
|
||||||
if ( item->isPlaying() )
|
if ( item->isPlaying() )
|
||||||
|
{
|
||||||
|
opt.palette.setColor( QPalette::Highlight, opt.palette.color( QPalette::Mid ) );
|
||||||
opt.state |= QStyle::State_Selected;
|
opt.state |= QStyle::State_Selected;
|
||||||
|
}
|
||||||
if ( item->isPlaying() || index.column() == TrackModel::Score )
|
if ( item->isPlaying() || index.column() == TrackModel::Score )
|
||||||
opt.text.clear();
|
opt.text.clear();
|
||||||
if ( opt.state & QStyle::State_Selected )
|
if ( opt.state & QStyle::State_Selected )
|
||||||
|
Reference in New Issue
Block a user