[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/kstyles/oxygen
From: Stefan Monov <logixoul () gmail ! com>
Date: 2007-10-31 22:46:19
Message-ID: 1193870779.652647.13399.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<qreal> 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);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic