mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Different splitter color.
This commit is contained in:
@@ -89,7 +89,8 @@ ProxyStyle::drawControl( ControlElement ce, const QStyleOption* opt, QPainter* p
|
|||||||
const QSplitter* splitter = qobject_cast< const QSplitter* >( w );
|
const QSplitter* splitter = qobject_cast< const QSplitter* >( w );
|
||||||
if ( !splitter->sizes().contains( 0 ) )
|
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
|
// We must special-case this because of the AnimatedSplitterHandle which has a
|
||||||
// SizeHint of 0,0.
|
// SizeHint of 0,0.
|
||||||
if ( splitter->orientation() == Qt::Vertical )
|
if ( splitter->orientation() == Qt::Vertical )
|
||||||
@@ -100,14 +101,10 @@ ProxyStyle::drawControl( ControlElement ce, const QStyleOption* opt, QPainter* p
|
|||||||
{
|
{
|
||||||
if ( splitter->handleWidth() == 1 )
|
if ( splitter->handleWidth() == 1 )
|
||||||
{
|
{
|
||||||
p->setPen( Qt::black );
|
|
||||||
p->setOpacity( 0.05 );
|
|
||||||
p->drawLine( opt->rect.topLeft(), opt->rect.bottomLeft() );
|
p->drawLine( opt->rect.topLeft(), opt->rect.bottomLeft() );
|
||||||
}
|
}
|
||||||
else if ( splitter->handleWidth() == 3 )
|
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(), opt->rect.bottomLeft() );
|
||||||
p->drawLine( opt->rect.topLeft() + QPoint( 1, 0 ), opt->rect.bottomLeft() + QPoint( 1, 0 ) );
|
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 ) );
|
p->drawLine( opt->rect.topLeft() + QPoint( 2, 0 ), opt->rect.bottomLeft() + QPoint( 2, 0 ) );
|
||||||
|
Reference in New Issue
Block a user