1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

* Different splitter color.

This commit is contained in:
Christian Muehlhaeuser 2014-08-21 13:45:17 +02:00
parent a44b1bdb7b
commit b722f8585d

View File

@ -89,7 +89,8 @@ ProxyStyle::drawControl( ControlElement ce, const QStyleOption* opt, QPainter* p
const QSplitter* splitter = qobject_cast< const QSplitter* >( w );
if ( !splitter->sizes().contains( 0 ) )
{
p->setPen( TomahawkStyle::BORDER_LINE );
p->setPen( QColor( "#dddddd" ) );
// We must special-case this because of the AnimatedSplitterHandle which has a
// SizeHint of 0,0.
if ( splitter->orientation() == Qt::Vertical )
@ -100,14 +101,10 @@ ProxyStyle::drawControl( ControlElement ce, const QStyleOption* opt, QPainter* p
{
if ( splitter->handleWidth() == 1 )
{
p->setPen( Qt::black );
p->setOpacity( 0.05 );
p->drawLine( opt->rect.topLeft(), opt->rect.bottomLeft() );
}
else if ( splitter->handleWidth() == 3 )
{
p->setPen( Qt::black );
p->setOpacity( 0.05 );
p->drawLine( opt->rect.topLeft(), opt->rect.bottomLeft() );
p->drawLine( opt->rect.topLeft() + QPoint( 1, 0 ), opt->rect.bottomLeft() + QPoint( 1, 0 ) );
p->drawLine( opt->rect.topLeft() + QPoint( 2, 0 ), opt->rect.bottomLeft() + QPoint( 2, 0 ) );