Blend the window labels in/out with the effect

svn path=/trunk/KDE/kdebase/workspace/; revision=709129
This commit is contained in:
Rivo Laks 2007-09-06 15:50:53 +00:00
parent ab2a72fdcb
commit 84c15214c5

View file

@ -198,7 +198,7 @@ void PresentWindowsEffect::paintWindow( EffectWindow* w, int mask, QRegion regio
double centerx = w->x() + data.xTranslate + w->width() * data.xScale * 0.5f;
double centery = w->y() + data.yTranslate + w->height() * data.yScale * 0.5f;
int maxwidth = (int)(w->width() * data.xScale - 20);
double opacity = (0.7 + 0.2*windata.hover) * data.opacity;
double opacity = (0.7 + 0.2*windata.hover) * data.opacity * mActiveness;
QColor textcolor( 255, 255, 255, (int)(255*opacity) );
QColor bgcolor( 0, 0, 0, (int)(255*opacity) );
QFont f;