Fix repainting the handle when shaded.
svn path=/trunk/kdebase/kwin/; revision=47777
This commit is contained in:
parent
360e0b7686
commit
2021961a07
1 changed files with 3 additions and 2 deletions
|
@ -355,7 +355,8 @@ void ModernSys::paintEvent( QPaintEvent* )
|
||||||
brush(QColorGroup::Button));
|
brush(QColorGroup::Button));
|
||||||
|
|
||||||
p.fillRect(1, 16, width()-2, height()-16, fillBrush);
|
p.fillRect(1, 16, width()-2, height()-16, fillBrush);
|
||||||
|
p.fillRect(width()-6, 0, width()-1, height(), fillBrush);
|
||||||
|
|
||||||
t.setTop( 2 );
|
t.setTop( 2 );
|
||||||
t.setLeft( t.left() + 4 );
|
t.setLeft( t.left() + 4 );
|
||||||
t.setRight( t.right() - 2 );
|
t.setRight( t.right() - 2 );
|
||||||
|
@ -366,7 +367,7 @@ void ModernSys::paintEvent( QPaintEvent* )
|
||||||
// titlebar
|
// titlebar
|
||||||
QColorGroup g = options->colorGroup(Options::TitleBar, isActive());
|
QColorGroup g = options->colorGroup(Options::TitleBar, isActive());
|
||||||
if(isActive()){
|
if(isActive()){
|
||||||
p.drawPixmap(1, 1, titleBuffer);
|
p.drawPixmap(1, 1, titleBuffer, 0, 0, w-2, 18);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(iUpperGradient)
|
if(iUpperGradient)
|
||||||
|
|
Loading…
Reference in a new issue