voicerecorder/RecViewSrc/CVRStateInfoPanel.cpp
branchRCL_3
changeset 14 f962425b9f8b
parent 13 4e5b531d23cb
equal deleted inserted replaced
13:4e5b531d23cb 14:f962425b9f8b
   198                 break;
   198                 break;
   199             case 6:
   199             case 6:
   200                 layoutText = AknLayoutScalable_Apps::vorec_t7();
   200                 layoutText = AknLayoutScalable_Apps::vorec_t7();
   201                 break;          
   201                 break;          
   202             }
   202             }
       
   203         AknLayoutUtils::LayoutLabel( iLabels.At( i ), Rect(), layoutText.LayoutLine() );
   203         
   204         
   204 		AknLayoutUtils::LayoutLabel( iLabels.At( i ), Rect(), layoutText.LayoutLine() );
   205         CCoeControl* label( iLabels.At( i ) );
   205 		
   206         TRgb color( KRgbBlack );
   206 		if ( i != ELabelStatus )
   207         AknsUtils::GetCachedColor( iSkin, color, KAknsIIDQsnTextColors,
   207 			{
   208         		EAknsCIQsnTextColorsCG6 );
   208 			// Get the correct text color from skin and override it
   209         // We can ignore the error, it only means we will have wrong color
   209 			// The status label is always red, i guess
   210         TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( *label,
   210 			CCoeControl* label( iLabels.At( i ) );
   211         		EColorLabelText, color ) );
   211 			TRgb color( KRgbBlack );
   212         }
   212 			AknsUtils::GetCachedColor( iSkin, color, KAknsIIDQsnTextColors,
   213     
   213 				EAknsCIQsnTextColorsCG6 );		
   214     // There's nothing rational to do here if it leaves
   214 			// We can ignore the error, it only means we will have wrong color
   215     TRAP_IGNORE( CreateProgressBarL() );
   215 			TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( *label,
   216     }
   216 				EColorLabelText, color ) );
       
   217 			}
       
   218 		}
       
   219 
       
   220 	// There's nothing rational to do here if it leaves
       
   221 	TRAP_IGNORE( CreateProgressBarL() );	
       
   222 	}
       
   223 
   217 
   224 
   218 
   225 // ----------------------------------------------------------------------------
   219 // ----------------------------------------------------------------------------
   226 // CVRStateInfoPanel::Draw
   220 // CVRStateInfoPanel::Draw
   227 // 
   221 //