From e4d1976e84521712cc76bd191d342d3c6e043396 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Thu, 5 Jul 2007 08:57:10 +0000 Subject: [PATCH] - Highlight has smaller corners than the frame - The icon now also has a background svn path=/trunk/KDE/kdebase/workspace/; revision=683752 --- effects/boxswitch.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/effects/boxswitch.cpp b/effects/boxswitch.cpp index fc4a85232b..ce47ec2dc3 100644 --- a/effects/boxswitch.cpp +++ b/effects/boxswitch.cpp @@ -461,7 +461,7 @@ void BoxSwitchEffect::paintHighlight( QRect area, QString text ) { glPushAttrib( GL_CURRENT_BIT ); glColor4f( 1, 1, 1, alpha ); - renderRoundBox( area ); + renderRoundBox( area, 6 ); glPopAttrib(); } #endif @@ -564,6 +564,11 @@ void BoxSwitchEffect::paintWindowIcon( EffectWindow* w ) glPushAttrib( GL_CURRENT_BIT | GL_ENABLE_BIT ); glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); + // Render some background + glColor4f( 0, 0, 0, 0.5 ); + renderRoundBox( QRect( x-3, y-3, width+6, height+6 ), 3 ); + // Render the icon + glColor4f( 1, 1, 1, 1 ); windows[ w ]->iconTexture.bind(); const float verts[ 4 * 2 ] = {