From 380ba1444b5a8702ff6ab9f516850d0a2ad1c196 Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Wed, 10 Apr 2013 13:20:58 +0530 Subject: [PATCH] [popup.edc] Popup item landscape mode style created. Change-Id: Iee90734167143c6da402760dd49857a1d089cd81 --- themes/inc/tizen-hd-inc.edc | 2 ++ themes/widgets/popup.edc | 31 ++++++++++++++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/themes/inc/tizen-hd-inc.edc b/themes/inc/tizen-hd-inc.edc index 305f6dd..ca5f582 100644 --- a/themes/inc/tizen-hd-inc.edc +++ b/themes/inc/tizen-hd-inc.edc @@ -830,6 +830,8 @@ #define POPUP_ITEM_TEXT_DISABLED_COLOR_INC 128 128 128 255 #define POPUP_ITEM_TEXT_DISABLED_VISIBLE_COLOR_INC 128 128 128 255 +#define POPUP_ITEM_BG_LANDCAPE_MIN_INC 828 112 + #define POPUP_DEFAULT_TITLE_TEXT_COLOR_INC "#3b73b6" #define POPUP_DEFAULT_TITLE_TEXT_SHADOW_COLOR "#ffffff" #define POPUP_DEFAULT_TITLE_TEXT_SHADOW_STYLE "far_shadow,bottom" diff --git a/themes/widgets/popup.edc b/themes/widgets/popup.edc index a08a731..a14e9f0 100644 --- a/themes/widgets/popup.edc +++ b/themes/widgets/popup.edc @@ -786,6 +786,10 @@ group { name: "elm/popup/base/default"; action: STATE_SET "landscape" 0.0; target: "base"; target: "elm.bg.title"; + after: "orientation_change"; + } + program { name: "orientation_change"; + action: SIGNAL_EMIT "elm,state,orientation,changed" ""; } program { name: "change_to_portrait"; signal: "elm,state,portrait"; @@ -793,6 +797,7 @@ group { name: "elm/popup/base/default"; action: STATE_SET "default" 0.0; target: "base"; target: "elm.bg.title"; + after: "orientation_change"; } program { name: "landscape_mode"; source: "elm"; @@ -810,9 +815,9 @@ group { name: "elm/popup/base/default"; action: SIGNAL_EMIT "elm,state,portrait" "elm"; } program { name: "portrait_mode2"; - source: "elm"; - signal: "elm,state,orient,180"; - action: SIGNAL_EMIT "elm,state,portrait" "elm"; + source: "elm"; + signal: "elm,state,orient,180"; + action: SIGNAL_EMIT "elm,state,portrait" "elm"; } } /* end of programs */ } @@ -1279,6 +1284,26 @@ group { name: "elm/popup/item/default"; } } +///////////////////////////////////////////////////////////////////////////////////////// +group { name: "elm/popup/item/landscape/default"; + inherit: "elm/popup/item/default"; + parts { + part { name: "bg"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + color: GENLIST_LIST_BG_COLOR; + min: POPUP_ITEM_BG_LANDCAPE_MIN_INC; + align: 0.5 0.0; + } + description { state: "clicked" 0.0; + color: GENLIST_LIST_PRESS_COLOR; + } + } + } +} + //////////////////////////////////////////////////////////////////////////////////////// group { name: "elm/label/base/popup/verticalbuttonstyle"; styles -- 2.7.4