From 212aac16449b12e1c8381ae70804128cb2977d0e Mon Sep 17 00:00:00 2001 From: "Daniel M. Duley" Date: Wed, 24 Nov 1999 22:45:37 +0000 Subject: [PATCH] Hrm... ;-) svn path=/trunk/kdebase/kwin/; revision=34979 --- systemclient.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/systemclient.cpp b/systemclient.cpp index f2066f4616..bf8e9e7471 100644 --- a/systemclient.cpp +++ b/systemclient.cpp @@ -187,7 +187,7 @@ SystemClient::SystemClient( Workspace *ws, WId w, QWidget *parent, { create_pixmaps(); - QGridLayout* g = new QGridLayout(this, 0, 0, 1); + QGridLayout* g = new QGridLayout(this, 0, 0, 2); g->setRowStretch(1, 10); g->addWidget(windowWrapper(), 1, 1 ); g->addItem( new QSpacerItem( 0, 0, QSizePolicy::Fixed, QSizePolicy::Expanding ) ); @@ -272,9 +272,15 @@ void SystemClient::paintEvent( QPaintEvent* ) } p.setPen(Qt::black); p.drawRect(rect()); - p.setPen(colorGroup().light()); - p.drawLine(1, 1, width()-2, 1); - + + + if(colorGroup().brush(QColorGroup::Background).pixmap()) + qDrawShadePanel(&p, rect().x()+1, rect().y()+1, rect().width()-2, + rect().height()-2, colorGroup(), false); + else + qDrawShadePanel(&p, rect().x()+1, rect().y()+1, rect().width()-2, + rect().height()-2, colorGroup(), false); + t.setTop( 2 ); if(isActive()) p.drawTiledPixmap(t, *titlePix);