From: <zou...@us...> - 2008-02-12 20:58:53
|
Revision: 1004 http://dcplusplus.svn.sourceforge.net/dcplusplus/?rev=1004&view=rev Author: zouzou123gen Date: 2008-02-12 12:58:39 -0800 (Tue, 12 Feb 2008) Log Message: ----------- lighter and smaller icon shadow Modified Paths: -------------- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp Modified: dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp =================================================================== --- dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-02-11 14:47:45 UTC (rev 1003) +++ dcplusplus/trunk/smartwin/source/widgets/WidgetMenu.cpp 2008-02-12 20:58:39 UTC (rev 1004) @@ -661,16 +661,16 @@ if ( isSelected && !isDisabled ) // if selected and active, then imitate icon shadow { // adjust icon position for later drawing - imageRectangle.pos.x -= 1; - imageRectangle.pos.y -= 1; + imageRectangle.pos.x--; + imageRectangle.pos.y--; // setup brush for shadow emulation - Brush brush( ColorUtilities::darkenColor( colorInfo.colorStrip, 0.7 ) ); + Brush brush( ColorUtilities::darkenColor( colorInfo.colorStrip, 0.2 ) ); // draw the icon shadow Rectangle shadowRectangle( imageRectangle ); - shadowRectangle.pos.x += 2; - shadowRectangle.pos.y += 2; + shadowRectangle.pos.x++; + shadowRectangle.pos.y++; canvas.drawBitmap( image, shadowRectangle, colorInfo.colorImageBackground, true ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |