mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
Merge pull request #246 from TheOneRing/thumb_size
use bigger icons for the thumb bar buttons, to reduce pixel artefacts on...
This commit is contained in:
@@ -632,7 +632,7 @@ TomahawkWindow::thumbIcon( TomahawkUtils::ImageType type )
|
|||||||
static QMap<TomahawkUtils::ImageType,HICON> thumbIcons;
|
static QMap<TomahawkUtils::ImageType,HICON> thumbIcons;
|
||||||
if ( !thumbIcons.contains( type ) )
|
if ( !thumbIcons.contains( type ) )
|
||||||
{
|
{
|
||||||
QPixmap pix ( TomahawkUtils::defaultPixmap(type , TomahawkUtils::Original, QSize( 20, 20 ) ) );
|
QPixmap pix ( TomahawkUtils::defaultPixmap(type , TomahawkUtils::Original, QSize( 40, 40 ) ) );
|
||||||
thumbIcons[type] = pix.toWinHICON();
|
thumbIcons[type] = pix.toWinHICON();
|
||||||
}
|
}
|
||||||
return thumbIcons[type];
|
return thumbIcons[type];
|
||||||
@@ -641,7 +641,7 @@ TomahawkWindow::thumbIcon( TomahawkUtils::ImageType type )
|
|||||||
|
|
||||||
QIcon TomahawkWindow::thumbIcon(TomahawkUtils::ImageType type)
|
QIcon TomahawkWindow::thumbIcon(TomahawkUtils::ImageType type)
|
||||||
{
|
{
|
||||||
return TomahawkUtils::defaultPixmap( type , TomahawkUtils::Original, QSize( 20, 20 ) );
|
return TomahawkUtils::defaultPixmap( type , TomahawkUtils::Original, QSize( 40, 40 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif//QT_VERSION < QT_VERSION_CHECK( 5, 2, 0 )
|
#endif//QT_VERSION < QT_VERSION_CHECK( 5, 2, 0 )
|
||||||
|
Reference in New Issue
Block a user