diff options
author | Chu Hoang <c.hoang@samsung.com> | 2015-06-29 16:54:51 +0100 |
---|---|---|
committer | Chu Hoang <c.hoang@samsung.com> | 2015-07-01 10:05:25 +0100 |
commit | 857ef19a722e134f7a5d11e83a045f6a2c658ff2 (patch) | |
tree | 499a4e2a9b7dde203424a1cbccf8e2df208b5501 /examples/refraction-effect | |
parent | f7d9aa78c604218eda5c95dd7a994c0e847f882e (diff) | |
download | dali-demo-857ef19a722e134f7a5d11e83a045f6a2c658ff2.tar.gz dali-demo-857ef19a722e134f7a5d11e83a045f6a2c658ff2.tar.bz2 dali-demo-857ef19a722e134f7a5d11e83a045f6a2c658ff2.zip |
Changed demos to use unselected button images.
[SRUK] ()
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
Change-Id: If2cafffc9545e439994ee5442057004bc2653eab
Diffstat (limited to 'examples/refraction-effect')
-rw-r--r-- | examples/refraction-effect/refraction-effect-example.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/refraction-effect/refraction-effect-example.cpp b/examples/refraction-effect/refraction-effect-example.cpp index c192b52b..39feed35 100644 --- a/examples/refraction-effect/refraction-effect-example.cpp +++ b/examples/refraction-effect/refraction-effect-example.cpp @@ -34,7 +34,9 @@ namespace const char * const APPLICATION_TITLE( "Refraction Effect" ); const char * const TOOLBAR_IMAGE( DALI_IMAGE_DIR "top-bar.png" ); const char * const CHANGE_TEXTURE_ICON( DALI_IMAGE_DIR "icon-change.png" ); +const char * const CHANGE_TEXTURE_ICON_SELECTED( DALI_IMAGE_DIR "icon-change-selected.png" ); const char * const CHANGE_MESH_ICON( DALI_IMAGE_DIR "icon-replace.png" ); +const char * const CHANGE_MESH_ICON_SELECTED( DALI_IMAGE_DIR "icon-replace-selected.png" ); const char* MESH_FILES[] = { @@ -255,7 +257,8 @@ private: // Add a button to change background. (right of toolbar) mChangeTextureButton = Toolkit::PushButton::New(); - mChangeTextureButton.SetBackgroundImage( ResourceImage::New( CHANGE_TEXTURE_ICON ) ); + mChangeTextureButton.SetButtonImage( ResourceImage::New( CHANGE_TEXTURE_ICON ) ); + mChangeTextureButton.SetSelectedImage( ResourceImage::New( CHANGE_TEXTURE_ICON_SELECTED ) ); mChangeTextureButton.ClickedSignal().Connect( this, &RefractionEffectExample::OnChangeTexture ); toolBar.AddControl( mChangeTextureButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage, @@ -263,7 +266,8 @@ private: DemoHelper::DEFAULT_MODE_SWITCH_PADDING ); // Add a button to change mesh pattern. ( left of bar ) mChangeMeshButton = Toolkit::PushButton::New(); - mChangeMeshButton.SetBackgroundImage( ResourceImage::New( CHANGE_MESH_ICON ) ); + mChangeMeshButton.SetButtonImage( ResourceImage::New( CHANGE_MESH_ICON ) ); + mChangeMeshButton.SetSelectedImage( ResourceImage::New( CHANGE_MESH_ICON_SELECTED ) ); mChangeMeshButton.ClickedSignal().Connect( this, &RefractionEffectExample::OnChangeMesh ); toolBar.AddControl( mChangeMeshButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage, |