phoneuis/BubbleManager/Src/BMTouchPaneButton.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 7 544e34b3255a
--- a/phoneuis/BubbleManager/Src/BMTouchPaneButton.cpp	Thu Jul 15 18:38:16 2010 +0300
+++ b/phoneuis/BubbleManager/Src/BMTouchPaneButton.cpp	Thu Aug 19 09:54:27 2010 +0300
@@ -28,7 +28,7 @@
 #include "BMTouchPaneInterface.h"
 #include "BMPanic.h"
 
-
+const TInt KDimmedTransparency = 77;
 const TInt KBubbleButtonText = 255;
 
 // ======== MEMBER FUNCTIONS ========
@@ -238,8 +238,8 @@
     
     for ( TInt i=0; i < commandCount; i++ )    
         {
-        frameId = iIconProvider->GetButtonForCommandL( 
-                                   iCommands[i]);
+        TRAP_IGNORE( frameId = iIconProvider->GetButtonForCommandL( 
+                                   iCommands[i]));
 
         if ( iButtonPressed )
             {
@@ -350,7 +350,11 @@
    { 
    if ( IsDimmed() ) 
        {
-       aPenColor = iEikonEnv->ControlColor( EColorButtonTextDimmed, *this ); 
+       // Using parameter EColorButtonTextDimmed does not return valid 
+       // color for the text that is used in dimmed button. We have 
+       // to use default text and set it transparent.
+       aPenColor = iEikonEnv->ControlColor( EColorButtonText, *this );
+       aPenColor.SetAlpha( KDimmedTransparency );
        }
    else if ( iButtonPressed )
        {