Change memo menu icon
[apps/home/memo.git] / edc / list.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 group{
20     name: "list_frame";
21     parts{
22         PART_BG("bg") /* unknown x 480 */
23         PART_V_PIXEL_RECT("search.bg", 88, "bg", 0.0, 0.0)
24         PART_SWALLOW("elm.swallow.search", "search.bg")
25         PART_SWALLOW_REL("elm.swallow.nocontent", 0.0, 1.0, "search.bg", 1.0, 1.0, "bg")
26         PART_SWALLOW_REL("elm.swallow.content", 0.0, 1.0, "search.bg", 1.0, 1.0, "bg")
27     }/* end part */
28     programs {
29         program {
30             name: "init";
31             signal: "load";
32             source: "";
33             script {
34                 SCRIPT_CUSTOM_PART(elm.swallow.nocontent);
35             }
36         } /* end program */
37         program
38         {
39             name:    "show_nocontent";
40             signal:  "show";
41             source:  "nocontent";
42             script {
43                 SCRIPT_SET_VISIBLE(elm.swallow.nocontent, 1);
44             }
45         }
46         program
47         {
48             name:    "hide_nocontent";
49             signal:  "hide";
50             source:  "nocontent";
51             script {
52                 SCRIPT_SET_VISIBLE(elm.swallow.nocontent, 0);
53             }
54         }
55     }/* end programs */
56 }
57
58 #define GL_STYLE(iStyle, iX2TextBlock) \
59 group { name: "elm/genlist/item/memo/"iStyle"/default"; \
60     alias: "elm/genlist/item_odd/memo/"iStyle"/default"; \
61     alias: "elm/genlist/item_compress/memo/"iStyle"/default"; \
62     alias: "elm/genlist/item_compress_odd/memo/"iStyle"/default"; \
63     data.item: "texts" "elm.text.date elm.text"; \
64     data.item: "contents" "elm.swallow.doodle"; \
65     data.item: "allow_slide" "1"; \
66     parts { \
67         PART_BG("bg") \
68         part \
69         { \
70             name: "elm.text"; \
71             type: TEXTBLOCK; \
72             mouse_events: 1; \
73             scale: 1; \
74             description \
75             { \
76                 state: "default" 0.0; \
77                 fixed: 1 0; \
78                 min: (iX2TextBlock-16) 56; \
79                 max: (iX2TextBlock-16) 56; \
80                 align: 0 0; \
81                 rel1 { relative: 16/720 16/128; to: "bg"; } \
82                 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
83                 text \
84                 { \
85                     style: "textblock_style_main"; \
86                     min: 1 1; \
87                 } \
88             } \
89         } \
90         PART_TEXT_DATE("elm.text.date", 16/720, (128-16-32)/128, "bg", (720-16)/720, (128-16)/128, "bg", "", "SLP:style=Medium", "slp_medium", 32) \
91         PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
92         /* margin */ \
93         GENLIST_PART_BOTTOM_LINE \
94         PART_EVENT_RECT("event", "bg") \
95     }/* end parts */ \
96     programs {\
97         program {\
98             name: "init";\
99             signal: "load";\
100             source: "";\
101             script {\
102                 SCRIPT_CUSTOM_PART(bg);\
103                 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
104             }\
105         } /* end program */\
106         program \
107         {\
108             name:    "go_active"; \
109             signal:  "elm,state,selected"; \
110             source:  "elm"; \
111             script {\
112                 SCRIPT_SET_COLOR(bg, 42, 137, 194, 255);\
113             }\
114             transition: LINEAR 0.1; \
115         } \
116         program \
117         { \
118             name:    "go_passive"; \
119             signal:  "elm,state,unselected"; \
120             source:  "elm"; \
121             script {\
122                 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
123             }\
124             transition: LINEAR 0.1; \
125         }\
126     }\
127 }
128
129 GL_STYLE("list", (720-16))
130 GL_STYLE("list_draw", (720-16-96-16))