From 0f3a02e2655f994c3b84f85e7a7e302bc4b8323d Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 26 Aug 2010 03:05:10 +0000 Subject: [PATCH] Fixed corner tileSet color in drawTitleOutline mode. svn path=/trunk/KDE/kdebase/workspace/; revision=1168083 --- clients/oxygen/oxygenclient.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index eff46a8ccf..99c0f98208 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1348,14 +1348,19 @@ namespace Oxygen { TileSet *tileSet( 0 ); - QColor background( backgroundPalette( widget(), palette ).window().color() ); ShadowCache::Key key( this->key() ); if( configuration().useOxygenShadows() && glowIsAnimated() && !isForcedActive() ) { + QColor background( backgroundPalette( widget(), palette ).window().color() ); tileSet = shadowCache().tileSet( background, key, glowIntensity() ); - } else tileSet = shadowCache().tileSet( background, key ); + } else { + + QColor background( backgroundColor( widget(), palette ) ); + tileSet = shadowCache().tileSet( background, key ); + + } if( !isMaximized() ) tileSet->render( frame.adjusted( 4, 4, -4, -4), &painter, TileSet::Ring); else if( isShade() ) tileSet->render( frame.adjusted( 0, 4, 0, -4), &painter, TileSet::Bottom);