1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 21:27:58 +02:00

* Larger hit area for seek/volume slider.

This commit is contained in:
Christian Muehlhaeuser
2014-08-21 20:38:27 +02:00
parent 965fab8d6a
commit d5746bf47c
2 changed files with 7 additions and 8 deletions

View File

@@ -32,7 +32,6 @@ SeekSlider::SeekSlider( QWidget* parent )
, TomahawkUtils::DpiScaler( this ) , TomahawkUtils::DpiScaler( this )
, m_timeLine( 0 ) , m_timeLine( 0 )
{ {
setFixedHeight( scaledY( 20 ) );
setStyleSheet( QString( setStyleSheet( QString(
"QSlider::groove:horizontal {" "QSlider::groove:horizontal {"
"margin: %1px; border: %2px solid rgba(200, 200, 200, 40); background: rgba(200, 200, 200, 40);" "margin: %1px; border: %2px solid rgba(200, 200, 200, 40); background: rgba(200, 200, 200, 40);"
@@ -43,8 +42,8 @@ SeekSlider::SeekSlider( QWidget* parent )
"margin: %1px; border: %2px solid #ffffff; background: #ffffff;" "margin: %1px; border: %2px solid #ffffff; background: #ffffff;"
// "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( 0 /*margin*/) .arg( 4 /*margin*/)
.arg( 3 /*border*/) + .arg( 2 /*border*/) +
QString( QString(
"QSlider::handle:horizontal {" "QSlider::handle:horizontal {"
"margin-bottom: -%1px; margin-top: -%1px;" "margin-bottom: -%1px; margin-top: -%1px;"
@@ -53,7 +52,7 @@ SeekSlider::SeekSlider( QWidget* parent )
// "background-image: url(" RESPATH "images/seek-and-volume-knob-rest.png);" // "background-image: url(" RESPATH "images/seek-and-volume-knob-rest.png);"
"background-repeat: no-repeat;" "background-repeat: no-repeat;"
"}" ) "}" )
.arg( /*margin top&bottom*/ 0 ) .arg( /*margin top&bottom*/ 4 )
.arg( /*margin left&right*/ 0 ) .arg( /*margin left&right*/ 0 )
.arg( /*height*/ 1 ) .arg( /*height*/ 1 )
.arg( /*width*/ 1 ) ); .arg( /*width*/ 1 ) );

View File

@@ -262,13 +262,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>4</height> <height>12</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>4</height> <height>12</height>
</size> </size>
</property> </property>
<property name="orientation"> <property name="orientation">
@@ -409,13 +409,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>4</height> <height>12</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>4</height> <height>12</height>
</size> </size>
</property> </property>
<property name="orientation"> <property name="orientation">