javauis/lcdui_akn/lcdui/src/CMIDTextFieldItem.cpp
branchRCL_3
changeset 60 6c158198356e
parent 59 e5618cc85d74
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
   675 
   675 
   676 void CMIDTextFieldItem::UpdateTextColorsL()
   676 void CMIDTextFieldItem::UpdateTextColorsL()
   677 {
   677 {
   678     if (iTextField)
   678     if (iTextField)
   679     {
   679     {
   680         // Set color for content text according to item highlight
       
   681         // (logical color constants are defined in lcdui.h)
       
   682         if (iHighlighted)
   680         if (iHighlighted)
   683         {
   681         {
   684             // Text colour from skin - highlighted
   682             // Text colour from skin - highlighted
   685             iTextField->SetTextSkinColorIdL(KHighlightedItemTextColor);
   683             iTextField->SetTextSkinColorIdL(EAknsCIQsnTextColorsCG8);
   686         }
   684         }
   687         else
   685         else
   688         {
   686         {
   689             // Text colour from skin - unfocused
   687             // Text colour from skin - unfocused
   690             iTextField->SetTextSkinColorIdL(KNonHighlightedItemTextColor);
   688             iTextField->SetTextSkinColorIdL(EAknsCIQsnTextColorsCG6);
   691         }
   689         }
   692     }
   690     }
   693 }
   691 }