Adding DropShadow effect for popup, message box, progress popup title.
authorkishorekumar Dachinamoorthy <kishore.d@samsung.com>
Fri, 6 Sep 2013 09:43:49 +0000 (15:13 +0530)
committerkishorekumar Dachinamoorthy <kishore.d@samsung.com>
Fri, 6 Sep 2013 09:43:49 +0000 (15:13 +0530)
Change-Id: I7d42932541413b3bff411acccd51526f0a001ced
Signed-off-by: kishorekumar Dachinamoorthy <kishore.d@samsung.com>
src/ui/controls/FUiCtrl_MessageBoxPresenter.cpp
src/ui/controls/FUiCtrl_PopupPresenter.cpp
src/ui/controls/FUiCtrl_ProgressPopupPresenter.cpp

index f2d0182..90022d1 100644 (file)
@@ -381,16 +381,16 @@ _MessageBoxPresenter::GetLabelHeight(TextObject* textObject, wchar_t* text, int
        pSimpleTextForBodyText = new (std::nothrow) TextSimple(text, length, TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
        SysTryCatch(NID_UI_CTRL, pSimpleTextForBodyText != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
-       textObject->AppendElement(*pSimpleTextForBodyText);
-
        if (isTitle == true)
        {
+               pSimpleTextForBodyText->SetTextShadowEnabled(true);
                textObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_NONE);
        }
        else
        {
                textObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_WORD);
        }
+       textObject->AppendElement(*pSimpleTextForBodyText);
        textObject->SetAction(TEXT_OBJECT_ACTION_TYPE_ABBREV);
        textObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT);
        textObject->SetBounds(bounds);
index 53e56f9..a42e518 100755 (executable)
@@ -228,6 +228,8 @@ _PopupPresenter::SetTitleTextObject(const String &title)
                                                                                                                                TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
        SysTryCatch(NID_UI_CTRL, pSimpleText != null , r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
+       pSimpleText->SetTextShadowEnabled(true);
+
        _pTitleTextObject->AppendElement(*pSimpleText);
        _pTitleTextObject->SetForegroundColor(__pPopup->GetTitleTextColor(), 0, _pTitleTextObject->GetTextLength());
        _pTitleTextObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_NONE);
index 74c3efa..df16178 100644 (file)
@@ -172,6 +172,8 @@ _ProgressPopupPresenter::SetTitleTextObject(void)
                        TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
        SysTryCatch(NID_UI_CTRL, pSimpleTextForTitleText != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
+
+       pSimpleTextForTitleText->SetTextShadowEnabled(true);
        _pTitleTextObject->AppendElement(*pSimpleTextForTitleText);
        _pTitleTextObject->SetForegroundColor(__pProgressPopup->GetTitleTextColor(), 0, _pTitleTextObject->GetTextLength());
        _pTitleTextObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_NONE);