1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-26 07:14:47 +02:00

* A little less opacity on the sidebar items.

This commit is contained in:
Christian Muehlhaeuser
2014-08-20 15:52:13 +02:00
parent 1bb0b8c8a4
commit 16d75ef46f

View File

@@ -127,7 +127,7 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
const bool selected = ( option.state & QStyle::State_Selected ) == QStyle::State_Selected; const bool selected = ( option.state & QStyle::State_Selected ) == QStyle::State_Selected;
const bool enabled = ( option.state & QStyle::State_Enabled ) == QStyle::State_Enabled; const bool enabled = ( option.state & QStyle::State_Enabled ) == QStyle::State_Enabled;
painter->setOpacity( 0.6 ); painter->setOpacity( 0.7 );
QIcon::Mode iconMode = QIcon::Normal; QIcon::Mode iconMode = QIcon::Normal;
if ( !enabled ) if ( !enabled )
{ {
@@ -307,7 +307,7 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
{ {
QTextOption to; QTextOption to;
to.setWrapMode( QTextOption::NoWrap ); to.setWrapMode( QTextOption::NoWrap );
painter->setOpacity( 0.6 ); painter->setOpacity( 0.7 );
painter->drawText( textRect, text, to ); painter->drawText( textRect, text, to );
} }
@@ -691,7 +691,7 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
QRect figRect = option.rect.adjusted( option.rect.width() - figWidth - 16, 0, -14, -option.rect.height() + option.fontMetrics.height() * 1.1 ); QRect figRect = option.rect.adjusted( option.rect.width() - figWidth - 16, 0, -14, -option.rect.height() + option.fontMetrics.height() * 1.1 );
int hd = ( option.rect.height() - figRect.height() ) / 2; int hd = ( option.rect.height() - figRect.height() ) / 2;
figRect.adjust( 0, hd, 0, hd ); figRect.adjust( 0, hd, 0, hd );
painter->setOpacity( 0.6 ); painter->setOpacity( 0.7 );
painter->drawText( figRect, count, QTextOption( Qt::AlignVCenter | Qt::AlignRight ) ); painter->drawText( figRect, count, QTextOption( Qt::AlignVCenter | Qt::AlignRight ) );
painter->restore(); painter->restore();
} }