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

List:       kde-commits
Subject:    KDE/kdebase/apps/plasma/applets/folderview
From:       Fredrik Höglund <fredrik () kde ! org>
Date:       2010-01-19 22:11:27
Message-ID: 1263939087.950832.18063.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1077296 by fredrik:

Make the text shadows twice as dark.

Fixed for: KDE 4.4 RC2
BUG: 223055


 M  +7 -0      abstractitemview.cpp  


--- trunk/KDE/kdebase/apps/plasma/applets/folderview/abstractitemview.cpp #1077295:1077296
@@ -441,6 +441,13 @@
             // Draw shadow
             QImage shadow = pixmap.toImage();
             Plasma::PaintUtils::shadowBlur(shadow, 2, Qt::black);
+
+            // Make the shadow twice as dark
+            quint32 * const pixels = reinterpret_cast<quint32*>(shadow.bits());
+            for (int i = 0; i < shadow.width() * shadow.height(); i++) {
+                pixels[i] = qMin(255, qAlpha(pixels[i]) * 2) << 24;
+            }
+
             painter->drawImage(rect.topLeft() + QPoint(1, 1), shadow);
         }
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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