diff options
Diffstat (limited to 'lib/edc/favorites.edc')
-rwxr-xr-x | lib/edc/favorites.edc | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/lib/edc/favorites.edc b/lib/edc/favorites.edc new file mode 100755 index 0000000..595b6fd --- /dev/null +++ b/lib/edc/favorites.edc @@ -0,0 +1,191 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.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 FAVORITE_BG_COLOR 0 0 0 255 +#define FAVORITE_GROUP_INDEX_BG_COLOR 128 158 182 255 +#define IMAGE_PATH "../images/phoneug_images/" + +images { + image: IMAGE_PATH"00_index_list_bg.png" COMP; +} +collections { + group { + name: "layout"; + styles { + style { + name: "Favorites_contact_01"; + base: "font=SLP:style=Medium text_class=slp_medium font_size=32 color=#1d6495"; + } + } + parts { + part { + name: "bg"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 255; + } + } + part { + name: "layout/most_frequent"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.0; } + color: FAVORITE_BG_COLOR; + min: 0 293; + fixed: 0 1; + } + description { + state: "hide" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 0.0 0.0; } + visible: 0; + } + } + part { + name: "base"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + min: 0 48; + fixed: 0 1; + rel1 { relative: 0.0 1.0; to: "layout/most_frequent"; } + rel2 { relative: 1.0 1.0; to: "layout/most_frequent"; } + image { normal: IMAGE_PATH"00_index_list_bg.png"; } + } + description { + state: "hide" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 0.0 0.0; } + visible: 0; + } + } + part { + name: "layout/favorites/title"; + type: TEXTBLOCK; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; offset: 16 0; to: "base"; } + rel2 { relative: 1.0 1.0; to: "base"; } + text { + style: "Favorites_contact_01"; + } + } + description { + state: "hide" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 0.0 0.0; } + visible: 0; + } + } + part { + name: "layout/favorites"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; to: "base"; } + rel2 { relative: 1.0 1.0; } + } + } + } + programs { + program { + name: "prog/favorites/exist_mf"; + source: "favorites"; + signal: "favorites/exist_mf"; + script { + set_state (PART:"layout/most_frequent", "default", 0.0); + set_state (PART:"base", "default", 0.0); + set_state (PART:"layout/favorites/title", "default", 0.0); + } + } + program { + name: "prog/favorites/no_mf"; + source: "favorites"; + signal: "favorites/no_mf"; + script { + set_state (PART:"layout/most_frequent", "hide", 0.0); + set_state (PART:"base", "hide", 0.0); + set_state (PART:"layout/favorites/title", "hide", 0.0); + } + } + } + } + group { + name: "most_frequent"; + styles { + style { + name: "Frequent_contact_01"; + base: "font=SLP:style=Medium text_class=slp_medium font_size=32 color=#1D6495"; + } + } + parts { + part { + name: "bg"; + type: RECT; + description { + state: "default" 0.0; + color: FAVORITE_BG_COLOR; + } + } + part { + name: "base"; + type: RECT; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + } + part { + name: "most_frequent/title"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + min: 0 38; + fixed: 0 1; + rel1 { relative: 16.0/720.0 18.0/293.0; to: "base"; } + rel2 { relative: 1.0 18.0/293.0; to: "base"; } + text { + style: "Frequent_contact_01"; + } + } + } + part { + name: "most_frequent/layout"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: 16.0/720.0 1.0; to: "most_frequent/title"; } + rel2 { relative: 1.0 1.0; to: "base"; } + color: FAVORITE_BG_COLOR; + } + } + } + } +} |