]> cloud.milkyroute.net Git - dolphin.git/commitdiff
SVN_SILENT: clean up from previous commit (would be nice to remember to save ;-)...
authorMatthew Woehlke <mw_triad@users.sourceforge.net>
Mon, 22 Oct 2007 17:37:56 +0000 (17:37 +0000)
committerMatthew Woehlke <mw_triad@users.sourceforge.net>
Mon, 22 Oct 2007 17:37:56 +0000 (17:37 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=728202

src/statusbarmessagelabel.cpp

index 7099374fcc62fe502bce2004b022f507d9837d0c..4db953750d7ac8859f8d6a3eba88cb2cb3dea583 100644 (file)
@@ -142,10 +142,10 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */)
     // draw background
     QColor backgroundColor = palette().window().color();
     if (m_illumination > 0) {
+        // at this point, a: we are a second label being drawn over the already
+        // painted status area, so we can be translucent, and b: our palette's
+        // window color (bg only) seems to be wrong (always black)
         KColorScheme scheme(palette().currentColorGroup(), KColorScheme::Window);
-//         QColor blendColor = scheme.background(KColorScheme::NegativeBackground).color();
-//         backgroundColor = scheme.background().color(); // FIXME shouldn't be needed but I'm getting black otherwise??
-//         backgroundColor = KColorUtils::mix(backgroundColor, blendColor, double(m_illumination) / 128.0);
         backgroundColor = scheme.background(KColorScheme::NegativeBackground).color();
         backgroundColor.setAlpha(qMin(255, m_illumination*2));
     }