Draw the same separator in the windeco as in the rest of oxygen. This also adds more contrast.

svn path=/trunk/KDE/kdebase/workspace/; revision=865738
icc-effect-5.14.5
Huynh Huu Long 2008-09-28 20:30:19 +00:00
parent 8853f96c3f
commit cbc55bf9a1
1 changed files with 1 additions and 21 deletions

View File

@ -303,28 +303,8 @@ void OxygenClient::paintEvent(QPaintEvent *e)
frame.adjust(1,1,-1,-1);
frame.getRect(&x, &y, &w, &h);
dark.setAlpha(120);
if(isActive()) {
QLinearGradient lg(x,0,x+w,0);
lg.setColorAt(0.5, dark);
dark.setAlpha(0);
lg.setColorAt(0.0, dark);
lg.setColorAt(1.0, dark);
painter.setPen(QPen(lg,1));
painter.drawLine(QPointF(x, titleTop+titleHeight-1.5),
QPointF(x+w, titleTop+titleHeight-1.5));
lg = QLinearGradient(x,0,x+w,0);
lg.setColorAt(0.5, light);
light.setAlpha(0);
lg.setColorAt(0.0, light);
lg.setColorAt(1.0, light);
painter.setPen(QPen(lg,1));
painter.drawLine(QPointF(x, titleTop+titleHeight-0.5),
QPointF(x+w, titleTop+titleHeight-0.5));
helper_.drawSeparator(&painter, QRect(x, titleTop+titleHeight-1.5, w, 2), color, Qt::Horizontal);
}
// draw stripes as indicator for active windows