mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-06 00:52:34 +02:00
* ...and some more font fixes.
This commit is contained in:
parent
6f1f38f22b
commit
2fc63675cd
@ -54,7 +54,7 @@ AudioControls::AudioControls( QWidget* parent )
|
||||
setAcceptDrops( true );
|
||||
|
||||
QFont font( ui->artistTrackLabel->font() );
|
||||
font.setPixelSize( 12 );
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() );
|
||||
|
||||
ui->artistTrackLabel->setFont( font );
|
||||
ui->artistTrackLabel->setElideMode( Qt::ElideMiddle );
|
||||
@ -67,7 +67,7 @@ AudioControls::AudioControls( QWidget* parent )
|
||||
ui->timeLabel->setFont( font );
|
||||
ui->timeLeftLabel->setFont( font );
|
||||
|
||||
font.setPixelSize( 9 );
|
||||
font.setPointSize( TomahawkUtils::defaultFontSize() - 2 );
|
||||
ui->ownerLabel->setFont( font );
|
||||
|
||||
ui->prevButton->setPixmap( RESPATH "images/back-rest.png" );
|
||||
|
@ -24,12 +24,12 @@
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#include "GlobalActionManager.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "Source.h"
|
||||
|
||||
#define CORNER_ROUNDNESS 8.0
|
||||
#define FADING_DURATION 500
|
||||
#define FONT_SIZE 16
|
||||
#define OPACITY 0.85
|
||||
|
||||
|
||||
@ -48,14 +48,7 @@ SocialWidget::SocialWidget( QWidget* parent )
|
||||
m_timer.setSingleShot( true );
|
||||
connect( &m_timer, SIGNAL( timeout() ), this, SLOT( hide() ) );
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
QFont f( font() );
|
||||
f.setPointSize( f.pointSize() - 2 );
|
||||
setFont( f );
|
||||
#endif
|
||||
|
||||
ui->charsLeftLabel->setForegroundRole( QPalette::BrightText );
|
||||
|
||||
ui->buttonBox->button( QDialogButtonBox::Ok )->setText( tr( "Tweet" ) );
|
||||
|
||||
m_parent->installEventFilter( this );
|
||||
@ -171,9 +164,8 @@ SocialWidget::paintEvent( QPaintEvent* event )
|
||||
QTextOption to( Qt::AlignCenter );
|
||||
to.setWrapMode( QTextOption::WrapAtWordBoundaryOrAnywhere );
|
||||
|
||||
// shrink to fit if needed
|
||||
QFont f( font() );
|
||||
f.setPointSize( FONT_SIZE );
|
||||
f.setPointSize( TomahawkUtils::defaultFontSize() + 7 );
|
||||
f.setBold( true );
|
||||
|
||||
QRectF textRect = r.adjusted( 8, 8, -8, -8 );
|
||||
|
@ -23,11 +23,11 @@
|
||||
#include <QAbstractScrollArea>
|
||||
#include <QScrollBar>
|
||||
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#define CORNER_ROUNDNESS 8.0
|
||||
#define FADING_DURATION 500
|
||||
#define FONT_SIZE 12
|
||||
#define OPACITY 0.70
|
||||
|
||||
|
||||
@ -43,12 +43,6 @@ OverlayButton::OverlayButton( QWidget* parent )
|
||||
|
||||
m_timer.setSingleShot( true );
|
||||
connect( &m_timer, SIGNAL( timeout() ), this, SLOT( hide() ) );
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
QFont f( font() );
|
||||
f.setPointSize( f.pointSize() - 2 );
|
||||
setFont( f );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -81,7 +75,7 @@ OverlayButton::setText( const QString& text )
|
||||
m_text = text;
|
||||
|
||||
QFont f( font() );
|
||||
f.setPointSize( FONT_SIZE );
|
||||
f.setPointSize( TomahawkUtils::defaultFontSize() + 3 );
|
||||
f.setBold( true );
|
||||
|
||||
QFontMetrics fm( f );
|
||||
@ -151,9 +145,8 @@ OverlayButton::paintEvent( QPaintEvent* event )
|
||||
QTextOption to( Qt::AlignCenter );
|
||||
to.setWrapMode( QTextOption::WrapAtWordBoundaryOrAnywhere );
|
||||
|
||||
// shrink to fit if needed
|
||||
QFont f( font() );
|
||||
f.setPixelSize( FONT_SIZE );
|
||||
f.setPointSize( TomahawkUtils::defaultFontSize() + 3 );
|
||||
f.setBold( true );
|
||||
|
||||
p.setFont( f );
|
||||
|
@ -23,11 +23,11 @@
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#include "PlayableProxyModel.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#define CORNER_ROUNDNESS 8.0
|
||||
#define FADING_DURATION 500
|
||||
#define FONT_SIZE 16
|
||||
#define OPACITY 0.70
|
||||
|
||||
|
||||
@ -75,12 +75,6 @@ OverlayWidget::init()
|
||||
|
||||
m_timer.setSingleShot( true );
|
||||
connect( &m_timer, SIGNAL( timeout() ), this, SLOT( hide() ) );
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
QFont f( font() );
|
||||
f.setPointSize( f.pointSize() - 2 );
|
||||
setFont( f );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -229,7 +223,7 @@ OverlayWidget::paintEvent( QPaintEvent* event )
|
||||
|
||||
// shrink to fit if needed
|
||||
QFont f( font() );
|
||||
f.setPointSize( FONT_SIZE );
|
||||
f.setPointSize( TomahawkUtils::defaultFontSize() + 7 );
|
||||
f.setBold( true );
|
||||
|
||||
QRectF textRect = r.adjusted( 8, 8, -8, -8 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user