Fill brush fix.

svn path=/trunk/kdebase/kwin/; revision=33138
This commit is contained in:
Daniel M. Duley 1999-11-07 17:04:17 +00:00
parent 3f5e6194c6
commit 8f06701973

View file

@ -36,12 +36,12 @@ static void create_pixmaps()
// titlebar // titlebar
QPainter p; QPainter p;
int i, y; int i, y;
titlePix = new QPixmap(32, 18); titlePix = new QPixmap(32, 17);
p.begin(titlePix); p.begin(titlePix);
p.fillRect(0, 0, 32, 18, p.fillRect(0, 0, 32, 17,
QBrush(options->color(Options::Frame, true), QBrush(options->color(Options::Frame, true),
QBrush::SolidPattern)); QBrush::SolidPattern));
for(i=0, y=5; i < 4; ++i, y+=3){ for(i=0, y=4; i < 4; ++i, y+=3){
p.setPen(options->color(Options::TitleBar, true).light(150)); p.setPen(options->color(Options::TitleBar, true).light(150));
p.drawLine(0, y, 31, y); p.drawLine(0, y, 31, y);
p.setPen(options->color(Options::TitleBar, true).dark(120)); p.setPen(options->color(Options::TitleBar, true).dark(120));
@ -227,15 +227,18 @@ void SystemClient::paintEvent( QPaintEvent* )
p.drawRect(rect()); p.drawRect(rect());
QRect t = titlebar->geometry(); QRect t = titlebar->geometry();
t.setTop( 1 ); t.setTop( 1 );
qDrawShadePanel(&p, rect().x()+1, rect().y()+1, rect().width()-2,
rect().height()-2,
options->colorGroup(Options::Frame, isActive()), false, 1,
&options->colorGroup(Options::Frame, isActive()).
brush(QColorGroup::Button));
t.setTop( 2 );
if(isActive()) if(isActive())
p.drawTiledPixmap(t, *titlePix); p.drawTiledPixmap(t, *titlePix);
else else
p.fillRect(t, options->colorGroup(Options::Frame, false). p.fillRect(t, options->colorGroup(Options::Frame, false).
brush(QColorGroup::Button)); brush(QColorGroup::Button));
qDrawShadePanel(&p, rect().x()+1, rect().y()+1, rect().width()-2,
rect().height()-2,
options->colorGroup(Options::Frame, isActive()), false);
QRegion r = rect(); QRegion r = rect();