From 6e494db0b769b6788cc2a8e9ff3d4221bf663f64 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 21 Aug 2014 07:53:57 +0200 Subject: [PATCH] * Make the sidebar now-playing icon smaller. --- src/tomahawk/sourcetree/SourceDelegate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tomahawk/sourcetree/SourceDelegate.cpp b/src/tomahawk/sourcetree/SourceDelegate.cpp index 87c4f75fa..453c21bd9 100644 --- a/src/tomahawk/sourcetree/SourceDelegate.cpp +++ b/src/tomahawk/sourcetree/SourceDelegate.cpp @@ -188,17 +188,17 @@ SourceDelegate::paintDecorations( QPainter* painter, const QStyleOptionViewItem& if ( playable && playing && item->isBeingPlayed() ) { - int iconW = option.rect.height() - 4; + int iconW = option.rect.height() - 8; if ( m_expandedMap.contains( index ) ) { AnimationHelper* ah = m_expandedMap.value( index ); if ( ah->initialized() ) { - iconW = ah->originalSize().height() - 4; + iconW = ah->originalSize().height() - 8; } } - QRect iconRect = QRect( 6, option.rect.y() + 2, iconW, iconW ); + QRect iconRect = QRect( 8, option.rect.y() + 4, iconW, iconW ); QPixmap speaker = TomahawkUtils::defaultPixmap( TomahawkUtils::NowPlayingSpeakerDark, TomahawkUtils::Original, iconRect.size() ); painter->drawPixmap( iconRect, speaker );