do not fade separator when it is drawn for both active and inactive windows.
This commit is contained in:
parent
98c89bcfd0
commit
12bcd08871
1 changed files with 5 additions and 1 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Reference in a new issue