mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Tint header images.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user