From 5c9ee9ffc4161420c9bc2864138131960a2b12a9 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 21 Aug 2014 13:27:00 +0200 Subject: [PATCH] * Darker caption label per default. Breadcrumbing to follow. --- src/libtomahawk/widgets/CaptionLabel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/widgets/CaptionLabel.cpp b/src/libtomahawk/widgets/CaptionLabel.cpp index 878af27b4..33f02dbbe 100644 --- a/src/libtomahawk/widgets/CaptionLabel.cpp +++ b/src/libtomahawk/widgets/CaptionLabel.cpp @@ -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 ) {