javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtbutton.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 17 0fd27995241b
child 23 e5618cc85d74
--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtbutton.cpp	Tue May 25 12:34:19 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtbutton.cpp	Wed Jun 09 09:34:07 2010 +0300
@@ -213,12 +213,18 @@
     iButton->SetBackground(this);   // Back will be drawn by ASwtControlBase::Draw
 
     // Set default color
-    TRgb color;
+    TRgb colorNormal;
     AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
-                              color,
+                              colorNormal,
                               KAknsIIDQsnTextColors,
-                              EAknsCIQsnTextColorsCG63); // Messaging touch buttons
-    iButton->OverrideColorL(EColorButtonText, color);
+                              EAknsCIQsnTextColorsCG13); // SK
+    TRgb colorPressed;
+    AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
+                              colorPressed,
+                              KAknsIIDQsnTextColors,
+                              EAknsCIQsnTextColorsCG69); // pressed SK
+    iButton->OverrideColorL(EColorButtonText, colorNormal);
+    iButton->OverrideColorL(EColorButtonTextPressed, colorPressed);
 }
 
 // ---------------------------------------------------------------------------
@@ -641,10 +647,12 @@
     else
     {
         // Reset to default color
+        TRgb colorNormal;
         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
-                                  color,
+                                  colorNormal,
                                   KAknsIIDQsnTextColors,
-                                  EAknsCIQsnTextColorsCG63); // Messaging touch buttons
+                                  EAknsCIQsnTextColorsCG13); // SK
+        iButton->OverrideColorL(EColorButtonText, colorNormal);
     }
 
     if (iButton)
@@ -1182,6 +1190,8 @@
 #endif //RD_JAVA_ADVANCED_TACTILE_FEEDBACK
         iButton->HandlePointerEventL(aPointerEvent);
     }
+
+    PostMouseEventL(aPointerEvent);
 }
 #endif // RD_SCALABLE_UI_V2