Fixed corner color for shaded windows
svn path=/trunk/KDE/kdebase/workspace/; revision=1054385
This commit is contained in:
parent
0b992748be
commit
ffdadc4844
1 changed files with 1 additions and 3 deletions
|
@ -264,11 +264,9 @@ namespace Oxygen
|
|||
// this is all fixedSize. Does not scale with shadow size
|
||||
QLinearGradient lg = QLinearGradient(0.0, size-4.5, 0.0, size+4.5);
|
||||
lg.setColorAt(0.0, helper().calcLightColor( helper().backgroundTopColor(color) ));
|
||||
lg.setColorAt(0.51, helper().backgroundBottomColor(color) );
|
||||
lg.setColorAt(1.0, helper().backgroundBottomColor(color) );
|
||||
|
||||
if( key.isShade ) lg.setColorAt(0.51, helper().backgroundTopColor(color) );
|
||||
else lg.setColorAt(0.51, helper().backgroundBottomColor(color) );
|
||||
|
||||
|
||||
// draw ellipse.
|
||||
p.setBrush( lg );
|
||||
|
|
Loading…
Reference in a new issue