[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/systemloadviewer
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-01-03 18:18:38
Message-ID: 1262542718.790649.13614.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1069550 by lunakl:

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  


--- trunk/KDE/kdeplasma-addons/applets/systemloadviewer/systemloadviewer.cpp #1069549:1069550
@@ -26,6 +26,7 @@
 #include <Plasma/ToolTipContent>
 
 #include <KConfigDialog>
+#include <KColorUtils>
 
 #include <QtGui/QPainter>
 #include <QtGui/QGraphicsSceneMouseEvent>
@@ -486,8 +487,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));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic