From 6cd4392caa3c15a2817efc12d3d87239954ceb76 Mon Sep 17 00:00:00 2001 From: Jeonghyun Yun Date: Tue, 30 Aug 2011 01:57:01 -0400 Subject: [PATCH] genlist TEXTBLOCK 1text.2 style added Change-Id: Ieed3ace4adb0e96fac46d366d3551dc182774003 --- themes/groups/genlist/genlist_styles.edc | 112 +++++++++++++++++++++++++++++++ themes/inc/nbeat-black-inc.edc | 1 + themes/inc/nbeat-hd-inc.edc | 1 + themes/inc/nbeat-inc.edc | 1 + 4 files changed, 115 insertions(+) diff --git a/themes/groups/genlist/genlist_styles.edc b/themes/groups/genlist/genlist_styles.edc index d350d7a..f030c3e 100644 --- a/themes/groups/genlist/genlist_styles.edc +++ b/themes/groups/genlist/genlist_styles.edc @@ -398,6 +398,118 @@ } } + group { name: "elm/genlist/item/1text.2/default"; + alias: "elm/genlist/item_odd/1text.2/default"; + alias: "elm/genlist/item_compress/1text.2/default"; + alias: "elm/genlist/item_compress_odd/1text.2/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "labels" "elm.text"; + data.item: "renames" "elm.edit.rename"; + images { + image: "00_list_bar_press_1x80.png" COMP; + } + styles { + style { name: "genlist_default_textblock_style"; + base: "font=SLP:style=Roman font_size="GENLIST_FONT_STYLE_28_INC" color="GENLIST_PART_MULTILINE_TEXT_STYLE_COLOR_INC" text_class=list_item ellipsis=1.0"; + } + style { name: "genlist_default_textblock_selected_style"; + base: "font=SLP:style=Roman font_size="GENLIST_FONT_STYLE_28_INC" color="GENLIST_PART_MULTILINE_TEXT_STYLE_SELECTED_COLOR_INC" text_class=list_item ellipsis=1.0"; + } + } + parts { + GENLIST_PART_BASE( GENLIST_HEIGHT_71_INC ) + GENLIST_PART_BG_IMAGE + GENLIST_PART_BOTTOM_LINE + GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_10_INC ) + GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_10_INC ) + part { name: "temp_center_line"; //temporary + clip_to: "disclip"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1 { + relative: 0.0 0.5; + to: "base"; + } + rel2 { + relative: 1.0 0.5; + to: "base"; + } + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + multiline: 0; + description { state: "default" 0.0; + fixed: 0 1; + rel1 { + relative: 1.0 0.5; + to_x: "elm.padding.left"; + to_y: "temp_center_line"; + } + rel2 { + relative: 0.0 0.5; + to_x: "elm.padding.right"; + to_y: "temp_center_line"; + } + align: 0.0 0.5; + text { + style: "genlist_default_textblock_style"; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + text.style: "genlist_default_textblock_selected_style"; + } + GENLIST_DESCRIPTION_INVISIBLE_SELECTED + GENLIST_DESCRIPTION_RENAME_ENABLED + } + GENLIST_PART_RENAME + 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; + GENLIST_PROGRAM_SCRIPT_RENAME_SELECT_1TEXT + } + 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"; + } + GENLIST_PROGRAM_RENAME_1TEXT + } + } + group { name: "elm/genlist/item/2text/default"; alias: "elm/genlist/item_odd/2text/default"; alias: "elm/genlist/item_compress/2text/default"; diff --git a/themes/inc/nbeat-black-inc.edc b/themes/inc/nbeat-black-inc.edc index c82fd10..fe252a5 100644 --- a/themes/inc/nbeat-black-inc.edc +++ b/themes/inc/nbeat-black-inc.edc @@ -106,6 +106,7 @@ #define GENLIST_FONT_22_INC 22 #define GENLIST_FONT_26_INC 26 #define GENLIST_FONT_28_INC 28 +#define GENLIST_FONT_STYLE_28_INC "28" #define GENLIST_FONT_30_INC 30 #define GENLIST_SIZE_4_INC 4 diff --git a/themes/inc/nbeat-hd-inc.edc b/themes/inc/nbeat-hd-inc.edc index 4e9d207..a9b98cb 100644 --- a/themes/inc/nbeat-hd-inc.edc +++ b/themes/inc/nbeat-hd-inc.edc @@ -108,6 +108,7 @@ #define GENLIST_FONT_22_INC 35 #define GENLIST_FONT_26_INC 41 #define GENLIST_FONT_28_INC 44 +#define GENLIST_FONT_STYLE_28_INC "44" #define GENLIST_FONT_30_INC 48 #define GENLIST_SIZE_4_INC 6 diff --git a/themes/inc/nbeat-inc.edc b/themes/inc/nbeat-inc.edc index 4702399..e47932c 100644 --- a/themes/inc/nbeat-inc.edc +++ b/themes/inc/nbeat-inc.edc @@ -106,6 +106,7 @@ #define GENLIST_FONT_22_INC 22 #define GENLIST_FONT_26_INC 26 #define GENLIST_FONT_28_INC 28 +#define GENLIST_FONT_STYLE_28_INC "28" #define GENLIST_FONT_30_INC 30 #define GENLIST_SIZE_4_INC 4 -- 2.7.4