1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Moved SeekSlider foreground color to TomahawkStyle.

This commit is contained in:
Christian Muehlhaeuser
2015-03-06 23:43:47 +01:00
parent 63bb072f93
commit 264a747f14
2 changed files with 6 additions and 2 deletions

View File

@@ -98,6 +98,8 @@ namespace TomahawkStyle
static const QColor SLIDESWITCH_UNCHECKED_BOTTOM = QColor( 179, 179, 179 ); static const QColor SLIDESWITCH_UNCHECKED_BOTTOM = QColor( 179, 179, 179 );
static const QColor SLIDESWITCH_TEXT = QColor( "#606060" ); static const QColor SLIDESWITCH_TEXT = QColor( "#606060" );
static const QColor SEEKSLIDER_FOREGROUND = QColor( "#ffffff" );
static const int POPUP_ROUNDING_RADIUS = 6; static const int POPUP_ROUNDING_RADIUS = 6;
static const float POPUP_OPACITY = 0.93; static const float POPUP_OPACITY = 0.93;
} }

View File

@@ -24,6 +24,7 @@
#include <QtCore/QTimeLine> #include <QtCore/QTimeLine>
#include "utils/TomahawkUtils.h" #include "utils/TomahawkUtils.h"
#include "utils/TomahawkStyle.h"
#include "utils/Logger.h" #include "utils/Logger.h"
@@ -40,7 +41,7 @@ SeekSlider::SeekSlider( QWidget* parent )
"}" "}"
"QSlider::sub-page:horizontal {" "QSlider::sub-page:horizontal {"
"margin-top: %1px; margin-bottom: %1px; border: %2px solid rgba(0, 0, 0, 0); background: #ffffff;" "margin-top: %1px; margin-bottom: %1px; border: %2px solid rgba(0, 0, 0, 0); background: %5;"
// "border-image: url(" RESPATH "images/seek-slider-level.png) %2 %2 %2 %2 stretch stretch;" // "border-image: url(" RESPATH "images/seek-slider-level.png) %2 %2 %2 %2 stretch stretch;"
"}" ) "}" )
.arg( scaledX( 7 ) /*margin*/) .arg( scaledX( 7 ) /*margin*/)
@@ -56,7 +57,8 @@ SeekSlider::SeekSlider( QWidget* parent )
.arg( /*margin top&bottom*/ 0 ) .arg( /*margin top&bottom*/ 0 )
.arg( /*margin left&right*/ 0 ) .arg( /*margin left&right*/ 0 )
.arg( /*height*/ 0 ) .arg( /*height*/ 0 )
.arg( /*width*/ 0 ) ); .arg( /*width*/ 0 )
.arg( /*color*/ TomahawkStyle::SEEKSLIDER_FOREGROUND.name() ) );
} }