TextView - Initialize alpha value with text's color alpha.
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 14 May 2014 08:57:49 +0000 (09:57 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 27 May 2014 14:37:33 +0000 (15:37 +0100)
[problem] Text color always use alpha 1.f
[cause] The alpha value set in the text style was not send to the text actor.
[solution] Send the alpha value.

Change-Id: I313ace7de02ed8bb59981288bc969b19c6558c32
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
base/dali-toolkit/internal/controls/text-view/relayout-utilities.cpp

index dbec30e..3040654 100644 (file)
@@ -1261,6 +1261,7 @@ void SetTextVisible( TextView::RelayoutData& relayoutData )
           characterLayoutInfo.mGradientColor = Vector4::ZERO;
           characterLayoutInfo.mStartPoint = Vector2::ZERO;
           characterLayoutInfo.mEndPoint = Vector2::ZERO;
+          characterLayoutInfo.mColorAlpha = characterLayoutInfo.mStyledText.mStyle.GetTextColor().a;
         } // end characters
       } // end words
     } // end group of words