From 5d0cd075c3a42c14d610b94c5cd1f1b11db3ad55 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 14 Jun 2013 01:56:05 +0200 Subject: [PATCH] * Cleaned up TomahawkStyle. --- src/libtomahawk/utils/TomahawkStyle.cpp | 4 ++-- src/libtomahawk/utils/TomahawkStyle.h | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/libtomahawk/utils/TomahawkStyle.cpp b/src/libtomahawk/utils/TomahawkStyle.cpp index 5f325704b..802649ded 100644 --- a/src/libtomahawk/utils/TomahawkStyle.cpp +++ b/src/libtomahawk/utils/TomahawkStyle.cpp @@ -42,8 +42,8 @@ TomahawkStyle::horizontalHeader( QPainter* painter, const QRect& r ) painter->fillRect( lowerHalf, TomahawkStyle::headerLowerColor() );*/ QLinearGradient gradient( QPoint( 0, 0 ), QPoint( 0, 1 ) ); gradient.setCoordinateMode( QGradient::ObjectBoundingMode ); - gradient.setColorAt( 0.0, TomahawkStyle::HEADER_LOWER ); - gradient.setColorAt( 1.0, TomahawkStyle::HEADER_UPPER ); + gradient.setColorAt( 0.0, TomahawkStyle::HEADER_BACKGROUND ); + gradient.setColorAt( 1.0, TomahawkStyle::HEADER_BACKGROUND ); painter->setBrush( gradient ); painter->fillRect( r, gradient ); diff --git a/src/libtomahawk/utils/TomahawkStyle.h b/src/libtomahawk/utils/TomahawkStyle.h index 973850d71..ef6e02468 100644 --- a/src/libtomahawk/utils/TomahawkStyle.h +++ b/src/libtomahawk/utils/TomahawkStyle.h @@ -61,15 +61,20 @@ namespace TomahawkStyle static const QColor SELECTION_BACKGROUND = QColor( "#962c26" ); static const QColor SELECTION_FOREGROUND = QColor( "#ffffff" ); - static const QColor HEADER_UPPER = QColor( "#292f34" ); - static const QColor HEADER_LOWER = QColor( "#292f34" ); + static const QColor HEADER_BACKGROUND = QColor( "#292f34" ); static const QColor HEADER_TEXT = QColor( "#ffffff" ); + static const QColor HEADER_LINK = QColor( "#8dbf2d" ); static const QColor HEADER_HIGHLIGHT = QColor( "#333" ); + static const QColor TOGGLEBUTTON_BACKGROUND = QColor( "#292f34" ); + static const QColor TOGGLEBUTTON_TEXT = QColor( "#ffffff" ); + static const QColor TOGGLEBUTTON_HIGHLIGHT = QColor( "#333" ); + + static const QColor PAGE_CAPTION = QColor( "#292F34" ); static const QColor PAGE_TEXT = QColor( "#ABCCE8" ); - static const QColor PAGE_ITEM_BACKGROUND = QColor( "#1e1e1e" ).lighter( 290 ); static const QColor PAGE_FOREGROUND = QColor( "#292f34" ); static const QColor PAGE_BACKGROUND = QColor( "#DBDBDB" ); + static const QColor FOOTNOTES_BACKGROUND = QColor( "#272b2e" ); static const QColor DASHBOARD_ROUNDFIGURE_BACKGROUND = QColor( "#454e59" );