From 7665477736c0187ee978a0358ae9be2c04e353ed Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Fri, 21 Dec 2018 14:19:02 +0900 Subject: [PATCH] Enable Property::LABEL visual of a button when CreateVisuals Property::LABEL visual should be selected manually. Change-Id: I2baac521b22ebc0ef6979d2578e53bdb53a3d843 Signed-off-by: Jiyun Yang --- dali-toolkit/internal/controls/buttons/button-impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/controls/buttons/button-impl.cpp b/dali-toolkit/internal/controls/buttons/button-impl.cpp index 8c35f25..3207f9b 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/button-impl.cpp @@ -445,7 +445,8 @@ void Button::CreateVisualsForComponent( Property::Index index, const Property::V index, DevelControl::IsVisualEnabled( *this, index )?"true":"false" ); // enable the visual if needed for current state const bool enabled = ( ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ BACKGROUND ] )|| - ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ FOREGROUND ] ) ); + ( index == VISUAL_INDEX_FOR_STATE[ mButtonState ][ FOREGROUND ] )|| + ( index == Toolkit::Button::Property::LABEL ) ); DevelControl::RegisterVisual( *this, index, buttonVisual, enabled, visualDepth ); } else -- 2.7.4