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:
@@ -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 );
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user