1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

* Lighter font in GridItemDelegate.

This commit is contained in:
Christian Muehlhaeuser
2014-08-27 22:13:49 +02:00
parent b58123d890
commit 646a37cc82

View File

@@ -183,7 +183,6 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
QFont font = opt.font;
font.setPointSize( TomahawkUtils::defaultFontSize() + 2 );
QFont smallFont = font;
smallFont.setBold( true );
smallFont.setPointSize( TomahawkUtils::defaultFontSize() );
int bottomHeight = QFontMetrics( smallFont ).boundingRect( bottom ).height();
@@ -238,7 +237,7 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
}
painter->restore();
painter->setOpacity( 0.5 );
painter->setOpacity( 0.6 );
painter->setFont( smallFont );
// If the user is hovering over an artist rect, underline the artist name