mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Standardize colors used in header gradients, although stylehelper and basicheader paint gradients differently so they looks slightly different.
This commit is contained in:
parent
ff737fc175
commit
dad3c7d719
@ -93,7 +93,7 @@ ContextWidget::ContextWidget( QWidget* parent )
|
||||
|
||||
ensurePolished();
|
||||
QPalette pal = palette();
|
||||
pal.setBrush( QPalette::Window, QColor( "#323435" ) );
|
||||
pal.setBrush( QPalette::Window, QColor( "#393840" ) );
|
||||
setPalette( pal );
|
||||
|
||||
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( toggleSize() ) );
|
||||
|
@ -293,8 +293,8 @@ InfoBar::paintEvent( QPaintEvent* event )
|
||||
|
||||
QLinearGradient gradient( QPoint( 0, 0 ), QPoint( 0, 1 ) );
|
||||
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
|
||||
gradient.setColorAt( 0.0, QColor( "#615858" ) );
|
||||
gradient.setColorAt( 1.0, QColor( "#231F1F" ) );
|
||||
gradient.setColorAt( 0.0, QColor( "#707070" ) );
|
||||
gradient.setColorAt( 1.0, QColor( "#25292c" ) );
|
||||
|
||||
painter.setBrush( gradient );
|
||||
painter.fillRect( event->rect(), gradient );
|
||||
|
@ -74,7 +74,7 @@ GridView::GridView( QWidget* parent )
|
||||
setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
||||
setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn );
|
||||
|
||||
setStyleSheet( "QListView { background-color: #323435; }" );
|
||||
setStyleSheet( "QListView { background-color: #393840; }" );
|
||||
|
||||
setAutoFitItems( true );
|
||||
setAutoResize( false );
|
||||
|
@ -130,8 +130,8 @@ BasicHeader::paintEvent( QPaintEvent* event )
|
||||
|
||||
QLinearGradient gradient( QPoint( 0, 0 ), QPoint( 0, 1 ) );
|
||||
gradient.setCoordinateMode( QGradient::ObjectBoundingMode );
|
||||
gradient.setColorAt( 0.0, QColor( "#615858" ) );
|
||||
gradient.setColorAt( 1.0, QColor( "#231F1F" ) );
|
||||
gradient.setColorAt( 0.0, QColor( "#707070" ) );
|
||||
gradient.setColorAt( 1.0, QColor( "#25292c" ) );
|
||||
|
||||
painter.setBrush( gradient );
|
||||
painter.fillRect( event->rect(), gradient );
|
||||
|
@ -50,7 +50,7 @@ AlbumInfoWidget::AlbumInfoWidget( const Tomahawk::album_ptr& album, QWidget* par
|
||||
ui->setupUi( widget );
|
||||
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Window, QColor( "#323435" ) );
|
||||
pal.setColor( QPalette::Window, QColor( "#393840" ) );
|
||||
|
||||
widget->setPalette( pal );
|
||||
widget->setAutoFillBackground( true );
|
||||
|
@ -51,7 +51,7 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
||||
ui->setupUi( widget );
|
||||
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Window, QColor( "#323435" ) );
|
||||
pal.setColor( QPalette::Window, QColor( "#393840" ) );
|
||||
|
||||
widget->setPalette( pal );
|
||||
widget->setAutoFillBackground( true );
|
||||
|
@ -44,7 +44,7 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
||||
ui->setupUi( widget );
|
||||
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Window, QColor( "#323435" ) );
|
||||
pal.setColor( QPalette::Window, QColor( "#393840" ) );
|
||||
|
||||
widget->setPalette( pal );
|
||||
widget->setAutoFillBackground( true );
|
||||
|
Loading…
x
Reference in New Issue
Block a user