2012/08/21: tizen 2.0 beta
[apps/home/call-setting.git] / resource / call-setting.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 MAIN_W 480
18 #define MAIN_H 800
19 #define DIALOGUEGROUP_ITEM_TOP_TEXT_COLOR_1_INC 0 0 0 255
20 #define DIALOGUEGROUP_ITEM_BOTTOM_TEXT_COLOR_1_INC 213 129 31 255
21 #define DIALOGUEGROUP_ITEM_BOTTOM_TEXT_DISABLED_COLOR_1_INC 147 120 98 255
22 #define DIALOGUEGROUP_ITEM_PRESSED_TEXT_COLOR_INC 255 255 255 255
23 #define DIALOGUEGROUP_ITEM_PRESSED_TEXT_COLOR_INC 255 255 255 255
24
25 #define DIALOGUEGROUP_ITEM_SINGLE_TEXT_COLOR_INC 0 0 0 255
26 #define DIALOGUEGROUP_ITEM_DISABLED_TEXT_COLOR_INC 163 157 138 255
27
28 collections {
29         group {
30                 name: "nocontents";
31                 parts {
32                         part { name: "bg";
33                                 mouse_events: 0;
34                                 type: RECT;
35                                 description { state: "default" 0.0;
36                                         visible: 1;
37                                         rel1 { relative: 0.0 0.0;}
38                                         rel2 { relative: 1.0 1.0;}
39                                         color: 0 0 0 0;
40                                 }
41                         }
42
43                         part {
44                                 name: "contents";
45                                 type: SWALLOW;
46                                 mouse_events: 1;
47                                 description {
48                                         state: "default" 0.0;
49                                 }
50                         }
51                 }
52         }
53
54         group {
55                 name: "toolbar";
56                 parts {
57                         part { 
58                                 name: "background";
59                                 type: RECT;
60                                 scale: 1;
61                                 description {
62                                         state: "default" 0.0;
63                                         rel1 { relative: 0.0 0.0; }
64                                         rel2 { relative: 1.0 1.0; }
65                                         color: 0 0 0 0;
66                                 }
67                         }
68
69                         part {
70                                 name: "elm.swallow.contents";
71                                 type: SWALLOW;
72                                 scale: 1;
73                                 description {
74                                         state: "default" 0.0;
75                                         visible: 1;
76                                         rel1 { relative: 0.0 0.0; to:"background"; }
77                                         rel2 { relative: 1.0 0.0; to_x: "background"; to_y:"bottom_padding"; }
78                                 }
79                                 description {
80                                         state: "show_content2" 0.0;
81                                         visible: 0;
82                                         rel1 { relative: 0.0 0.0; to:"background"; }
83                                         rel2 { relative: 1.0 0.0; to_x: "background"; to_y:"bottom_padding"; }
84                                 }
85                         }
86
87                         part { 
88                                 name: "elm.swallow.contents2";
89                                 type: SWALLOW;
90                                 scale: 1;
91                                 description {
92                                         state: "default" 0.0;
93                                         visible: 0;                                     
94                                         rel1 { relative: 0.0 0.0; to:"background"; }
95                                         rel2 { relative: 1.0 0.0; to_x: "background"; to_y:"bottom_padding"; }
96                                 }
97                                 description {
98                                         state: "show_content2" 0.0;
99                                         visible: 1;
100                                         rel1 { relative: 0.0 0.0; to:"background"; }
101                                         rel2 { relative: 1.0 0.0; to_x: "background"; to_y:"bottom_padding"; }
102                                 }
103                         }
104
105                         part {
106                                 name: "bottom_padding";
107                                 type: RECT;
108                                 mouse_events: 0;
109                                 scale: 1;
110                                 description {
111                                         state: "default" 0.0;
112                                         min: 0 0;
113                                         fixed: 0 1;
114                                         align: 0.5 1.0;
115                                         rel1 { relative: 0.0 1.0; to: "background"; }
116                                         rel2 { relative: 1.0 1.0; to: "background"; }
117                                         color: 0 0 0 0;
118                                 }
119
120                                 description {
121                                         state: "padding" 0.0;
122                                         inherit: "default" 0.0;
123                                         min: 0 82;
124                                 }
125                         }
126
127                         part {
128                                 name: "elm.swallow.toolbar";
129                                 type: SWALLOW;
130                                 mouse_events: 1;
131                                 scale: 1;
132                                 description {
133                                         state: "default" 0.0;
134                                         min: 0 86;
135                                         fixed: 0 1;
136                                         align: 0.5 1.0;
137                                         rel1 { relative: 0.0 1.0; }
138                                         rel2 { relative: 1.0 1.0; }
139                                 }
140                         }
141                 }
142
143                 programs {
144                         program {
145                                 name: "bottom_padding_content_area";
146                                 signal: "elm,layout,content,bottom_padding";
147                                 source: "layout";
148                                 action: STATE_SET "padding" 0.0;
149                                 target: "bottom_padding";
150                         }
151
152                         program {
153                                 name: "default_content_area";
154                                 signal: "elm,layout,content,default";
155                                 source: "layout";
156                                 action: STATE_SET "default" 0.0;
157                                 target: "bottom_padding";
158                         }
159
160                         program {
161                                 name: "show_contents1";
162                                 signal: "show,content1";
163                                 source: "code";
164                                 action: STATE_SET "default" 0.0;
165                                 target: "elm.swallow.contents";
166                                 target: "elm.swallow.contents2";
167                         }
168
169                         program {
170                                 name: "show_contents2";
171                                 signal: "show,content2";
172                                 source: "code";
173                                 action: STATE_SET "show_content2" 0.0;
174                                 target: "elm.swallow.contents";
175                                 target: "elm.swallow.contents2";
176                         }
177                 }
178         }
179
180         group {
181                 name: "video_call_image";
182
183                 parts {
184                         /* background */
185                         part {
186                                 name: "bg";
187                                 type: RECT;
188                                 scale: 1;
189                                 description {
190                                         state: "default" 0.0;
191                                         rel1 { relative: 0.0 0.0;}
192                                         rel2 { relative: 1.0 1.0;}
193                                         color: 0 0 0 0;
194                                 }
195                         }
196
197                         part {
198                                 name: "swallow.image.bg";
199                                 type: RECT;
200                                 mouse_events: 0;
201                                 scale: 1;
202                                 description {
203                                         state: "default" 0.0;
204                                         rel1 { relative: 4/480 61/800; offset: 0 0; to:"bg";}
205                                         rel2 { relative: 476/480 449/800; offset: 0 0; to:"bg";}
206                                         color: 0 0 0 0;
207                                 }
208                         }
209
210                         part {
211                                 name: "swallow.image";
212                                 type: SWALLOW;
213                                 mouse_events: 0;
214                                 scale: 1;
215                                 description {
216                                         state: "default" 0.0;
217                                         min: 460 376;
218                                         fixed: 1 1;
219                                         align: 0.5 0.5;
220                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "swallow.image.bg";}
221                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "swallow.image.bg";}
222
223                                 }
224                         }
225
226                         part {
227                                 name: "elm.swallow.contents";
228                                 type    : SWALLOW;
229                                 mouse_events: 1;
230                                 scale: 1;
231                                 description {
232                                         state: "default" 0.0;
233                                         fixed: 0 1;
234                                         align   : 0.5 1.0;
235                                         rel1 { relative: 0.0 493/800; }
236                                         rel2 { relative: 1.0 1.0; to : "elm.swallow.toolbar";}
237                                 }
238                         }
239
240                         part {
241                                 name : "elm.swallow.toolbar";
242                                 type: SWALLOW;
243                                 mouse_events: 1;
244                                 scale: 1;
245                                 description {
246                                         state: "default" 0.0;
247                                         min: 0 86;
248                                         fixed: 0 1;
249                                         align: 0.5 1.0;
250                                         rel1 { relative: 0.0 1.0; }
251                                         rel2 { relative: 1.0 1.0; }
252                                 }
253                         }
254
255                         part {
256                                 name: "swallow.image.bg.hd";
257                                 type: RECT;
258                                 mouse_events: 0;
259                                 scale: 1;
260                                 description {
261                                         state: "default" 0.0;
262                                         rel1 { relative: 16/720 98/1280; offset: 0 0; to:"bg";}
263                                         rel2 { relative: 704/720 698/1280; offset: 0 0; to:"bg";}
264                                         color: 0 0 0 0;
265                                 }
266                         }
267
268                         part {
269                                 name: "swallow.image.hd";
270                                 type: SWALLOW;
271                                 mouse_events: 0;
272                                 scale: 1;
273                                 description {
274                                         state: "default" 0.0;
275                                         min: 688 600;
276                                         fixed: 1 1;
277                                         align: 0.5 0.5;
278                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "swallow.image.bg.hd";}
279                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "swallow.image.bg.hd";}
280
281                                 }
282                         }
283
284                         part {
285                                 name: "elm.swallow.contents.hd";
286                                 type    : SWALLOW;
287                                 mouse_events: 1;
288                                 scale: 1;
289                                 description {
290                                         state: "default" 0.0;
291                                         fixed: 0 1;
292                                         align   : 0.5 1.0;
293                                         rel1 { relative: 0.0 716/1280; }
294                                         rel2 { relative: 1.0 1.0; to : "elm.swallow.toolbar.hd";}
295                                 }
296                         }
297
298                         part {
299                                 name : "elm.swallow.toolbar.hd";
300                                 type: SWALLOW;
301                                 mouse_events: 1;
302                                 scale: 1;
303                                 description {
304                                         state: "default" 0.0;
305                                         min: 0 114;
306                                         fixed: 0 1;
307                                         align: 0.5 1.0;
308                                         rel1 { relative: 0.0 1.0; }
309                                         rel2 { relative: 1.0 1.0; }
310                                 }
311                         }
312                 }
313         }
314
315         group { name, "dialoguegroup/contact";
316
317                 parts {
318                         part { name, "base";
319                                 type, RECT;
320                                 description {
321                                         state, "default" 0.0;
322                                         color, 0 0 0 0;
323                                 }
324                         }
325                         part { name, "pad/right";
326                                 type, RECT;
327                                 scale, 1;
328                                 description {
329                                         state, "default" 0.0;
330                                         min, 5 0;
331                                         fixed, 1 0;
332                                         rel1 { relative , 1.0 1.0; to, "base"; }
333                                         rel2.to, "base";
334                                         align, 1.0 1.0;
335                                         color, 0 0 0 0;
336                                 }
337                         }
338                         part { name, "button/base";
339                                 type, SWALLOW;
340                                 scale, 1;
341                                 description {
342                                         state, "default" 0.0;
343                                         min, 74 0;
344                                         max, 74 0;
345                                         fixed, 1 0;
346                                         rel1 {
347                                                 relative, 0.0 0.0;
348                                                 to_x, "pad/right";
349                                                 to_y, "base";
350                                         }
351                                         rel2 {
352                                                 relative, 0.0 0.0;
353                                                 to, "pad/right";
354                                         }
355                                         align, 1.0 0.5;
356                                 }
357                         }
358                         part { name, "button/sw";
359                                 type, SWALLOW;
360                                 scale, 1;
361                                 description {
362                                         state, "default" 0.0;
363                                         min, 74 74;
364                                         max, 74 74;
365                                         fixed, 1 1;
366                                         rel1 { relative, 0.0 0.5; to, "button/base"; }
367                                         rel2 { relative, 1.0 0.5; to, "button/base"; }
368                                         align, 1.0 0.5;
369                                 }
370                         }
371                         part { name, "pad/button/left";
372                                 type, RECT;
373                                 description {
374                                         min, 10 0;
375                                         max, 10 0;
376                                         fixed, 1 0;
377                                         state, "default" 0.0;
378                                         align, 1.0 0.5;
379                                         rel1 { relative , 0.0 0.0; to, "button/sw"; }
380                                         rel2 { relative , 0.0 0.0; to, "button/sw"; }
381                                 }
382                         }
383                         part { name, "editfield/sw";
384                                 type, SWALLOW;
385                                 description {
386                                         state, "default" 0.0;
387                                         align, 1.0 0.5;
388                                         rel1.to, "base";
389                                         rel2 {
390                                                 relative, 0.0 1.0;
391                                                 to_x, "pad/button/left";
392                                                 to_y, "base";
393                                         }
394                                 }
395                         }
396                 }
397         }
398 }