mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Support rounded default track images.
This commit is contained in:
@@ -439,6 +439,8 @@ defaultPixmap( ImageType type, ImageMode mode, const QSize& size )
|
|||||||
case DefaultTrackImage:
|
case DefaultTrackImage:
|
||||||
if ( mode == Grid )
|
if ( mode == Grid )
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/track-placeholder-grid.svg", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/track-placeholder-grid.svg", size );
|
||||||
|
else if ( mode == RoundedCorners )
|
||||||
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/track-icon.svg", size, TomahawkUtils::RoundedCorners );
|
||||||
else
|
else
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/track-icon.svg", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/track-icon.svg", size );
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user