From: Myungjae Lee Date: Fri, 25 Mar 2011 09:38:59 +0000 (+0900) Subject: [genlist] added new nbeat styles X-Git-Tag: submit/2.0alpha-wayland/20121130.000903~900^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51fe24642b330f2ff08f8379ca33e6075a1e3301;p=profile%2Fivi%2Fefl-theme-tizen.git [genlist] added new nbeat styles Change-Id: I5dd9fd8f88e8d13df41c6dd13465f457ee13f423 --- diff --git a/themes/groups/genlist/genlist_styles.edc b/themes/groups/genlist/genlist_styles.edc index 2890472..baabaed 100644 --- a/themes/groups/genlist/genlist_styles.edc +++ b/themes/groups/genlist/genlist_styles.edc @@ -1270,6 +1270,167 @@ } } + group { name: "elm/genlist/item/1text.2icon.3/default"; + alias: "elm/genlist/item_odd/1text.2icon.3/default"; + alias: "elm/genlist/item_compress/1text.2icon.3/default"; + alias: "elm/genlist/item_compress_odd/1text.2icon.3/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "labels" "elm.text"; + data.item: "icons" "elm.icon.1 elm.icon.2"; + images { + image: "00_list_bar_press_1x80.png" COMP; + } + parts { + BEAT_GENLIST_PART_BASE( 70 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_TOP( 10 ) + BEAT_GENLIST_PART_PADDING_BOTTOM( 10 ) + BEAT_GENLIST_PART_PADDING_LEFT( 10 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 10 ) + + part { name: "elm.padding.icon1.left"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 0.0 0.0; + to_x: "elm.icon.1"; + } + rel2.to_x: "elm.icon.1"; + align: 1.0 0.0; + } + } + part { name: "elm.icon.1"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.bottom"; + } + } + } + part { name: "elm.icon.2"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 20 20; + max: 20 20; + fixed: 1 1; + align: 0.0 0.5; + rel1 { + relative: 1.0 1.0; + offset: 0 0; + to_x: "elm.padding.text.right"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 1.0 0.0; + offset: 0 0; + to_x: "elm.padding.text.right"; + to_y: "elm.padding.bottom"; + } + } + } + part { name: "elm.padding.text.right"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.text"; + } + rel2.to_x: "elm.text"; + align: 0.0 0.0; + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 0.0 0.0; + rel1 { + relative: 1.0 1.0; + offset: 0 0; + to_x: "elm.padding.left"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 1.0 0.0; + offset: 0 0; + to_x: "elm.padding.left"; + to_y: "elm.padding.bottom"; + } + color: GENLIST_PART_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: 28; + min: 1 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } + group { name: "elm/genlist/item/1text.3icon/default"; alias: "elm/genlist/item_odd/1text.3icon/default"; alias: "elm/genlist/item_compress/1text.3icon/default"; @@ -4113,14 +4274,15 @@ } } - group { name: "elm/genlist/item/3text/default"; - alias: "elm/genlist/item_odd/3text/default"; - alias: "elm/genlist/item_compress/3text/default"; - alias: "elm/genlist/item_compress_odd/3text/default"; + group { name: "elm/genlist/item/2text.3icon/default"; + alias: "elm/genlist/item_odd/2text.3icon/default"; + alias: "elm/genlist/item_compress/2text.3icon/default"; + alias: "elm/genlist/item_compress_odd/2text.3icon/default"; data.item: "stacking" "above"; data.item: "selectraise" "on"; - data.item: "labels" "elm.text.1 elm.text.2 elm.text.3"; + data.item: "labels" "elm.text.1 elm.text.2"; + data.item: "icons" "elm.icon.1 elm.icon.2 elm.icon.3"; images { image: "00_list_bar_press_1x80.png" COMP; } @@ -4133,78 +4295,312 @@ BEAT_GENLIST_PART_PADDING_LEFT( 10 ) BEAT_GENLIST_PART_PADDING_RIGHT( 10 ) - part { name: "elm.text.1"; + part { name: "elm.padding.icon1.left"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 0.0 0.0; + to_x: "elm.text.1"; + } + rel2.to_x: "elm.text.1"; + align: 1.0 0.0; + } + } + part { name: "elm.icon.1"; clip_to: "disclip"; - type: TEXT; - mouse_events: 0; + type: SWALLOW; scale: 1; description { state: "default" 0.0; - min: 0 38; - fixed: 0 1; - align: 0 0; + min: 20 20; + max: 20 20; + fixed: 1 1; + align: 0.0 0.5; rel1 { relative: 1.0 1.0; - to_x: "elm.padding.left"; + offset: 0 0; + to_x: "elm.padding.icon1.left"; to_y: "elm.padding.top"; } rel2 { - relative: 0.0 1.0; + relative: 1.0 1.0; offset: 0 0; - to_x: "elm.padding.right"; - to_y: "elm.padding.top"; - } - color: GENLIST_PART_TEXT_COLOR_INC; - text { - font: "SLP:style=Roman"; - size: 28; - min: 0 1; - align: 0.0 0.5; + to_x: "elm.padding.icon1.left"; + to_y: "elm.text.1"; } } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + part { name: "elm.padding.icon2.right"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.icon.2"; + } + rel2.to_x: "elm.icon.2"; + align: 0.0 0.0; } } - part { name: "elm.text.2"; + part { name: "elm.icon.2"; clip_to: "disclip"; - type: TEXT; - mouse_events: 0; + type: SWALLOW; scale: 1; description { state: "default" 0.0; + min: 20 20; + max: 20 20; + fixed: 1 1; + align: 0.0 0.5; rel1 { relative: 1.0 1.0; + offset: 0 0; to_x: "elm.padding.left"; to_y: "elm.text.1"; } rel2 { - relative: 0.0 0.0; + relative: 1.0 1.0; offset: 0 0; - to_x: "elm.padding.right"; + to_x: "elm.padding.left"; to_y: "elm.padding.bottom"; } - color: GENLIST_PART_SUB_TEXT_COLOR_INC; - text { - font: "SLP:style=Medium"; - size: 20; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; } } - part { name: "elm.text.3"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; + part { name: "elm.padding.icon3.left"; + type: RECT; scale: 1; description { state: "default" 0.0; - align: 1 1; + min: 10 0; + fixed: 1 0; + visible: 0; rel1 { - relative: 1.0 1.0; + relative: 0.0 0.0; + to_x: "elm.icon.3"; + } + rel2.to_x: "elm.icon.3"; + align: 1.0 0.0; + } + } + part { name: "elm.icon.3"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.bottom"; + } + } + } + part { name: "elm.text.1"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 38; + fixed: 1 1; + align: 0 0; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.left"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 1.0 1.0; + offset: 0 0; + to_x: "elm.padding.left"; + to_y: "elm.padding.top"; + } + color: GENLIST_PART_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: 28; + min: 1 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + part { name: "elm.text.2"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.icon2.right"; + to_y: "elm.text.1"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.bottom"; + } + color: GENLIST_PART_SUB_TEXT_COLOR_INC; + text { + font: "SLP:style=Medium"; + size: 20; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text.1"; + target: "elm.text.2"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text.1"; + target: "elm.text.2"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } + + group { name: "elm/genlist/item/3text/default"; + alias: "elm/genlist/item_odd/3text/default"; + alias: "elm/genlist/item_compress/3text/default"; + alias: "elm/genlist/item_compress_odd/3text/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "labels" "elm.text.1 elm.text.2 elm.text.3"; + images { + image: "00_list_bar_press_1x80.png" COMP; + } + parts { + BEAT_GENLIST_PART_BASE( 80 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_TOP( 6 ) + BEAT_GENLIST_PART_PADDING_BOTTOM( 6 ) + BEAT_GENLIST_PART_PADDING_LEFT( 10 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 10 ) + + part { name: "elm.text.1"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 38; + fixed: 0 1; + align: 0 0; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.left"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.top"; + } + color: GENLIST_PART_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: 28; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + part { name: "elm.text.2"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.left"; + to_y: "elm.text.1"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.bottom"; + } + color: GENLIST_PART_SUB_TEXT_COLOR_INC; + text { + font: "SLP:style=Medium"; + size: 20; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + part { name: "elm.text.3"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + align: 1 1; + rel1 { + relative: 1.0 1.0; to_x: "elm.padding.left"; to_y: "elm.padding.top"; } @@ -4393,6 +4789,166 @@ } } + group { name: "elm/genlist/item/2text.1icon.5/default"; + alias: "elm/genlist/item_odd/2text.1icon.5/default"; + alias: "elm/genlist/item_compress/2text.1icon.5/default"; + alias: "elm/genlist/item_compress_odd/2text.1icon.5/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "labels" "elm.text.1 elm.text.2"; + data.item: "icons" "elm.icon"; + images { + image: "00_list_bar_press_1x80.png" COMP; + } + parts { + BEAT_GENLIST_PART_BASE( 80 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_TOP( 6 ) + BEAT_GENLIST_PART_PADDING_BOTTOM( 6 ) + BEAT_GENLIST_PART_PADDING_LEFT( 10 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 10 ) + + part { name: "elm.padding.icon.left"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + visible: 0; + rel1 { + relative: 0.0 0.0; + to_x: "elm.icon"; + } + rel2.to_x: "elm.icon"; + align: 1.0 0.0; + } + } + part { name: "elm.icon"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "elm.padding.bottom"; + } + } + } + part { name: "elm.text.1"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: 0 38; + fixed: 0 1; + align: 0 1; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + to_y: "elm.padding.bottom"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.icon.left"; + to_y: "elm.padding.bottom"; + } + color: GENLIST_PART_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: 28; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + part { name: "elm.text.2"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + align: 0 1; + rel1 { + relative: 1.0 1.0; + to_x: "elm.padding.left"; + to_y: "elm.padding.top"; + } + rel2 { + relative: 0.0 0.0; + offset: 0 0; + to_x: "elm.padding.icon.left"; + to_y: "elm.text.1"; + } + color: GENLIST_PART_SUB_TEXT_COLOR_INC; + text { + font: "SLP:style=Medium"; + size: 20; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text.1"; + target: "elm.text.2"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text.1"; + target: "elm.text.2"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } + group { name: "elm/genlist/item/2line_icontext/default"; alias: "elm/genlist/item_odd/2line_icontext/default"; alias: "elm/genlist/item_compress/2line_icontext/default";