From: Richard Huang Date: Tue, 24 Oct 2017 15:20:22 +0000 (+0100) Subject: [4.0] Add soft shadow to text label demo X-Git-Tag: accepted/tizen/4.0/unified/20171103.162703~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F158547%2F1;p=platform%2Fcore%2Fuifw%2Fdali-demo.git [4.0] Add soft shadow to text label demo Change-Id: I835a2ac6fd9b77f8295d32f93e79569488958507 Signed-off-by: Adeel Kazmi --- diff --git a/examples/text-label/text-label-example.cpp b/examples/text-label/text-label-example.cpp index bb9c36b..ef80ced 100644 --- a/examples/text-label/text-label-example.cpp +++ b/examples/text-label/text-label-example.cpp @@ -303,8 +303,11 @@ public: mShadowActive = ( shadowOffset == Vector2::ZERO ) ? false : true; - mLabel.SetProperty( TextLabel::Property::SHADOW_OFFSET, shadowOffset ); - mLabel.SetProperty( TextLabel::Property::SHADOW_COLOR, mSelectedColor ); + Property::Map shadowMap; + shadowMap.Insert( "offset", shadowOffset ); + shadowMap.Insert( "color", mSelectedColor ); + shadowMap.Insert( "blurRadius", 2.0f ); + mLabel.SetProperty( TextLabel::Property::SHADOW, shadowMap ); } return true; }