From: chitta ranjan Date: Tue, 9 Apr 2013 02:55:51 +0000 (+0900) Subject: ImageViewer header color change X-Git-Tag: accepted/tizen_2.1/20130425.023641~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bb45d1ad41173da886a9f5c75b3f77924939151;p=apps%2Fosp%2FImageViewer.git ImageViewer header color change Change-Id: I08d6ac00b68ee184774b733f4c1d9de4cd4e7c66 Signed-off-by: chitta ranjan --- diff --git a/src/IvImageViewerForm.cpp b/src/IvImageViewerForm.cpp index 57a8bd8..4fa3156 100644 --- a/src/IvImageViewerForm.cpp +++ b/src/IvImageViewerForm.cpp @@ -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; }