diff options
author | Richard Huang <r.huang@samsung.com> | 2017-10-24 16:20:22 +0100 |
---|---|---|
committer | Richard Huang <r.huang@samsung.com> | 2017-10-24 16:20:22 +0100 |
commit | 57ea82ed3dbed79a26f9a1293d98ac779fa7470c (patch) | |
tree | 8aaaae1f9c7229ddcf4d4314f881ac2823094da7 | |
parent | a6dc37d6e39653c8f47cf9a86bc079cdf80ff6dc (diff) | |
download | dali-demo-57ea82ed3dbed79a26f9a1293d98ac779fa7470c.tar.gz dali-demo-57ea82ed3dbed79a26f9a1293d98ac779fa7470c.tar.bz2 dali-demo-57ea82ed3dbed79a26f9a1293d98ac779fa7470c.zip |
Add soft shadow to text label demo
Change-Id: I835a2ac6fd9b77f8295d32f93e79569488958507
-rw-r--r-- | examples/text-label/text-label-example.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/text-label/text-label-example.cpp b/examples/text-label/text-label-example.cpp index bb9c36b1..ef80cedb 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; } |