Added the size of empty font
authorJongwooLee <jongwoo718.lee@samsung.com>
Wed, 29 May 2013 06:20:24 +0000 (15:20 +0900)
committerJongwooLee <jongwoo718.lee@samsung.com>
Wed, 29 May 2013 06:20:38 +0000 (15:20 +0900)
Change-Id: Ie3607676e29f05b99e688d655431acaf7b6fcc9d
Signed-off-by: JongwooLee <jongwoo718.lee@samsung.com>
src/ui/controls/FUiCtrl_GalleryPresenter.cpp
src/ui/inc/FUi_ResourceGalleryConfig.h
src/ui/resource/FUi_ResourceGalleryConfig.cpp

index 3cc9596..3ccdebb 100644 (file)
@@ -151,6 +151,7 @@ _GalleryPresenter::Construct(_GalleryItemProviderAdaptorImpl* pGalleryItemProvid
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        GET_STRING_CONFIG(IDS_TPLATFORM_BODY_NO_IMAGES, __emptyText);
+       GET_SHAPE_CONFIG(GALLERY::EMPTY_FONT_SIZE, _CONTROL_ORIENTATION_PORTRAIT, __emptyFontSize);
        r = __galleryRenderer.SetEmptyText(__emptyText);
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
@@ -161,7 +162,6 @@ _GalleryPresenter::Construct(_GalleryItemProviderAdaptorImpl* pGalleryItemProvid
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        SetFontStyle(FONT_STYLE_PLAIN);
-       SetFontSize(32);
 
        __pGalleryView = pGalleryView;
 
index 690cbae..a0f650e 100644 (file)
 #include "FUi_ResourceConfigMacro.h"
 
 DECLARE_UI_CONFIG(GALLERY);
+// Color config
        DECLARE_COLOR_CONFIG(EMPTY_TEXT_NORMAL, 1);
+// Shape config
+       DECLARE_SHAPE_CONFIG(EMPTY_FONT_SIZE, 1);
 DECLARE_END_UI_CONFIG(GALLERY);
 
-#endif //_FUI_RESOURCE_GALLERY_CONFIG_H_
\ No newline at end of file
+#endif //_FUI_RESOURCE_GALLERY_CONFIG_H_
index 87725e2..8d5e008 100644 (file)
@@ -28,6 +28,7 @@ START_UI_CONFIG(GALLERY);
        END_UI_CONFIG_MODE(480x800);
 
        START_UI_CONFIG_MODE(720x1280);
+               ADD_SHAPE_CONFIG(EMPTY_FONT_SIZE, 32);
        END_UI_CONFIG_MODE(720x1280);
 }
 END_UI_CONFIG(GALLERY);