From 12bcd08871e58318231d4585c2119b1ef7a9923a Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 8 Nov 2011 19:01:02 +0100 Subject: [PATCH] do not fade separator when it is drawn for both active and inactive windows. --- clients/oxygen/oxygenclient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index f4fa6aa654..cd94eb48bf 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -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(); }