mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Set the bgcolors in one central place.
This commit is contained in:
@@ -34,6 +34,8 @@
|
|||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
#define BGCOLOR_LEFT QString( "#323435" )
|
||||||
|
#define BGCOLOR_RIGHT QString( "#454e59" )
|
||||||
|
|
||||||
TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* parent )
|
TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* parent )
|
||||||
: QWidget( parent )
|
: QWidget( parent )
|
||||||
@@ -43,11 +45,11 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
|||||||
ui->setupUi( widget );
|
ui->setupUi( widget );
|
||||||
|
|
||||||
QPalette pal = palette();
|
QPalette pal = palette();
|
||||||
pal.setColor( QPalette::Window, QColor( "#323435" ) );
|
pal.setColor( QPalette::Window, QColor( BGCOLOR_LEFT ) );
|
||||||
widget->setPalette( pal );
|
widget->setPalette( pal );
|
||||||
widget->setAutoFillBackground( true );
|
widget->setAutoFillBackground( true );
|
||||||
|
|
||||||
pal.setColor( QPalette::Window, QColor( "#454e59" ) );
|
pal.setColor( QPalette::Window, QColor( BGCOLOR_RIGHT ) );
|
||||||
ui->rightBar->setPalette( pal );
|
ui->rightBar->setPalette( pal );
|
||||||
ui->rightBar->setAutoFillBackground( true );
|
ui->rightBar->setAutoFillBackground( true );
|
||||||
|
|
||||||
@@ -109,7 +111,8 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
|||||||
area->setWidget( widget );
|
area->setWidget( widget );
|
||||||
area->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn );
|
area->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn );
|
||||||
|
|
||||||
area->setStyleSheet( "QScrollArea { background-color: qlineargradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #323435, stop: 0.95 #323435, stop: 1 #454e59 ); }" );
|
area->setStyleSheet( "QScrollArea { background-color:"
|
||||||
|
"qlineargradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 " + BGCOLOR_LEFT + ", stop: 0.95 " + BGCOLOR_LEFT + ", stop: 1 " + BGCOLOR_RIGHT + "); }" );
|
||||||
area->setFrameShape( QFrame::NoFrame );
|
area->setFrameShape( QFrame::NoFrame );
|
||||||
area->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
area->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user