mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
* Switch track and artist name in AudioControls and make artist smaller.
This commit is contained in:
@@ -64,17 +64,16 @@ AudioControls::AudioControls( QWidget* parent )
|
|||||||
|
|
||||||
QFont f = font();
|
QFont f = font();
|
||||||
f.setPointSize( 13 );
|
f.setPointSize( 13 );
|
||||||
|
ui->trackLabel->setFont( f );
|
||||||
|
|
||||||
|
f.setPointSize( 11 );
|
||||||
ui->dashLabel->setFont( f );
|
ui->dashLabel->setFont( f );
|
||||||
ui->artistLabel->setFont( f );
|
ui->artistLabel->setFont( f );
|
||||||
ui->trackLabel->setFont( f );
|
|
||||||
ui->artistLabel->setElideMode( Qt::ElideNone );
|
ui->artistLabel->setElideMode( Qt::ElideNone );
|
||||||
ui->trackLabel->setElideMode( Qt::ElideNone );
|
ui->trackLabel->setElideMode( Qt::ElideNone );
|
||||||
ui->artistLabel->setType( QueryLabel::Artist );
|
ui->artistLabel->setType( QueryLabel::Artist );
|
||||||
ui->trackLabel->setType( QueryLabel::Track );
|
ui->trackLabel->setType( QueryLabel::Track );
|
||||||
|
|
||||||
f.setPointSize( 11 );
|
|
||||||
|
|
||||||
QPalette queryLabelsPalette = ui->artistLabel->palette();
|
QPalette queryLabelsPalette = ui->artistLabel->palette();
|
||||||
queryLabelsPalette.setColor( QPalette::Foreground, Qt::white );
|
queryLabelsPalette.setColor( QPalette::Foreground, Qt::white );
|
||||||
ui->artistLabel->setPalette( queryLabelsPalette );
|
ui->artistLabel->setPalette( queryLabelsPalette );
|
||||||
@@ -83,6 +82,7 @@ AudioControls::AudioControls( QWidget* parent )
|
|||||||
|
|
||||||
ui->timeLabel->setPalette( queryLabelsPalette );
|
ui->timeLabel->setPalette( queryLabelsPalette );
|
||||||
ui->timeLeftLabel->setPalette( queryLabelsPalette );
|
ui->timeLeftLabel->setPalette( queryLabelsPalette );
|
||||||
|
f.setPointSize( 11 );
|
||||||
ui->timeLabel->setFont( f );
|
ui->timeLabel->setFont( f );
|
||||||
ui->timeLeftLabel->setFont( f );
|
ui->timeLeftLabel->setFont( f );
|
||||||
|
|
||||||
|
@@ -66,9 +66,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QueryLabel" name="artistLabel">
|
<widget class="QueryLabel" name="trackLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">Artist</string>
|
<string notr="true">Track</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -80,9 +80,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QueryLabel" name="trackLabel">
|
<widget class="QueryLabel" name="artistLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">Track</string>
|
<string notr="true">Artist</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Reference in New Issue
Block a user