1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Make hit-area for sliders even bigger, while hopefully restoring them on OSX, too.

This commit is contained in:
Christian Muehlhaeuser
2014-08-21 21:37:35 +02:00
parent 4dd70556a5
commit 949e6dbc35
2 changed files with 11 additions and 11 deletions

View File

@@ -35,16 +35,16 @@ SeekSlider::SeekSlider( QWidget* parent )
{ {
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);" "height: 4px; margin: %1px; border: %2px solid rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);"
// "border-image: url(" RESPATH "images/seek-slider-bkg.png) %2 %2 %2 %2 stretch stretch;" // "border-image: url(" RESPATH "images/seek-slider-bkg.png) %2 %2 %2 %2 stretch stretch;"
"}" "}"
"QSlider::sub-page:horizontal {" "QSlider::sub-page:horizontal {"
"margin: %1px; border: %2px solid #ffffff; background: #ffffff;" "height: 4px; margin: %1px; border: %2px solid rgba(0, 0, 0, 0); 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( 4 /*margin*/) .arg( 0 /*margin*/)
.arg( 2 /*border*/) + .arg( 0 /*border*/) +
QString( QString(
"QSlider::handle:horizontal {" "QSlider::handle:horizontal {"
"margin-bottom: -%1px; margin-top: -%1px;" "margin-bottom: -%1px; margin-top: -%1px;"
@@ -53,10 +53,10 @@ 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*/ 4 ) .arg( /*margin top&bottom*/ 0 )
.arg( /*margin left&right*/ 0 ) .arg( /*margin left&right*/ 0 )
.arg( /*height*/ 1 ) .arg( /*height*/ 0 )
.arg( /*width*/ 1 ) ); .arg( /*width*/ 0 ) );
} }

View File

@@ -262,13 +262,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>12</height> <height>16</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>12</height> <height>16</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>12</height> <height>16</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>12</height> <height>16</height>
</size> </size>
</property> </property>
<property name="orientation"> <property name="orientation">