projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6dc37d
)
Add soft shadow to text label demo
77/157477/1
author
Richard Huang
<r.huang@samsung.com>
Tue, 24 Oct 2017 15:20:22 +0000
(16:20 +0100)
committer
Richard Huang
<r.huang@samsung.com>
Tue, 24 Oct 2017 15:20:22 +0000
(16:20 +0100)
Change-Id: I835a2ac6fd9b77f8295d32f93e79569488958507
examples/text-label/text-label-example.cpp
patch
|
blob
|
history
diff --git
a/examples/text-label/text-label-example.cpp
b/examples/text-label/text-label-example.cpp
index
bb9c36b
..
ef80ced
100644
(file)
--- 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;
}