mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 07:19:42 +01:00
* Use the proper color for selected playlist items on the Dashboard.
This commit is contained in:
parent
55ab72ee76
commit
004ea967ad
@ -330,12 +330,17 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
if ( type == RecentlyPlayedPlaylistsModel::Station )
|
||||
{
|
||||
descText = index.data( RecentlyPlayedPlaylistsModel::DynamicPlaylistRole ).value< Tomahawk::dynplaylist_ptr >()->generator()->sentenceSummary();
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
descText = index.data( RecentlyPlayedPlaylistsModel::ArtistRole ).toString();
|
||||
}
|
||||
|
||||
QColor c = painter->pen().color();
|
||||
painter->setPen( QColor( Qt::gray ).darker() );
|
||||
if ( !( option.state & QStyle::State_Selected && option.state & QStyle::State_Active ) )
|
||||
{
|
||||
painter->setPen( QColor( Qt::gray ).darker() );
|
||||
}
|
||||
|
||||
QRect rectText = option.rect.adjusted( 66, 20, -leftEdge - 10, -8 );
|
||||
#ifdef Q_WS_MAC
|
||||
|
Loading…
x
Reference in New Issue
Block a user