From kde-commits Sun Jan 03 18:19:57 2010 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sun, 03 Jan 2010 18:19:57 +0000 To: kde-commits Subject: branches/KDE/4.3/kdeplasma-addons/applets/systemloadviewer Message-Id: <1262542797.683409.13717.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126254282829606 SVN commit 1069551 by lunakl: backport r1069550: Use KColorUtils::lighten/darken instead of Color::ligher/darker - the latter for whatever reason turns #ffc0c0 to some kind of grey. M +3 -2 systemloadviewer.cpp --- branches/KDE/4.3/kdeplasma-addons/applets/systemloadviewer/systemloadviewer.cpp #1069550:1069551 @@ -26,6 +26,7 @@ #include #include +#include #include @@ -467,8 +468,8 @@ { if (rect.height() > 0.0) { static QLinearGradient grad(0.0, 0.0, 1.0, 0.0); - grad.setColorAt(0, color.lighter()); - grad.setColorAt(1, color.darker()); + grad.setColorAt(0, KColorUtils::lighten(color)); + grad.setColorAt(1, KColorUtils::darken(color)); QBrush brush(grad); p->setBrush(brush); p->setPen(QPen(brush, 0));