mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
* Larger hit-area for sliders.
This commit is contained in:
@@ -35,15 +35,15 @@ SeekSlider::SeekSlider( QWidget* parent )
|
||||
{
|
||||
setStyleSheet( QString(
|
||||
"QSlider::groove:horizontal {"
|
||||
"height: 4px; margin: %1px; border: %2px solid rgba(200, 200, 200, 0); background: rgba(200, 200, 200, 40);"
|
||||
"margin-top: %1px; margin-bottom: %1px; border: %2px solid rgba(200, 200, 200, 0); background: rgba(200, 200, 200, 40);"
|
||||
// "border-image: url(" RESPATH "images/seek-slider-bkg.png) %2 %2 %2 %2 stretch stretch;"
|
||||
"}"
|
||||
|
||||
"QSlider::sub-page:horizontal {"
|
||||
"height: 4px; margin: %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: #ffffff;"
|
||||
// "border-image: url(" RESPATH "images/seek-slider-level.png) %2 %2 %2 %2 stretch stretch;"
|
||||
"}" )
|
||||
.arg( 0 /*margin*/)
|
||||
.arg( scaledX( 7 ) /*margin*/)
|
||||
.arg( 0 /*border*/) +
|
||||
QString(
|
||||
"QSlider::handle:horizontal {"
|
||||
|
@@ -95,6 +95,11 @@ AudioControls::AudioControls( QWidget* parent )
|
||||
ui->repeatButton->setFixedSize( scaled( 16, 16 ) );
|
||||
ui->volumeLowButton->setFixedSize( scaled( 16, 16 ) );
|
||||
|
||||
ui->seekSlider->setFixedHeight( scaledY( 20 ) );
|
||||
ui->volumeSlider->setFixedHeight( scaledY( 20 ) );
|
||||
ui->timeLabel->setFixedHeight( scaledY( 20 ) );
|
||||
ui->timeLeftLabel->setFixedHeight( scaledY( 20 ) );
|
||||
|
||||
// ui->prevButton->setToolTip( tr( "Previous Track" ) );
|
||||
// ui->nextButton->setToolTip( tr( "Next Track" ) );
|
||||
ui->shuffleButton->setToolTip( tr( "Shuffle" ) );
|
||||
|
@@ -125,7 +125,7 @@
|
||||
<item>
|
||||
<widget class="QWidget" name="buttonArea" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
@@ -247,7 +247,7 @@
|
||||
<string notr="true" extracomment="not translatable because is placeholder text">Time</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -282,20 +282,11 @@
|
||||
<string notr="true" extracomment="not translatable because is placeholder text">Time Left</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_5" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<property name="spacing">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@@ -422,9 +413,6 @@
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
Reference in New Issue
Block a user