tizen 2.3 release
[apps/home/settings.git] / resource / setting-proc.edc
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #include "../setting-common/include/setting-common-data-edj-define.h"
23
24 images
25 {
26         image: "org.tizen.setting.png" LOSSY 95;
27         image: "org.tizen.setting.png" LOSSY 95;
28 }
29
30 collections
31 {
32         styles
33         {
34                 style { name: "textblock_style_center_23";
35                         base: "font=Tizen:style=Regular font_size=23 align=left color=#E8E8E8 wrap=word text_class=tizen";
36                         tag:  "br" "\n";
37                         tag:  "hilight" "+ font=Tizen:style=Bold";
38                         tag:  "b" "+ font=Tizen:style=Bold";
39                         tag:  "whitecolor" "+ color=#E8E8E8";
40                         tag:  "tab" "\t";
41                 }
42                 style { name: "textblock_style_center_30";
43                         base: "font=Tizen:style=Regular font_size=30 align=left color=#E8E8E8 wrap=word text_class=tizen";
44                         tag:  "br" "\n";
45                         tag:  "hilight" "+ font=Tizen:style=Bold";
46                         tag:  "b" "+ font=Tizen:style=Bold";
47                         tag:  "whitecolor" "+ color=#E8E8E8";
48                         tag:  "tab" "\t";
49                 }
50                 style { name: "textblock_style_center_24";
51                         base: "font=Tizen:style=Regular font_size=24 align=left color=#E8E8E8 wrap=word text_class=tizen";
52                         tag:  "br" "\n";
53                         tag:  "hilight" "+ font=Tizen:style=Bold";
54                         tag:  "b" "+ font=Tizen:style=Bold";
55                         tag:  "whitecolor" "+ color=#E8E8E8";
56                         tag:  "tab" "\t";
57                 }
58         }
59
60         group {
61                 name: "gengrid_item_area_toggle";
62                 parts {
63                         part {
64                                 name: "bg";
65                                 type: RECT;
66                                 scale: 1;
67                                 description {
68                                         state: "default" 0.0;
69                                         rel1 { relative: 0.02 0.0; offset: 0 0;}
70                                         rel2 { relative: 0.98 0.91; offset: 0 0;}
71                                 }
72                         }
73                         part {
74                                 name: "bg.capture";
75                                 type: SWALLOW;
76                                 scale: 1;
77                                 description {
78                                         fixed: 0 1;
79                                         color: 255 255 255 255;
80                                         state: "default" 0.0;
81                                         //rel1 { relative: 0.03 0.01; offset: 0 0;}
82                                         //rel2 { relative: 0.97 0.90; offset: 0 0;}
83                                         rel1 { relative: 0.02 0.00; offset: 0 0;}
84                                         rel2 { relative: 0.98 0.91; offset: 0 0;}
85                                 }
86                         }
87                         part {
88                                 name: "bg.img";
89                                 type: SWALLOW;
90                                 scale: 1;
91                                 description {
92                                         color: 255 255 255 40;
93                                         state: "default" 0.0;
94                                         rel1 { relative: 0.02 0.00; offset: 0 0;}
95                                         rel2 { relative: 0.98 0.91; offset: 0 0;}
96                                 }
97                         }
98                         part {
99                                 name: "bg.frame";
100                                 type: SWALLOW;
101                                 scale: 1;
102                                 description {
103                                         min: 116 116;
104                                         fixed: 1 1;
105                                         color: 8 8 8 8;
106                                         state: "default" 0.0;
107                                         rel1 { relative: 0.30 0.10; offset: 0 2;}
108                                         rel2 { relative: 0.65 0.70; offset: 0 0;}
109                                 }
110                                 description {
111                                         state: "with_recently_setting" 0.0;
112                                         inherit: "default" 0.0;
113                                 }
114                         }
115                         part {
116                                 name: "bg.blackframe";
117                                 type: SWALLOW;
118                                 scale: 1;
119                                 description {
120                                         color: 255 255 255 255;
121                                         state: "default" 0.0;
122                                         rel1 { relative: 0.02 0.00; offset: 0 0;}
123                                         rel2 { relative: 0.98 0.91; offset: 0 0;}
124                                 }
125                         }
126
127                         part {
128                                 name: "elm.swallow.icon";
129                                 type: SWALLOW;
130                                 scale: 1;
131                                 description {
132                                         state: "default" 0.0;
133                                         min: 92 92;
134                                         fixed: 1 1;
135                                         rel1 { relative: 0.30 0.10; offset: 0 2;}
136                                         rel2 { relative: 0.65 0.70; offset: 0 0;}
137                                 }
138                                 description {
139                                         state: "with_recently_setting" 0.0;
140                                         inherit: "default" 0.0;
141                                 }
142
143                         }
144
145                         /* toggle button */
146                         part {
147                                 name: "bottom.toggle";
148                                 type: SWALLOW;
149                                 //mouse_events: 1;
150                                 scale: 0;
151                                 description {
152                                         //min: 25 30;
153                                         //max: 25 30;
154                                         min: 40 40;
155                                         fixed: 1 1;
156                                         state: "default" 0.0;
157                                         rel1 { relative: 0.8 0.03; offset: 0 0;}
158                                         rel2 { relative: 1.0 0.25; offset: 0 0;}
159                                 }
160                         }
161                         part {
162                                 name: "top.toggle";
163                                 type: SWALLOW;
164                                 //mouse_events: 1;
165                                 scale: 0;
166                                 description {
167                                         //min: 25 30;
168                                         //max: 25 30;
169                                         min: 58 58;
170                                         fixed: 1 1;
171                                         state: "default" 0.0;
172                                         rel1 { relative: 0.0 0.0; offset: -10 -1;}
173                                         rel2 { relative: 0.0 0.0; offset: 48 57;}
174                                 }
175                         }
176                         part {
177                                 name: "bottom.icon";
178                                 type: SWALLOW;
179                                 //mouse_events: 1;
180                                 scale: 0;
181                                 description {
182                                         //min: 25 30;
183                                         //max: 25 30;
184                                         min: 40 40;
185                                         fixed: 1 1;
186                                         state: "default" 0.0;
187                                         rel1 { relative: 0.05 0.73; offset: 0 0;}
188                                         rel2 { relative: 0.18  0.86; offset: 0 0;}
189                                 }
190                         }
191                         part {
192                                 name: "bottom.text";
193                                 type: TEXTBLOCK;
194                                 scale: 1;
195                                 description {
196                                         min: 0 20;
197                                         fixed: 0 1;
198                                         //color: 255 255 255 255;
199                                         color: 255 255 255 255;
200                                         state: "default" 0.0;
201                                         rel1 { relative: 0.22  0.73; offset: 0 0;}
202                                         rel2 { relative: 0.75  0.86; offset: 0 0;}
203
204                                         text {
205                                                 //align: 0.5 0.5;
206                                                 min: 0 1;
207                                                 //font: "Tizen:style=Bold";
208                                                 //size: 30;
209                                                 //text_class:"tizen";
210                                                 style: textblock_style_center_30;
211                                         }
212                                 }
213                         }
214                         part {
215                                 name: "bottom.percent";
216                                 type: TEXTBLOCK;
217                                 scale: 1;
218                                 description {
219                                         min: 30 30;
220                                         fixed: 0 1;
221                                         //color: 255 255 255 255;
222                                         color: 255 255 255 255;
223                                         state: "default" 0.0;
224                                         rel1 { relative: 0.77  0.73; offset: 0 0;}
225                                         rel2 { relative: 0.91  0.86; offset: 0 0;}
226
227                                         text {
228                                                 //align: 0.5 0.5;
229                                                 min: 0 1;
230                                                 //font: "Tizen:style=Bold";
231                                                 //size: 30;
232                                                 //text_class:"tizen";
233                                                 style: textblock_style_center_24;
234                                         }
235                                 }
236                         }
237                         part {
238                                 name: "bottom.textblock";
239                                 type: TEXTBLOCK;
240                                 scale: 1;
241                                 description {
242                                         min: 0 23;
243                                         fixed: 0 1;
244                                         color: 255 255 255 255;
245                                         //color: 89 89 89 255;
246                                         state: "default" 0.0;
247                                         rel1 { relative: 0.20  0.73; offset: 0 0;}
248                                         rel2 { relative: 0.80  0.86; offset: 0 0;}
249
250                                         text {
251                                                 //align: 0.5 0.5;
252                                                 min: 0 1;
253                                                 //font: "Tizen:style=Bold";
254                                                 //size: 26;
255                                                 //text_class:"tizen";
256                                                 style: textblock_style_center_23;
257                                         }
258                                 }
259                         }
260                         SETTING_LAYOUT_FOCUS_PART("bg")
261                 }
262
263       programs {
264                         program {
265                                 name : "with_recently_setting";
266                                 signal : "with_recently_setting";
267                                 source : "gengrid_item";
268                                 action : STATE_SET "with_recently_setting" 0.0;
269                                 target : "elm.swallow.icon";
270                                 target : "bg.frame";
271                         }
272                         program {
273                                 name : "without_recently_setting";
274                                 signal : "without_recently_setting";
275                                 source : "gengrid_item";
276                                 action : STATE_SET "default" 0.0;
277                                 target : "elm.swallow.icon";
278                                 target : "bg.frame";
279                         }
280
281                          program { name: "go_mouse_down";
282                             signal: "mouse,down,1";
283                             source: "bg.img";
284                             action: STATE_SET "enabled" 0.0;
285                             target: "elm.swallow.icon";
286                             transition: ACCELERATE 0.2;
287                          }
288                          program { name: "go_mouse_up";
289                             signal: "mouse,up,1";
290                             source: "bg.img";
291                             action: STATE_SET "default" 0.0;
292                             target: "elm.swallow.icon";
293                             transition: DECELERATE 0.2;
294                          }
295
296                          SETTING_LAYOUT_FOCUS_PROGRAME
297                 }
298         }
299
300         group {
301                 name: "icon_with_circle_bg";
302                 parts {
303                         part {
304                                 name: "bg.frame";
305                                 type: SWALLOW;
306                                 scale: 1;
307                                 description {
308                                         min: 80 80;
309                                         fixed: 1 1;
310                                         color: 8 8 8 8;
311                                         state: "default" 0.0;
312                                         //rel1 { relative: 0.25 0.1; offset: 0 0;}
313                                         //rel2 { relative: 0.75 0.6; offset: 0 0;}
314                                         //rel1 { relative: 0.30 0.10; offset: 0 2;}
315                                         //rel2 { relative: 0.65 0.70; offset: 0 0;}
316                                 }
317
318                         }
319
320                         part {
321                                 name: "elm.swallow.icon";
322                                 type: SWALLOW;
323                                 scale: 1;
324                                 description {
325                                         state: "default" 0.0;
326                                         min: 72 72;
327                                         fixed: 1 1;
328                                         //rel1 { relative: 0.30 0.10; offset: 0 2;}
329                                         //rel2 { relative: 0.65 0.70; offset: 0 0;}
330                                 }
331                         }
332                 }
333         }
334
335         group { name: "elm/gengrid/item/default_grid_new/default";
336       data.item: "contents" "elm.swallow.icon elm.swallow.end";
337       images {
338          image : "org.tizen.setting.png" COMP;
339          image : "org.tizen.setting.png" COMP;
340          image : "org.tizen.setting.png" COMP;
341       }
342       parts {
343          part { name: "bg";
344             type: RECT;
345             description { state: "default" 0.0;
346                 //color: 8 8 8 8;
347                 //color: 0 0 0 20;
348                 //color: 0 0 0 27;
349                 //color: 0 0 0 52;
350             }
351          }
352          part { name: "left_top_padding";
353             type: RECT;
354             scale : 1;
355             description { state: "default" 0.0;
356                         color: 8 8 8 8;
357                min: 1 1;
358                align: 0.0 0.0;
359                fixed: 1 1;
360                rel1.to: "bg";
361                rel2 {
362                   relative: 0.0 0.0;
363                   to: "bg";
364                }
365             }
366          }
367          part { name: "right_bottom_padding";
368             type: RECT;
369             scale: 1;
370             description { state: "default" 0.0;
371                         color: 8 8 8 8;
372                min: 1 1;
373                align: 1.0 1.0;
374                visible: 0;
375                fixed: 1 1;
376                rel1 {
377                   relative: 1.0 1.0;
378                   to: "bg";
379                }
380                rel2.to: "bg";
381             }
382          }
383          part { name: "item_bg";
384             type: IMAGE;
385             description { state: "default" 0.0;
386                         color: 8 8 8 8;
387                rel1 {
388                   relative: 1.0 1.0;
389                   to: "left_top_padding";
390                }
391                rel2 {
392                   relative: 0.0 0.0;
393                   to: "right_bottom_padding";
394                }
395                image.normal: "org.tizen.setting.png";
396                image.border: 1 1 1 1;
397             }
398          }
399          part { name: "item_bg_left_top_padding";
400             type: RECT;
401             scale : 1;
402             description { state: "default" 0.0;
403                         color: 8 8 8 8;
404                //min: GENGRID_DEFAULT_ITEM_BG_LEFT_TOP_PADDING_INC;
405                //min: 1 1;
406                //min: 0 1;
407                min: 0 0;
408                align: 0.0 0.0;
409                visible: 0;
410                fixed: 1 1;
411                rel1.to: "item_bg";
412                rel2 {
413                   relative: 0.0 0.0;
414                   to: "item_bg";
415                }
416             }
417          }
418          part { name: "item_bg_right_bottom_padding";
419             type: RECT;
420             scale : 1;
421             description { state: "default" 0.0;
422                         color: 8 8 8 8;
423                //min: GENGRID_DEFAULT_ITEM_BG_RIGHT_BOTTOM_PADDING_INC;
424                //min: 1 1;
425                min: 0 1;
426                align: 1.0 1.0;
427                visible: 0;
428                fixed: 1 1;
429                rel1 {
430                   relative: 1.0 1.0;
431                   to: "item_bg";
432                }
433                rel2.to: "item_bg";
434             }
435          }
436          part { name: "item_real_bg";
437             description { state: "default" 0.0;
438                         color: 8 8 8 8;
439                rel1 {
440                   relative: 1.0 1.0;
441                   to: "item_bg_left_top_padding";
442                }
443                rel2 {
444                   relative: 0.0 0.0;
445                   to: "item_bg_right_bottom_padding";
446                }
447                image.normal: "org.tizen.setting.png";
448             }
449          }
450          part { name: "item_real_bg_left_top_padding";
451             type: RECT;
452             scale : 1;
453             description { state: "default" 0.0;
454                //min: GENGRID_DEFAULT_ITEM_REAL_BG_RIGHT_PADDING_INC;
455                min: 0 0;
456                align: 0.0 0.0;
457                visible: 0;
458                fixed: 1 1;
459                rel1.to: "item_real_bg";
460                rel2 {
461                   relative: 0.0 0.0;
462                   to: "item_real_bg";
463                }
464             }
465          }
466          part { name: "item_real_bg_right_bottom_padding";
467             type: RECT;
468             scale : 1;
469             description { state: "default" 0.0;
470                //min: GENGRID_DEFAULT_ITEM_REAL_BG_RIGHT_PADDING_INC;
471                min: 0 0;
472                align: 1.0 1.0;
473                fixed: 1 1;
474                visible: 0;
475                rel1 {
476                   relative: 1.0 1.0;
477                   to: "item_real_bg";
478                }
479                rel2.to: "item_real_bg";
480             }
481          }
482          part { name: "elm.swallow.icon";
483             type: SWALLOW;
484             description { state: "default" 0.0;
485                         color: 8 8 8 8;
486                rel1 {
487                   relative: 1.0 1.0;
488                   to: "item_real_bg_left_top_padding";
489                }
490                rel2 {
491                   relative: 0.0 0.0;
492                   to: "item_real_bg_right_bottom_padding";
493                }
494             }
495          }
496          part { name: "elm.swallow.end";
497             type: SWALLOW;
498             description { state: "default" 0.0;
499                         color: 8 8 8 8;
500                rel1.to: "elm.swallow.icon";
501                rel2.to: "elm.swallow.icon";
502             }
503          }
504          part { name: "reorder_bg";
505             type: RECT;
506             repeat_events: 1;
507             description { state: "default" 0.0;
508             //   color: GENGRID_PART_BG_COLOR_INC;
509                         color: 8 8 8 8;
510                rel1.to: "item_bg";
511                rel2.to: "item_bg";
512             }
513             description { state: "enabled" 0.0;
514                inherit: "default" 0.0;
515                //color: GENGRID_PART_REORDER_DEFAULT_BG_COLOR_INC;
516                //color: 0 0 0 77;
517                color: 8 8 8 77;
518             }
519          }
520          SETTING_LAYOUT_FOCUS_PART("bg")
521       }
522       programs {
523          program { name: "go_reorder_disabled";
524             signal: "elm,state,reorder,disabled";
525             source: "elm";
526             action: STATE_SET "default" 0.0;
527             target: "reorder_bg";
528             target: "focus_bg";
529             transition: ACCELERATE 0.3;
530          }
531          program { name: "go_reorder_enabled";
532             signal: "elm,state,reorder,enabled";
533             source: "elm";
534             action: STATE_SET "enabled" 0.0;
535             target: "reorder_bg";
536             target: "focus_bg";
537             transition: DECELERATE 0.3;
538          }
539       }
540    }
541
542 }