diff --git a/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.cpp b/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.cpp index c3170958e..24db980ef 100644 --- a/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.cpp +++ b/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.cpp @@ -50,32 +50,71 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par connect( ui->artistLabel, SIGNAL( clickedArtist() ), SLOT( onArtistClicked() ) ); ui->statsLabel->setStyleSheet( "QLabel { background-image:url(); border: 2px solid #dddddd; background-color: #faf9f9; border-radius: 4px; padding: 12px; }" ); - ui->lyricsView->setStyleSheet( "QTextBrowser#lyricsView { background-color: transparent; }" ); + ui->statsLabel->setVisible( false ); + ui->lyricsView->setStyleSheet( "QTextBrowser#lyricsView { background-color: transparent; }" ); ui->lyricsView->setFrameShape( QFrame::NoFrame ); ui->lyricsView->setAttribute( Qt::WA_MacShowFocusRect, 0 ); ui->lyricsView->setVisible( false ); // FIXME eventually ui->similarTracksView->setAutoResize( true ); ui->similarTracksView->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); + + ui->lineAbove->setStyleSheet( QString( "QFrame { border: 1px solid %1; }" ).arg( TomahawkStyle::HEADER_BACKGROUND.name() ) ); + ui->lineBelow->setStyleSheet( QString( "QFrame { border: 1px solid black; }" ) ); + // TomahawkUtils::styleScrollBar( ui->similarTracksView->verticalScrollBar() ); TomahawkStyle::styleScrollBar( ui->lyricsView->verticalScrollBar() ); // ui->similarTracksView->setStyleSheet( "QListView { background-color: transparent; } QListView::item { background-color: transparent; }" ); - QFont f = ui->statsLabel->font(); - f.setPointSize( TomahawkUtils::defaultFontSize() + 2 ); - f.setBold( true ); - ui->statsLabel->setFont( f ); + { + QFont f = ui->trackLabel->font(); + f.setFamily( "Titillium Web" ); - QPalette p = ui->lyricsView->palette(); - p.setColor( QPalette::Foreground, TomahawkStyle::PAGE_FOREGROUND ); - p.setColor( QPalette::Text, TomahawkStyle::PAGE_FOREGROUND ); + QPalette p = ui->trackLabel->palette(); + p.setColor( QPalette::Foreground, TomahawkStyle::HEADER_TEXT ); - ui->lyricsView->setPalette( p ); - ui->label->setPalette( p ); - ui->artistLabel->setPalette( p ); - ui->trackLabel->setPalette( p ); + ui->trackLabel->setFont( f ); + ui->trackLabel->setPalette( p ); + } + + { + QFont f = ui->artistLabel->font(); + f.setFamily( "Titillium Web" ); + + QPalette p = ui->artistLabel->palette(); + p.setColor( QPalette::Foreground, TomahawkStyle::HEADER_TEXT ); + + ui->artistLabel->setFont( f ); + ui->artistLabel->setPalette( p ); + } + + { + QFont f = ui->label->font(); + f.setBold( false ); + f.setFamily( "Fauna One" ); + + QPalette p = ui->label->palette(); + p.setColor( QPalette::Foreground, TomahawkStyle::PAGE_CAPTION ); + + ui->label->setFont( f ); + ui->label->setPalette( p ); + } + + { + QFont f = ui->statsLabel->font(); + f.setPointSize( TomahawkUtils::defaultFontSize() + 2 ); + f.setBold( true ); + ui->statsLabel->setFont( f ); + } + + { + QPalette p = ui->lyricsView->palette(); + p.setColor( QPalette::Foreground, TomahawkStyle::PAGE_FOREGROUND ); + p.setColor( QPalette::Text, TomahawkStyle::PAGE_FOREGROUND ); + ui->lyricsView->setPalette( p ); + } m_relatedTracksModel = new PlayableModel( ui->similarTracksView ); ui->similarTracksView->setPlayableModel( m_relatedTracksModel ); @@ -92,12 +131,16 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par m_scrollArea->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn ); QPalette pal = palette(); - pal.setBrush( backgroundRole(), TomahawkStyle::PAGE_BACKGROUND ); + pal.setBrush( backgroundRole(), TomahawkStyle::HEADER_BACKGROUND ); m_scrollArea->setPalette( pal ); m_scrollArea->setAutoFillBackground( true ); m_scrollArea->setFrameShape( QFrame::NoFrame ); m_scrollArea->setAttribute( Qt::WA_MacShowFocusRect, 0 ); + pal.setBrush( backgroundRole(), TomahawkStyle::PAGE_BACKGROUND ); + ui->widget->setPalette( pal ); + ui->widget->setAutoFillBackground( true ); + QHBoxLayout* l = new QHBoxLayout( ui->statsWidget ); m_playStatsGauge = new StatsGauge( ui->statsWidget ); m_playStatsGauge->setText( tr( "# PLAYS / ARTIST" ) ); @@ -111,7 +154,6 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par l->addWidget( m_playStatsTotalGauge ); l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) ); ui->statsWidget->setLayout( l ); - ui->statsLabel->setVisible( false ); TomahawkUtils::unmarginLayout( l ); QVBoxLayout* layout = new QVBoxLayout(); diff --git a/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.ui b/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.ui index d6453bbef..404249f7d 100644 --- a/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.ui +++ b/src/libtomahawk/widgets/infowidgets/TrackInfoWidget.ui @@ -7,18 +7,18 @@ 0 0 965 - 771 + 832 Form - + - 16 + 0 - 12 + 0 @@ -26,7 +26,7 @@ 16 - 0 + 12 @@ -53,7 +53,7 @@ - 8 + 0 0 @@ -77,7 +77,7 @@ - 18 + 20 75 true @@ -100,7 +100,7 @@ - 14 + 16 @@ -163,6 +163,32 @@ + + + + + 16777215 + 1 + + + + Qt::Horizontal + + + + + + + + 16777215 + 1 + + + + Qt::Horizontal + + + @@ -183,61 +209,81 @@ - - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - + + - 4 + 0 - 8 + 0 - 4 + 16 - 8 + 0 - 8 + 16 - - - - Arial - 18 - 75 - true - + + + + 0 + 0 + - - Similar Tracks + + QFrame::StyledPanel - - 0 - - - - - - - - 0 - 0 - + + QFrame::Raised + + + 4 + + + 28 + + + 4 + + + 8 + + + 4 + + + + + + 20 + 75 + true + + + + Similar Tracks + + + 0 + + + + + + + + 0 + 0 + + + + +