mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
Make FlexibleHeader and InfoBar more consistent with each other.
This commit is contained in:
parent
343ead0ed9
commit
5c7404946e
@ -49,7 +49,7 @@ InfoBar::InfoBar( QWidget* parent )
|
||||
layout()->setContentsMargins( 8, 4, 8, 4 );
|
||||
|
||||
QFont boldFont = ui->captionLabel->font();
|
||||
boldFont.setPointSize( TomahawkUtils::defaultFontSize() + 5 );
|
||||
boldFont.setPointSize( TomahawkUtils::defaultFontSize() + 4 );
|
||||
boldFont.setBold( true );
|
||||
ui->captionLabel->setFont( boldFont );
|
||||
ui->captionLabel->setElideMode( Qt::ElideRight );
|
||||
@ -71,8 +71,8 @@ InfoBar::InfoBar( QWidget* parent )
|
||||
ui->descriptionLabel->setPalette( m_whitePal );
|
||||
ui->longDescriptionLabel->setPalette( m_whitePal );
|
||||
|
||||
ui->captionLabel->setMargin( 6 );
|
||||
ui->descriptionLabel->setMargin( 6 );
|
||||
ui->captionLabel->setMargin( 2 );
|
||||
ui->descriptionLabel->setMargin( 1 );
|
||||
ui->longDescriptionLabel->setMargin( 4 );
|
||||
|
||||
ui->captionLabel->setText( QString() );
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>774</width>
|
||||
<width>772</width>
|
||||
<height>72</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -75,7 +75,7 @@
|
||||
<item>
|
||||
<widget class="ElidedLabel" name="descriptionLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
|
@ -45,6 +45,9 @@ FlexibleHeader::FlexibleHeader( FlexibleView* parent )
|
||||
{
|
||||
ui->setupUi( this );
|
||||
|
||||
TomahawkUtils::unmarginLayout( layout() );
|
||||
layout()->setContentsMargins( 8, 4, 8, 4 );
|
||||
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Foreground, Qt::white );
|
||||
|
||||
@ -55,10 +58,15 @@ FlexibleHeader::FlexibleHeader( FlexibleView* parent )
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() + 4 );
|
||||
font.setBold( true );
|
||||
ui->captionLabel->setFont( font );
|
||||
ui->captionLabel->setElideMode( Qt::ElideRight );
|
||||
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() );
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() + 1 );
|
||||
font.setBold( false );
|
||||
ui->descLabel->setFont( font );
|
||||
|
||||
ui->captionLabel->setMargin( 2 );
|
||||
ui->descLabel->setMargin( 1 );
|
||||
|
||||
ui->radioNormal->setFocusPolicy( Qt::NoFocus );
|
||||
ui->radioDetailed->setFocusPolicy( Qt::NoFocus );
|
||||
ui->radioCloud->setFocusPolicy( Qt::NoFocus );
|
||||
@ -79,6 +87,8 @@ FlexibleHeader::FlexibleHeader( FlexibleView* parent )
|
||||
setPalette( pal );
|
||||
setAutoFillBackground( true );
|
||||
|
||||
setFixedHeight( 80 );
|
||||
|
||||
if ( !s_tiledHeader )
|
||||
s_tiledHeader = new QPixmap( TomahawkUtils::createTiledPixmap( 2000, height(), QImage( RESPATH "images/playlist-header-tiled.png" ) ) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user