- Highlight has smaller corners than the frame
- The icon now also has a background svn path=/trunk/KDE/kdebase/workspace/; revision=683752
This commit is contained in:
parent
5241fc4c33
commit
e4d1976e84
1 changed files with 6 additions and 1 deletions
|
@ -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 ] =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue