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:
parent
e3dfdb7f11
commit
e2f6d2891d
@ -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>
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user