1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 15:16:34 +02:00

* Tint header images.

This commit is contained in:
Christian Muehlhaeuser
2014-09-02 05:29:58 +02:00
parent 8375d4e022
commit 1af04681cf

View File

@@ -102,7 +102,7 @@ void
BasicHeader::setPixmap( const QPixmap& p ) BasicHeader::setPixmap( const QPixmap& p )
{ {
ui->iconLabel->setFixedHeight( 20 ); ui->iconLabel->setFixedHeight( 20 );
ui->iconLabel->setPixmap( p.scaledToHeight( ui->iconLabel->height(), Qt::SmoothTransformation ) ); ui->iconLabel->setPixmap( TomahawkUtils::tinted( p, Qt::white ).scaledToHeight( ui->iconLabel->height(), Qt::SmoothTransformation ) );
if ( !p.isNull() ) if ( !p.isNull() )
ui->iconLabel->show(); ui->iconLabel->show();