2012/08/21: tizen 2.0 beta
[apps/home/call-setting.git] / theme / call-setting-theme.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.tizenopensource.org/license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #define GENLIST_HEIGHT_113_INC 113
18 #define GENLIST_PADDING_16_INC 16
19 #define GENLIST_PADDING_32_INC 32
20 #define GENLIST_SIZE_133_INC 420
21 #define GENLIST_PART_FONT_LIST_SUB_TEXT_COLOR_INC 129 129 129 255
22 #define GENLIST_FONT_32_INC 32
23 #define GENLIST_PART_TEXT_PRESS_COLOR_INC 249 249 249 255
24 #define GENLIST_SIZE_32_INC 32
25 #define GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC 249 249 249 255
26 #define GENLIST_FONT_44_INC 44
27 #define GENLIST_PART_BG_COLOR_INC 0 0 0 255
28 #define GENLIST_PART_LIST_BG_COLOR_INC 0 0 0 255
29 #define GENLIST_PART_LIST_PRESS_COLOR_INC 0 140 210 255
30 #define GENLIST_PART_LIST_LINE_COLOR_INC 68 68 68 255
31 #define GENLIST_PART_DISCLIP_COLOR_INC 255 255 255 64
32 #define GENLIST_PADDING_12_INC 12
33 #define GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC 68 68 68 255
34
35 #define GENLIST_PART_BASE( param_item_height ) \
36          part { name: "base"; \
37             type: RECT; \
38             repeat_events: 1; \
39             scale: 1; \
40             description { state: "default" 0.0; \
41                min: 0 param_item_height; \
42                color: GENLIST_PART_BG_COLOR_INC; \
43             } \
44          }
45
46 #define GENLIST_PART_BG_IMAGE \
47          part { name: "bg_image"; \
48             type: RECT; \
49             clip_to: "disclip"; \
50             mouse_events: 0; \
51             description { state: "default" 0.0; \
52                color: GENLIST_PART_LIST_BG_COLOR_INC; \
53             } \
54             description { state: "selected" 0.0; \
55                inherit: "default" 0.0; \
56                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
57             } \
58          }
59
60 #define GENLIST_PART_BOTTOM_LINE \
61          part { name: "bottom_line"; \
62             type: RECT; \
63             mouse_events: 0; \
64             description { state: "default" 0.0; \
65                min: 0 1; \
66                fixed: 0 1; \
67                visible: 1; \
68                color: GENLIST_PART_LIST_LINE_COLOR_INC; \
69                rel1 { \
70                   relative: 0.0 1.0; \
71                   offset: 0 -1; \
72                } \
73             } \
74          }
75
76 #define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
77          part { name: "elm.padding.left"; \
78             type: RECT; \
79             scale: 1; \
80             description { state: "default" 0.0; \
81                min: param_padding_size 0; \
82                fixed: 1 0; \
83                visible: 0; \
84                rel2.relative: 0.0 1.0; \
85                align: 0.0 0.0; \
86             } \
87          }
88
89 #define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
90        part { name: "elm.padding.right"; \
91             type: RECT; \
92             scale: 1; \
93             description { state: "default" 0.0; \
94                min: param_padding_size 0; \
95                fixed: 1 0; \
96                visible: 0; \
97                rel1.relative: 1.0  0.0; \
98                align: 1.0 0.0; \
99             } \
100          }
101
102 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
103             description { state: "flip_enabled" 0.0; \
104                inherit: "default" 0.0; \
105                visible: 0; \
106             }
107
108 #define GENLIST_PART_FLIP \
109          part { name: "elm.flip.content"; \
110             clip_to: "disclip"; \
111             type: SWALLOW; \
112             mouse_events: 1; \
113             scale: 1; \
114             description { state: "default" 0.0; \
115                visible: 0; \
116                fixed: 1 1; \
117                rel1 { \
118                   relative: 1.0  0.5; \
119                   to_x: "elm.padding.left"; \
120                } \
121                rel2 { \
122                   relative: 0.0  0.5; \
123                   to_x: "elm.padding.right"; \
124                } \
125             } \
126             description { state: "flip_enabled" 0.0; \
127                inherit: "default" 0.0; \
128                visible: 1; \
129             } \
130          }
131
132 #define GENLIST_PART_DISCLIP \
133         part { name: "disclip"; \
134             type: RECT; \
135             description { state: "default" 0.0; \
136             } \
137             description { state: "disabled" 0.0; \
138                inherit: "default" 0.0; \
139                color: GENLIST_PART_DISCLIP_COLOR_INC; \
140             } \
141          }
142
143 #define GENLIST_PROGRAM_FLIP_2TEXT \
144          program { name: "flip_enabled"; \
145             signal: "elm,state,flip,enabled"; \
146             source: "elm"; \
147             action: STATE_SET "flip_enabled" 0.0; \
148             target: "elm.text.1"; \
149             target: "elm.text.2"; \
150             target: "elm.flip.content"; \
151          } \
152          program { name: "flip_disabled"; \
153             signal: "elm,state,flip,disabled"; \
154             source: "elm"; \
155             action: STATE_SET "default" 0.0; \
156             target: "elm.text.1"; \
157             target: "elm.text.2"; \
158             target: "elm.flip.content"; \
159          }
160
161 #define GENLIST_PART_DIALOGUE_ITEM \
162          part { name: "elm.rect.dialogue"; \
163             type: RECT; \
164             scale: 1; \
165             description { state: "default" 0.0; \
166                min: GENLIST_PADDING_12_INC 0; \
167                fixed: 1 0; \
168                color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
169                rel2.relative: 0.0 1.0; \
170                align: 0.0 0.0; \
171             } \
172          }
173
174 collections {
175         group {
176                 name: "elm/dialogueitem/base/ciss/dialoguegroup_hidden_three_button";
177                 parts {
178                         part { name: "bg";
179                                 type: RECT;
180                                 scale: 1;
181                                 description {
182                                         state: "default" 0.0;
183                                         min: 0 140;
184                                         color: 0 0 0 0;
185                                 }
186                         }
187                         part { name: "button1";
188                                 type: SWALLOW;
189                                 scale: 1;
190                                 description { 
191                                         state: "default" 0.0;
192                                         rel1.relative: 5/100 1/11;
193                                         rel2.relative: 47.5/100 5/11;
194                                 }       
195                         }
196                         part { name: "button2";
197                                 type: SWALLOW;
198                                 scale: 1;
199                                 description { 
200                                         state: "default" 0.0;
201                                         rel1.relative: 52.5/100 1/11;
202                                         rel2.relative: 95/100 5/11;
203                                 }       
204                         }
205                         part { name: "button3";
206                                 type: SWALLOW;
207                                 scale: 1;
208                                 description { 
209                                         state: "default" 0.0;
210                                         rel1.relative: 5/100 6/11;
211                                         rel2.relative: 95/100 10/11;
212                                 }       
213                         }
214                 }
215         }
216
217         group {
218                 name: "elm/dialogueitem/base/ciss/dialoguegroup_hidden_two_button";
219                 parts {
220                         part { name: "bg";
221                                 type: RECT;
222                                 scale: 1;
223                                 description {
224                                         state: "default" 0.0;
225                                         min: 0 80;
226                                         color: 0 0 0 0;
227                                 }
228                         }
229                         part { name: "button1";
230                                 type: SWALLOW;
231                                 scale: 1;
232                                 description { 
233                                         state: "default" 0.0;
234                                         rel1.relative: 5/100 1/11;
235                                         rel2.relative: 47.5/100 10/11;
236                                 }       
237                         }
238                         part { name: "button2";
239                                 type: SWALLOW;
240                                 scale: 1;
241                                 description { 
242                                         state: "default" 0.0;
243                                         rel1.relative: 52.5/100 1/11;
244                                         rel2.relative: 95/100 10/11;
245                                 }       
246                         }
247                 }
248         }
249
250    group {
251           name: "elm/genlist/item/ciss/2text_call_forward/default";
252       alias: "elm/genlist/item_odd/ciss/2text_call_forward/default";
253       alias: "elm/genlist/item_compress/ciss/2text_call_forward/default";
254       alias: "elm/genlist/item_compress_odd/ciss/2text_call_forward/default";
255       data.item: "stacking" "above";
256       data.item: "selectraise" "on";
257       data.item: "texts" "elm.text.1 elm.text.2";
258       data.item: "flips" "elm.flip.content";
259       parts {
260          GENLIST_PART_BASE(GENLIST_HEIGHT_113_INC)
261          GENLIST_PART_BG_IMAGE
262          GENLIST_PART_BOTTOM_LINE
263          GENLIST_PART_PADDING_LEFT(GENLIST_PADDING_32_INC)
264          GENLIST_PART_PADDING_RIGHT(GENLIST_PADDING_16_INC)
265          GENLIST_PART_DIALOGUE_ITEM
266
267          part { name: "elm.text.2";
268             clip_to: "disclip";
269             type: TEXT;
270             mouse_events: 0;
271             scale: 1;
272             description { state: "default" 0.0;
273                min: GENLIST_SIZE_133_INC 0;
274                fixed: 1 0;
275                rel1.to_x: "elm.padding.right";
276                rel2 {
277                   relative: 0.0 1.0;
278                   to_x: "elm.padding.right";
279                }
280                align: 1.0 0.5;
281                color: GENLIST_PART_FONT_LIST_SUB_TEXT_COLOR_INC;
282                text {
283                   font: "SLP:style=Medium";
284                   size: GENLIST_FONT_32_INC;
285                   min: 0 1;
286                   align: 1.0 0.5;
287                }
288             }
289             description { state: "selected" 0.0;
290                inherit: "default" 0.0;
291                color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
292             }
293             GENLIST_DESCRIPTION_FLIP_ENABLED
294          }
295          part { name: "elm.padding.text2.left";
296             clip_to: "disclip";
297             type: RECT;
298             mouse_events: 0;
299             scale: 1;
300             description { state: "default" 0.0;
301                min: GENLIST_SIZE_32_INC 0;
302                fixed: 1 0;
303                rel1.to_x: "elm.text.2";
304                rel2 {
305                   relative: 0.0 1.0;
306                   to_x: "elm.text.2";
307                }
308                visible: 0;
309                align: 1.0 0.5;
310             }
311          }
312          part { name: "elm.text.1";
313             clip_to: "disclip";
314             type: TEXT;
315             mouse_events: 0;
316             scale: 1;
317             description { state: "default" 0.0;
318                rel1 {
319                   relative: 1.0 0.0;
320                   to_x: "elm.padding.left";
321                }
322                rel2 {
323                   relative: 0.0 1.0;
324                   to_x: "elm.padding.text2.left";
325                }
326                align: 0.0 0.5;
327                color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
328                text {
329                   font: "SLP:style=Roman";
330                   size: GENLIST_FONT_44_INC;
331                   min: 0 1;
332                   align: 0.0 0.5;
333                }
334             }
335             description { state: "selected" 0.0;
336                inherit: "default" 0.0;
337                color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
338             }
339             GENLIST_DESCRIPTION_FLIP_ENABLED
340          }
341          GENLIST_PART_FLIP
342          GENLIST_PART_DISCLIP
343       }
344       programs {
345          program { name: "go_active";
346             signal: "elm,state,selected";
347             source: "elm";
348             action: STATE_SET "selected" 0.0;
349             target: "bg_image";
350             target: "elm.text.1";
351             target: "elm.text.2";
352          }
353          program { name: "go_passive";
354             signal: "elm,state,unselected";
355             source: "elm";
356             action: STATE_SET "default" 0.0;
357             target: "bg_image";
358             target: "elm.text.1";
359             target: "elm.text.2";
360             transition: LINEAR 0.1;
361          }
362          program { name: "go_disabled";
363             signal: "elm,state,disabled";
364             source: "elm";
365             action: STATE_SET "disabled" 0.0;
366             target: "disclip";
367          }
368          program { name: "go_enabled";
369             signal: "elm,state,enabled";
370             source: "elm";
371             action: STATE_SET "default" 0.0;
372             target: "disclip";
373          }
374          GENLIST_PROGRAM_FLIP_2TEXT
375       }
376    }
377  }