1
0
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:
Christian Muehlhaeuser
2014-08-21 13:27:00 +02:00
parent c8cdc5a24c
commit 5c9ee9ffc4

View File

@@ -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 )
{