The so-called KWM style deviated rather disturbingly from the

original.  This is my attempt at making it more kosher.  As a bonus,
the title font is also vertically centered.

Unfortunately, the titlebar is still missing a line at the very top,
so the buttons are still not flush with it.  I hope someone can fix
it!

svn path=/trunk/kdebase/kwin/; revision=44093
This commit is contained in:
Navindra Umanee 2000-03-20 05:14:40 +00:00
parent 06a809e7ac
commit 3b4f6b0ef8

View file

@ -325,14 +325,12 @@ void StdClient::paintEvent( QPaintEvent* )
r = r.subtract( t ); r = r.subtract( t );
p.setClipRegion( r ); p.setClipRegion( r );
qDrawWinPanel( &p, rect(), colorGroup() ); qDrawWinPanel( &p, rect(), colorGroup() );
t.setTop( 1 ); t.setTop( 4 );
p.setClipRegion( t ); p.setClipRegion( t );
t.setTop( 0 );
p.fillRect( t, options->color(Options::TitleBar, isActive())); p.fillRect( t, options->color(Options::TitleBar, isActive()));
p.setPen( options->color(Options::TitleBar, isActive()).light() );
p.drawLine(t.left(), t.top()+1, t.right(), t.top()+1);
qDrawShadePanel( &p, t.x(), t.y(), t.width(), t.height(), qDrawShadePanel( &p, t.x(), t.y(), t.width(), t.height(),
colorGroup(), true, 1 ); colorGroup(), true, 1 );
t.setTop( 0 );
t.setLeft( t.left() + 4 ); t.setLeft( t.left() + 4 );
t.setRight( t.right() - 2 ); t.setRight( t.right() - 2 );
p.setPen(options->color(Options::Font, isActive())); p.setPen(options->color(Options::Font, isActive()));