1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Updated default styles for download button and progress bar.

This commit is contained in:
Christian Muehlhaeuser
2015-03-24 17:44:48 +01:00
parent 797000a0bb
commit 06b39e6826
2 changed files with 8 additions and 5 deletions

View File

@@ -400,11 +400,11 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
}
else
{
painter->setPen( TomahawkStyle::PLAYLIST_BUTTON_BACKGROUND.darker() );
painter->setBrush( TomahawkStyle::PLAYLIST_BUTTON_FOREGROUND );
painter->setPen( TomahawkStyle::PLAYLIST_PROGRESS_FOREGROUND.darker() );
painter->setBrush( TomahawkStyle::PLAYLIST_PROGRESS_BACKGROUND );
painter->drawRect( optc.rect.adjusted( 2, 2, -2, -2 ) );
painter->setPen( TomahawkStyle::PLAYLIST_BUTTON_BACKGROUND );
painter->setBrush( TomahawkStyle::PLAYLIST_BUTTON_BACKGROUND );
painter->setPen( TomahawkStyle::PLAYLIST_PROGRESS_FOREGROUND );
painter->setBrush( TomahawkStyle::PLAYLIST_PROGRESS_FOREGROUND );
QRect fillp = optc.rect.adjusted( 3, 3, -3, -3 );
fillp.setWidth( float(fillp.width()) * ( float(item->result()->downloadJob()->progressPercentage()) / 100.0 ) );
painter->drawRect( fillp );

View File

@@ -100,9 +100,12 @@ namespace TomahawkStyle
static const QColor SEEKSLIDER_FOREGROUND = QColor( "#ffffff" );
static const QColor PLAYLIST_BUTTON_BACKGROUND = QColor( "#E61878" );
static const QColor PLAYLIST_BUTTON_BACKGROUND = QColor( "#111111" );
static const QColor PLAYLIST_BUTTON_FOREGROUND = QColor( "#ffffff" );
static const QColor PLAYLIST_PROGRESS_BACKGROUND = QColor( "#ffffff" );
static const QColor PLAYLIST_PROGRESS_FOREGROUND = QColor( "#E61878" );
static const int POPUP_ROUNDING_RADIUS = 6;
static const float POPUP_OPACITY = 0.93;
}