ImageViewer header color change
authorchitta ranjan <chitta.rs@samsung.com>
Tue, 9 Apr 2013 02:55:51 +0000 (11:55 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Tue, 9 Apr 2013 02:55:51 +0000 (11:55 +0900)
Change-Id: I08d6ac00b68ee184774b733f4c1d9de4cd4e7c66
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
src/IvImageViewerForm.cpp

index 57a8bd8..4fa3156 100644 (file)
@@ -44,7 +44,8 @@ using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 
-static const unsigned int COLOR_HEADER_CONTORL_PANEL = Color32<0, 0, 0, 100>::Value;
+static const unsigned int COLOR_HEADER_CONTROL_LABEL = Color32<0, 0, 0, 0>::Value;
+static const unsigned int COLOR_HEADER_CONTROL_PANEL = Color32<0, 0, 0, 100>::Value;
 static const unsigned int COLOR_HEADER_BUTTON1 = Color32<0, 0, 0, 100>::Value;
 static const unsigned int COLOR_DELETE_BUTTON_NORMAL = Color32<208, 82, 82>::Value;
 static const unsigned int COLOR_DELETE_BUTTON_PRESSED = Color32<194, 71, 71>::Value;
@@ -202,7 +203,7 @@ ImageViewerForm::OnInitializing(void)
        {
                return E_FAILURE;
        }
-       __pLabel->SetBackgroundColor(COLOR_HEADER_CONTORL_PANEL);
+       __pLabel->SetBackgroundColor(COLOR_HEADER_CONTROL_LABEL);
        SetControlAlwaysOnTop(*__pLabel,true);
        int allCount = __pPresentationModel->GetFileCount();
        int index = 1 ;
@@ -662,7 +663,7 @@ ImageViewerForm::InitializePanelDetail()
                __pDetail_FileInfo_Value_Label[i]->SetTextConfig(DETAIL_MAIN_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
        }
 
-       __pScrollPanel->SetBackgroundColor(COLOR_HEADER_CONTORL_PANEL);
+       __pScrollPanel->SetBackgroundColor(COLOR_HEADER_CONTROL_PANEL);
        __pScrollPanel->SetShowState(false);
 
        __pRenameButton = new (std::nothrow) Button();
@@ -1009,11 +1010,15 @@ ImageViewerForm::ShowPanelDetail(bool showStatus)
        if (showStatus)
        {
                SetDetailInfo();
+               __pLabel->SetBackgroundColor(COLOR_HEADER_CONTROL_PANEL);
+               __pLabel->Invalidate(true);
                __pScrollPanel->SetShowState(true);
                __detail = false;
        }
        else
        {
+               __pLabel->SetBackgroundColor(COLOR_HEADER_CONTROL_LABEL);
+               __pLabel->Invalidate(true);
                __pScrollPanel->SetShowState(false);
                __detail = true;
        }