diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 12:57:58 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 12:57:58 +0900 |
commit | 331d162934ac346a137b6a3a17074d948a3c6c41 (patch) | |
tree | de2d8bd57e2c66aa58f0f2561fe8e79938142bf1 /lib/edc/list_theme.edc | |
download | phone-contacts-331d162934ac346a137b6a3a17074d948a3c6c41.tar.gz phone-contacts-331d162934ac346a137b6a3a17074d948a3c6c41.tar.bz2 phone-contacts-331d162934ac346a137b6a3a17074d948a3c6c41.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1047322.3a_releasetizen_2.3
Diffstat (limited to 'lib/edc/list_theme.edc')
-rwxr-xr-x | lib/edc/list_theme.edc | 766 |
1 files changed, 766 insertions, 0 deletions
diff --git a/lib/edc/list_theme.edc b/lib/edc/list_theme.edc new file mode 100755 index 0000000..51da8d1 --- /dev/null +++ b/lib/edc/list_theme.edc @@ -0,0 +1,766 @@ +/* +* Copyright 2012 Samsung Electronics Co., Ltd +* +* Licensed under the Flora License, Version 1.1 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://floralicense.org/license/ +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + + +#define GENLIST_PART_BG_COLOR_INC 248 246 239 255 +#define GENLIST_PART_LIST_LINE_COLOR_INC 211 209 203 255 +#define GENLIST_PART_LIST_PRESS_COLOR_INC 87 135 194 255 +#define GENLIST_PART_LIST_COUNT_COLOR_INC 124 124 124 255 +#define GENLIST_PART_LIST_TEXT_DEFAULT 0 0 0 255 +#define GENLIST_PART_TEXT_PRESS_COLOR 250 250 250 255 +#define GENLIST_PART_LIST_TEXT_SUB_DEFAULT 0 0 0 128 + +#define GENLIST_PART_BASE( param_item_height ) \ +part { \ + name: "base"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: GENLIST_PART_BG_COLOR_INC; \ + } \ +} + +#define GENLIST_PART_BOTTOM_LINE \ +part { name: "bottom_line"; \ + type: RECT; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: GENLIST_PART_LIST_LINE_COLOR_INC; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + } \ + } \ +} + +#define GENLIST_PART_PADDING_LEFT( param_padding_size ) \ +part { \ + name: "elm.padding.left"; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel2.relative: 0.0 1.0; \ + align: 0.0 0.0; \ + } \ +} + +#define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \ +part { \ + name: "elm.padding.right"; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.relative: 1.0 0.0; \ + align: 1.0 0.0; \ + } \ +} + +#define GENLIST_PART_BG_IMAGE \ +part { \ + name: "bg_image"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + color: GENLIST_PART_BG_COLOR_INC; \ + } \ + description { \ + state: "selected" 0.0; \ + inherit: "default" 0.0; \ + color: GENLIST_PART_LIST_PRESS_COLOR_INC; \ + } \ +} + +#define GENLIST_DESCRIPTION_FLIP_ENABLED \ +description { \ + state: "flip_enabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ +} + +collections +{ + styles { + style { + name: "genlist_default_textblock_style"; + base: "font=Tizen:style=Roman text_class=list_item font_size=44 align=left color=#000000FF wrap=word ellipsis=1.0"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "tab" "\t"; + tag: "b" "+ font=Tizen:style=Bold"; + tag: "match" "+ color=#2A89C2"; + } + style { + name: "genlist_default_textblock_selected_style"; + base: "font=Tizen:style=Roman text_class=list_item font_size=44 align=left color=#F9F9F9FF wrap=word ellipsis=1.0"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "tab" "\t"; + tag: "b" "+ font=Tizen:style=Bold"; + tag: "match" "+ color=#F9F9F9FF"; + } + } + /* Genlist Item */ + group { + name: "elm/genlist/item/1text_center/default"; + alias: "elm/genlist/item_odd/1text_center/default"; + alias: "elm/genlist/item_compress/1text_center/default"; + alias: "elm/genlist/item_compress_odd/1text_center/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + parts { + GENLIST_PART_BASE(130); + GENLIST_PART_BOTTOM_LINE + part { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + clip_to: "disclip"; + description { + state: "default" 0.0; + color: GENLIST_PART_LIST_COUNT_COLOR_INC; + text { + font: "Tizen:style=Roman"; + text_class: "tizen"; + size: 44; + min: 0 1; + align: 0.5 0.5; + text_class: "tizen"; + } + } + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + color: 248 246 239 255; + } + } + } + } + group { + name: "elm/genlist/item/link_list/default"; + alias: "elm/genlist/item_odd/link_list/default"; + alias: "elm/genlist/item_compress/link_list/default"; + alias: "elm/genlist/item_compress_odd/link_list/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text elm.text.1 elm.text.2"; + data.item: "contents" "elm.icon.1"; + data.item: "flips" "elm.flip.content"; + parts { + GENLIST_PART_BASE(130) + GENLIST_PART_BG_IMAGE + GENLIST_PART_BOTTOM_LINE + GENLIST_PART_PADDING_LEFT(26) + GENLIST_PART_PADDING_RIGHT(24) + part { + name: "elm.icon.1"; + type: SWALLOW; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 104 104; + max: 104 104; + fixed: 1 1; + rel1 { + relative: 0.0 0.0; + to_x: "elm.padding.right"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.right"; + } + align: 1.0 0.5; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.padding.icon1.text1right"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 4 0; + fixed: 1 0; + visible: 0; + rel1.to_x: "elm.icon.1"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon.1"; + } + align: 1.0 0.0; + } + } + part { + name: "elm.text"; + type: TEXT; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + color: GENLIST_PART_LIST_TEXT_DEFAULT; + text { + font: "Tizen:style=Roman"; + size: 44; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + text_class: "list_item"; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_PRESS_COLOR; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.text.1"; + type: TEXT; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 0.7; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + color: GENLIST_PART_LIST_TEXT_DEFAULT; + text { + font: "Tizen:style=Roman"; + size: 44; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + text_class: "list_item"; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_PRESS_COLOR; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.text.2"; + type: TEXT; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.5; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + color: GENLIST_PART_LIST_TEXT_DEFAULT; + text { + font: "Tizen:style=Roman"; + size: 32; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + text_class: "list_item"; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_PRESS_COLOR; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.padding.text.right"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 16 0; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.text"; + } + rel2.to_x: "elm.text"; + align: 0.0 0.0; + visible: 0; + } + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 255; + } + description { + state: "disabled" 0.0; + inherit: "default" 0.0; + color: 255 255 255 110; + } + } + part { + name: "elm.flip.content"; + clip_to: "disclip"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { + relative: 1.0 0.5; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 0.5; + to_x: "elm.padding.right"; + } + } + description { + state: "flip_enabled" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + 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"; + 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"; + } + program { + name: "flip_enabled"; + signal: "elm,state,flip,enabled"; + source: "elm"; + action: STATE_SET "flip_enabled" 0.0; + target: "elm.text"; + target: "elm.text.1"; + target: "elm.text.2"; + target: "elm.icon.1"; + target: "elm.flip.content"; + } + program { + name: "flip_disabled"; + signal: "elm,state,flip,disabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + target: "elm.text.1"; + target: "elm.text.2"; + target: "elm.icon.1"; + target: "elm.flip.content"; + } + } + } + group { + name: "elm/genlist/item_compress/link_list.tb/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text elm.text.1 elm.text.2"; + data.item: "contents" "elm.icon.1"; + data.item: "flips" "elm.flip.content"; + parts { + GENLIST_PART_BASE(130) + GENLIST_PART_BG_IMAGE + GENLIST_PART_BOTTOM_LINE + GENLIST_PART_PADDING_LEFT(26) + GENLIST_PART_PADDING_RIGHT(24) + part { + name: "elm.icon.1"; + type: SWALLOW; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 104 104; + max: 104 104; + fixed: 1 1; + rel1 { + relative: 0.0 0.0; + to_x: "elm.padding.right"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.right"; + } + align: 1.0 0.5; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.padding.icon1.left"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 64 0; + fixed: 1 0; + visible: 0; + rel1.to_x: "elm.icon.1"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon.1"; + } + align: 1.0 0.0; + } + } + part { + name: "elm.padding.icon1.left2"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 134 0; + fixed: 1 0; + visible: 0; + rel1.to_x: "elm.icon.1"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon.1"; + } + align: 1.0 0.0; + } + } + part { + name: "elm.padding.icon1.left3"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 51 0; + fixed: 1 0; + visible: 0; + rel1.to_x: "elm.icon.1"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon.1"; + } + align: 1.0 0.0; + } + } + part { + name: "elm.padding.icon1.text1right"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 4 0; + fixed: 1 0; + visible: 0; + rel1.to_x: "elm.icon.1"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon.1"; + } + align: 1.0 0.0; + } + } + part { + name: "elm.text"; + type: TEXTBLOCK; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + text { + style: "genlist_default_textblock_style"; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + text.style: "genlist_default_textblock_selected_style"; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.text.1"; + type: TEXTBLOCK; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 0.7; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + text { + style: "genlist_default_textblock_style"; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + text.style: "genlist_default_textblock_selected_style"; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.text.2"; + type: TEXT; + clip_to: "disclip"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + relative: 1.0 0.5; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.icon1.text1right"; + } + align: 0.0 0.5; + color: GENLIST_PART_LIST_TEXT_SUB_DEFAULT; + text { + font: "Tizen:style=Roman"; + size: 32; + min: 0 1; + max: 1 0; + align: 0.0 0.5; + text_class: "list_item"; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_PRESS_COLOR; + } + GENLIST_DESCRIPTION_FLIP_ENABLED + } + part { + name: "elm.padding.text.right"; + type: RECT; + clip_to: "disclip"; + scale: 1; + description { + state: "default" 0.0; + min: 16 0; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + to_x: "elm.text"; + } + rel2.to_x: "elm.text"; + align: 0.0 0.0; + visible: 0; + } + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 255; + } + description { + state: "disabled" 0.0; + inherit: "default" 0.0; + color: 255 255 255 110; + } + } + part { + name: "elm.flip.content"; + clip_to: "disclip"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { + relative: 1.0 0.5; + to_x: "elm.padding.left"; + } + rel2 { + relative: 0.0 0.5; + to_x: "elm.padding.right"; + } + } + description { + state: "flip_enabled" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + 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"; + 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"; + } + program { + name: "flip_enabled"; + signal: "elm,state,flip,enabled"; + source: "elm"; + action: STATE_SET "flip_enabled" 0.0; + target: "elm.text"; + target: "elm.text.1"; + target: "elm.text.2"; + target: "elm.icon.1"; + target: "elm.flip.content"; + } + program { + name: "flip_disabled"; + signal: "elm,state,flip,disabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + target: "elm.text.1"; + target: "elm.text.2"; + target: "elm.icon.1"; + target: "elm.flip.content"; + } + } + } +} |