From cbc55bf9a12346c5c0fd14232e75c531b0d77e8c Mon Sep 17 00:00:00 2001 From: Huynh Huu Long Date: Sun, 28 Sep 2008 20:30:19 +0000 Subject: [PATCH] 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 --- clients/oxygen/oxygenclient.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 62b6bc04ef..0beb9caaaa 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -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