From kde-commits Wed Oct 31 22:46:19 2007 From: Stefan Monov Date: Wed, 31 Oct 2007 22:46:19 +0000 To: kde-commits Subject: KDE/kdebase/runtime/kstyles/oxygen Message-Id: <1193870779.652647.13399.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119387079024107 SVN commit 731532 by logixoul: use cross instead of tick for checkmarks. also make it gradiented. M +7 -3 oxygen.cpp --- trunk/KDE/kdebase/runtime/kstyles/oxygen/oxygen.cpp #731531:731532 @@ -1611,7 +1611,7 @@ // check mark double x = r.center().x() - 3.5, y = r.center().y() - 2.5; - QPen pen(pal.color(QPalette::Text), 2.0); + QPen pen(pal.color(QPalette::Text), 2.2); if (primitive == CheckBox::CheckTriState) { QVector dashes; dashes << 1.0 << 2; @@ -1622,9 +1622,13 @@ if (primitive != CheckBox::CheckOff) { p->setRenderHint(QPainter::Antialiasing); + QRect r2(rect.x() + (rect.width()-21)/2, r.y() + (rect.height()-21)/2, 21, 21); + pen.setBrush(_helper.decoGradient(rect.adjusted(2,2,-2,-2), pal.color(QPalette::ButtonText))); + pen.setCapStyle(Qt::RoundCap); + pen.setJoinStyle(Qt::RoundJoin); p->setPen(pen); - p->drawLine(QPointF(x+9, y), QPointF(x+3,y+7)); - p->drawLine(QPointF(x, y+4), QPointF(x+3,y+7)); + p->drawLine(QPointF(x+8, y-1), QPointF(x,y+7)); + p->drawLine(QPointF(x+8, y+7), QPointF(x,y-1)); p->setRenderHint(QPainter::Antialiasing, false); } }