From c4d56b88ecf3927c45e59d70b6f8cdebb066dbaf Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Mon, 31 Oct 2011 16:06:53 +0900 Subject: [PATCH] [popup] add minimum style for list(genlist) Change-Id: I96951b678489a6b1d4f340d38888181d741342e9 --- themes/groups/popup.edc | 109 ++++++++++++++++++++++++++++++++++++-- themes/inc/nbeat-black-hd-inc.edc | 2 + themes/inc/nbeat-black-inc.edc | 2 + themes/inc/nbeat-hd-inc.edc | 2 + themes/inc/nbeat-inc.edc | 2 + 5 files changed, 114 insertions(+), 3 deletions(-) diff --git a/themes/groups/popup.edc b/themes/groups/popup.edc index 04b165e..71dded2 100644 --- a/themes/groups/popup.edc +++ b/themes/groups/popup.edc @@ -837,7 +837,61 @@ group { name: "elm/popup/content/menustyle"; fixed: 1 0; visible: 0; align: 0.0 0.5; - min: 3 0; + min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 0.0 1.0; + } + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; + min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC; + align: 0.5 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + to:"left_padding"; + } + rel2 { + relative: 0.0 1.0; + to:"right_padding"; + } + } + } + part { name: "right_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 1.0 0.5; + min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; + rel1 { + relative: 1.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + } +} + +group { name: "elm/popup/content/min_menustyle"; + parts{ + part { name: "left_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 0.0 0.5; + min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 0.0 0.0; } @@ -850,7 +904,7 @@ group { name: "elm/popup/content/menustyle"; type: SWALLOW; scale : 1; description { state: "default" 0.0; - min: 394 320; + min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC; align: 0.5 0.5; fixed: 1 0; rel1 { @@ -870,7 +924,7 @@ group { name: "elm/popup/content/menustyle"; fixed: 1 0; visible: 0; align: 1.0 0.5; - min: 3 0; + min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; rel1 { relative: 1.0 0.0; } @@ -931,6 +985,55 @@ group { name: "elm/popup/content/liststyle"; } } +group { name: "elm/popup/content/min_liststyle"; + parts{ + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + align: 0.0 0.0; + min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; + max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC; + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; + min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC; + align: 0.5 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to:"left_top_padding"; + } + rel2 { + relative: 0.0 1.0; + to:"right_padding"; + } + } + } + part { name: "right_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 1.0 0.5; + min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC; + rel1 { + relative: 1.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + } +} + group { name: "elm/popup/base/customstyle"; parts { images { diff --git a/themes/inc/nbeat-black-hd-inc.edc b/themes/inc/nbeat-black-hd-inc.edc index 4139bdd..ed936d1 100644 --- a/themes/inc/nbeat-black-hd-inc.edc +++ b/themes/inc/nbeat-black-hd-inc.edc @@ -775,6 +775,8 @@ #define POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC 614 520 #define POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC 3 0 +#define POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC 614 0 + #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC 620 0 #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC 620 1120 #define POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC 3 3 3 3 diff --git a/themes/inc/nbeat-black-inc.edc b/themes/inc/nbeat-black-inc.edc index dac7d8b..d36368b 100644 --- a/themes/inc/nbeat-black-inc.edc +++ b/themes/inc/nbeat-black-inc.edc @@ -761,6 +761,8 @@ #define POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC 394 320 #define POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC 3 0 +#define POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC 394 0 + #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC 400 0 #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC 400 730 #define POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC 3 3 3 3 diff --git a/themes/inc/nbeat-hd-inc.edc b/themes/inc/nbeat-hd-inc.edc index f24a13a..77f1512 100644 --- a/themes/inc/nbeat-hd-inc.edc +++ b/themes/inc/nbeat-hd-inc.edc @@ -790,6 +790,8 @@ #define POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC 614 520 #define POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC 3 0 +#define POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC 614 0 + #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC 620 0 #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC 620 1120 #define POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC 3 3 3 3 diff --git a/themes/inc/nbeat-inc.edc b/themes/inc/nbeat-inc.edc index 56bb583..2b8034a 100644 --- a/themes/inc/nbeat-inc.edc +++ b/themes/inc/nbeat-inc.edc @@ -784,6 +784,8 @@ #define POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC 394 320 #define POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC 3 0 +#define POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC 394 0 + #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC 400 0 #define POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC 400 730 #define POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC 3 3 3 3 -- 2.7.4