mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-25 15:01:11 +02:00
* Darker caption label per default. Breadcrumbing to follow.
This commit is contained in:
@@ -59,12 +59,14 @@ CaptionLabel::paintEvent( QPaintEvent* /* event */ )
|
||||
QRect r = contentsRect();
|
||||
|
||||
QPainter p( this );
|
||||
p.setRenderHint( QPainter::TextAntialiasing );
|
||||
p.setPen( Qt::black );
|
||||
p.setBrush( Qt::black );
|
||||
|
||||
QTextOption to( alignment() );
|
||||
p.setOpacity( 0.15 );
|
||||
p.setOpacity( 0.8 );
|
||||
p.drawText( r.adjusted( 0, 0, 0, -8 ), text().toUpper(), to );
|
||||
p.setOpacity( 0.15 );
|
||||
|
||||
if ( m_showCloseButton )
|
||||
{
|
||||
|
Reference in New Issue
Block a user