do not fade separator when it is drawn for both active and inactive windows.

This commit is contained in:
Hugo Pereira Da Costa 2011-11-08 19:01:02 +01:00
parent 98c89bcfd0
commit 12bcd08871

View file

@ -830,8 +830,12 @@ namespace Oxygen
const int titleHeight = layoutMetric(LM_TitleHeight);
const int titleTop = layoutMetric(LM_TitleEdgeTop) + r.top();
// set color
QColor local( color );
if( glowIsAnimated() ) local = helper().alphaColor( color, glowIntensity() );
if( glowIsAnimated() && configuration().separatorMode() != Configuration::SeparatorAlways )
{ local = helper().alphaColor( color, glowIntensity() ); }
// render
helper().drawSeparator( painter, QRect(r.top(), titleTop+titleHeight-1.5, r.width(), 2).translated( -position ), local, Qt::Horizontal);
if (clipRect.isValid()) { painter->restore(); }