mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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
This commit is contained in:
parent
622cef5b88
commit
712b9f33c6
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue