┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Woehlke <[email protected]>2007-10-22 17:37:56 +0000
committerMatthew Woehlke <[email protected]>2007-10-22 17:37:56 +0000
commit712b9f33c6e5d6546253978cd0418eb7d5869037 (patch)
tree0091e7bc770c42ff102a9fe36361e621c6bb8020
parent622cef5b88ea7ff457c749831ec7a22d5d97875d (diff)
SVN_SILENT: clean up from previous commit (would be nice to remember to save ;-)); this just removes commented-out code and adds a "what's going on" comment
svn path=/trunk/KDE/kdebase/apps/; revision=728202
-rw-r--r--src/statusbarmessagelabel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp
index 7099374fc..4db953750 100644
--- a/src/statusbarmessagelabel.cpp
+++ b/src/statusbarmessagelabel.cpp
@@ -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));
}