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