From: Amit Kamboj Date: Wed, 10 Apr 2013 07:50:58 +0000 (+0530) Subject: [popup.edc] Popup item landscape mode style created. X-Git-Tag: 2.1b_release~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=380ba1444b5a8702ff6ab9f516850d0a2ad1c196;p=platform%2Fcore%2Fuifw%2Fefl-theme-tizen.git [popup.edc] Popup item landscape mode style created. Change-Id: Iee90734167143c6da402760dd49857a1d089cd81 --- 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