1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

* Added a little shadow around the covers.

This commit is contained in:
Christian Muehlhaeuser 2010-12-04 02:49:32 +01:00
parent e3dfdb7f11
commit e2f6d2891d
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<file>./data/images/avatar-dude.png</file>
<file>./data/images/back-pressed.png</file>
<file>./data/images/back-rest.png</file>
<file>./data/images/cover-shadow.png</file>
<file>./data/images/magnifying-glass.png</file>
<file>./data/images/no-album-art-placeholder.png</file>
<file>./data/images/now-playing-panel.png</file>

View File

@ -48,7 +48,8 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
painter->setRenderHint( QPainter::Antialiasing );
painter->setPen( opt.palette.color( QPalette::Text ) );
painter->drawPixmap( option.rect.adjusted( 4, 4, -4, -38 ), item->cover );
painter->drawPixmap( option.rect.adjusted( 4, 4, -4, -38 ), QPixmap( RESPATH "images/cover-shadow.png" ) );
painter->drawPixmap( option.rect.adjusted( 6, 4, -6, -41 ), item->cover );
QTextOption to;
to.setAlignment( Qt::AlignHCenter );