tizen 2.3.1 release
[framework/uifw/elementary.git] / data / themes / widgets / ctxpopup.edc
1 ///////////////////////////////////////////////////////////////////////////////
2 group { name: "elm/ctxpopup/bg/default";
3    parts {
4       part { name: "ctxpopup_bg";
5          type: RECT;
6          mouse_events: 1;
7          description { state: "default" 0.0;
8             color: 0 0 0 0;
9          }
10          description { state: "visible" 0.0;
11             inherit: "default" 0.0;
12             color: 0 0 0 64;
13          }
14       }
15    }
16    programs {
17       program { name: "clicked_event";
18          signal: "mouse,clicked,1";
19          source: "ctxpopup_bg";
20          action: SIGNAL_EMIT "elm,action,click" "";
21       }
22       program { name: "show";
23          signal: "elm,state,show";
24          source: "elm";
25          action: STATE_SET "visible" 0.0;
26          target: "ctxpopup_bg";
27          transition: LINEAR 0.25;
28       }
29       program { name: "hide";
30          signal: "elm,state,hide";
31          source: "elm";
32          action: STATE_SET "default" 0.0;
33          target: "ctxpopup_bg";
34          transition: LINEAR 0.25;
35       }
36    }
37 }
38 ///////////////////////////////////////////////////////////////////////////////
39 group { name: "elm/ctxpopup/base/default";
40    images {
41       image: "bt_base2.png" COMP;
42       image: "bt_hilight.png" COMP;
43       image: "bt_shine.png" COMP;
44    }
45    parts {
46       part { name: "arrow_area_left";
47          type: RECT;
48          mouse_events: 0;
49          clip_to: "ctxpopup_clip";
50          description { state: "default" 0.0;
51             visible: 0;
52             min: 20 0;
53             fixed: 1 1;
54             align: 1 0.5;
55             rel1 {
56                to_y: "base";
57             }
58             rel2 {
59                relative:0 1;
60                to:"base";
61             }
62          }
63       }
64       part { name: "arrow_area_right";
65          type: RECT;
66          mouse_events: 0;
67          clip_to: "ctxpopup_clip";
68          description { state: "default" 0.0;
69             visible: 0;
70             min: 20 0;
71             fixed: 1 1;
72             align: 0 0.5;
73             rel1 {
74                relative: 1 0;
75                to:"base";
76             }
77             rel2 {
78                to_y: "base";
79             }
80          }
81       }
82       part { name: "arrow_area_up";
83          type: RECT;
84          mouse_events: 0;
85          clip_to: "ctxpopup_clip";
86          description { state: "default" 0.0;
87             visible: 0;
88             min: 0 20;
89             fixed: 1 1;
90             align: 0.5 1;
91             rel1 {
92                to_x: "base";
93             }
94             rel2 {
95                relative: 1 0;
96                to:"base";
97             }
98          }
99       }
100       part { name: "arrow_area_down";
101          type: RECT;
102          mouse_events: 0;
103          clip_to: "ctxpopup_clip";
104          description { state: "default" 0.0;
105             visible: 0;
106             min: 0 20;
107             fixed: 1 1;
108             align: 0.5 0;
109             rel1 {
110                relative: 0 1;
111                to:"base";
112             }
113             rel2 {
114                to_x: "base";
115             }
116          }
117       }
118       part { name: "elm.swallow.arrow_up";
119          type: SWALLOW;
120          mouse_events: 0;
121          scale: 1;
122          clip_to: "ctxpopup_clip";
123          dragable {
124             x: 1 1 0;
125             y: 1 1 0;
126             confine: "arrow_area_up";
127          }
128          description { state: "default" 0.0;
129             min: 36 20;
130             fixed: 1 1;
131             visible: 1;
132          }
133       }
134       part { name: "elm.swallow.arrow_down";
135          type: SWALLOW;
136          mouse_events: 0;
137          scale: 1;
138          clip_to: "ctxpopup_clip";
139          dragable {
140             x: 1 1 0;
141             y: 1 1 0;
142             confine: "arrow_area_down";
143          }
144          description { state: "default" 0.0;
145             min: 36 20;
146             fixed: 1 1;
147             visible: 1;
148          }
149       }
150       part { name: "elm.swallow.arrow_left";
151          type: SWALLOW;
152          mouse_events: 0;
153          scale: 1;
154          clip_to: "ctxpopup_clip";
155          dragable {
156             x: 1 1 0;
157             y: 1 1 0;
158             confine: "arrow_area_left";
159          }
160          description { state: "default" 0.0;
161             min: 20 36;
162             fixed: 1 1;
163             visible: 1;
164          }
165       }
166       part { name: "elm.swallow.arrow_right";
167          type: SWALLOW;
168          mouse_events: 0;
169          scale: 1;
170          clip_to: "ctxpopup_clip";
171          dragable {
172             x: 1 1 0;
173             y: 1 1 0;
174             confine: "arrow_area_right";
175          }
176          description { state: "default" 0.0;
177             min: 20 36;
178             fixed: 1 1;
179             visible: 1;
180          }
181       }
182       part { name: "base";
183          scale: 1;
184          clip_to: "ctxpopup_clip";
185          description { state: "default" 0.0;
186             rel1.offset: -3 -3;
187             rel2.offset: 3 3;
188             image { normal: "bt_base2.png";
189                border: 7 7 7 7;
190             }
191          }
192       }
193       part { name: "over1";
194          scale: 1;
195          clip_to: "ctxpopup_clip";
196          description { state: "default" 0.0;
197             rel1.to: "base";
198             rel2.to: "base";
199             rel2.relative: 1.0 0.5;
200             image { normal: "bt_hilight.png";
201                border: 7 7 7 0;
202             }
203          }
204       }
205       part { name: "over2";
206          scale: 1;
207          clip_to: "ctxpopup_clip";
208          description { state: "default" 0.0;
209             rel1.to: "base";
210             rel2.to: "base";
211             image { normal: "bt_shine.png";
212                border: 7 7 7 7;
213             }
214          }
215       }
216       part { name: "elm.swallow.content";
217          type: SWALLOW;
218          clip_to: "ctxpopup_clip";
219          description { state: "default" 0.0;
220             rel1 { to:"base"; offset: 4 4; }
221             rel2 { to:"base"; offset: -5 -5; }
222          }
223       }
224       part { name: "ctxpopup_clip";
225          type: RECT;
226          description { state: "default" 0.0;
227             color: 255 255 255 0;
228             rel1 { to:"base"; relative: 0 0; }
229             rel2 { to:"base"; relative: 0 1; }
230          }
231          description { state: "show_up" 0.0;
232             color: 255 255 255 0;
233             rel1 { to:"arrow_area_down"; relative: 0 1; }
234             rel2 { to:"arrow_area_down"; relative: 1 1; }
235          }
236          description { state: "show_left" 0.0;
237             color: 255 255 255 0;
238             rel1 { to:"arrow_area_right"; relative: 1 0; }
239             rel2 { to:"arrow_area_right"; relative: 1 1; }
240          }
241          description { state: "show_right" 0.0;
242             color: 255 255 255 0;
243             rel1 { to:"arrow_area_left"; relative: 0 0; }
244             rel2 { to:"arrow_area_left"; relative: 0 1; }
245          }
246          description { state: "show_down" 0.0;
247             color: 255 255 255 0;
248             rel1 { to:"arrow_area_up"; relative: 0 0; }
249             rel2 { to:"arrow_area_up"; relative: 1 0; }
250          }
251          description { state: "hide_up" 0.0;
252             color: 255 255 255 255;
253             rel1 { to:"arrow_area_down"; relative: 0 1; }
254             rel2 { to:"arrow_area_down"; relative: 1 1; }
255          }
256          description { state: "hide_left" 0.0;
257             color: 255 255 255 255;
258             rel1 { to:"arrow_area_right"; relative: 1 0; }
259             rel2 { to:"arrow_area_right"; relative: 1 1; }
260          }
261          description { state: "hide_right" 0.0;
262             color: 255 255 255 255;
263             rel1 { to:"arrow_area_left"; relative: 0 0; }
264             rel2 { to:"arrow_area_left"; relative: 0 1; }
265          }
266          description { state: "hide_down" 0.0;
267             color: 255 255 255 255;
268             rel1 { to:"arrow_area_up"; relative: 0 0; }
269             rel2 { to:"arrow_area_up"; relative: 1 0; }
270          }
271          description { state: "visible" 0.0;
272             color: 255 255 255 255;
273             rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
274             rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
275          }
276       }
277    }
278    programs {
279       program { name: "show";
280          signal: "elm,state,show";
281          source: "elm";
282          action: STATE_SET "visible" 0.0;
283          transition: LINEAR 0.25;
284          target: "ctxpopup_clip";
285       }
286       program { name: "show_up";
287          signal: "elm,state,show,up";
288          source: "elm";
289          action: STATE_SET "show_up" 0.0;
290          transition: LINEAR 0.25;
291          target: "ctxpopup_clip";
292       }
293       program { name: "show_left";
294          signal: "elm,state,show,left";
295          source: "elm";
296          action: STATE_SET "show_left" 0.0;
297          transition: LINEAR 0.25;
298          target: "ctxpopup_clip";
299       }
300       program { name: "show_right";
301          signal: "elm,state,show,right";
302          source: "elm";
303          action: STATE_SET "show_right" 0.0;
304          transition: LINEAR 0.25;
305          target: "ctxpopup_clip";
306       }
307       program { name: "show_down";
308          signal: "elm,state,show,down";
309          source: "elm";
310          action: STATE_SET "show_down" 0.0;
311          transition: LINEAR 0.25;
312          target: "ctxpopup_clip";
313       }
314       program { name: "hide_up";
315          signal: "elm,state,hide,up";
316          source: "elm";
317          action: STATE_SET "hide_up" 0.0;
318          transition: LINEAR 0.25;
319          target: "ctxpopup_clip";
320          after: "hide_finished";
321       }
322       program { name: "hide_left";
323          signal: "elm,state,hide,left";
324          source: "elm";
325          action: STATE_SET "hide_left" 0.0;
326          transition: LINEAR 0.25;
327          target: "ctxpopup_clip";
328          after: "hide_finished";
329       }
330       program { name: "hide_right";
331          signal: "elm,state,hide,right";
332          source: "elm";
333          action: STATE_SET "hide_right" 0.0;
334          transition: LINEAR 0.25;
335          target: "ctxpopup_clip";
336          after: "hide_finished";
337       }
338       program { name: "hide_down";
339          signal: "elm,state,hide,down";
340          source: "elm";
341          action: STATE_SET "hide_down" 0.0;
342          transition: LINEAR 0.25;
343          target: "ctxpopup_clip";
344          after: "hide_finished";
345       }
346       program { name: "hide_finished";
347          action: SIGNAL_EMIT "elm,action,hide,finished" "";
348       }
349
350    }
351 }
352 ///////////////////////////////////////////////////////////////////////////////
353 group { name: "elm/ctxpopup/arrow/default";
354    images {
355       image: "ctxpopup_arrow_left.png" COMP;
356       image: "ctxpopup_arrow_right.png" COMP;
357       image: "ctxpopup_arrow_up.png" COMP;
358       image: "ctxpopup_arrow_down.png" COMP;
359    }
360    parts {
361       part { name: "ctxpopup_arrow";
362          type: IMAGE;
363          scale: 1;
364          description {
365             state: "default" 0.0;
366             min: 36 36;
367             fixed: 1 1;
368             visible: 0;
369             align: 0.5 0.5;
370          }
371          description {
372             state: "left" 0.0;
373             min: 20 36;
374             fixed: 1 1;
375             align: 0.0 0.5;
376             rel1 { offset: 3 0; }
377             rel2 { offset: 2 -1; }
378             image { normal: "ctxpopup_arrow_left.png"; }
379          }
380          description { state: "right" 0.0;
381             min: 20 36;
382             fixed: 1 1;
383             align: 1.0 0.5;
384             rel1 { offset: -5 0; }
385             rel2 { offset: -6 -1; }
386             image { normal: "ctxpopup_arrow_right.png"; }
387          }
388          description { state: "top" 0.0;
389             min: 36 20;
390             fixed: 1 1;
391             align: 0.5 0.0;
392             rel1 { offset: 0 5; }
393             rel2 { offset: -1 4; }
394             image { normal: "ctxpopup_arrow_up.png"; }
395          }
396          description { state: "bottom" 0.0;
397             min: 36 20;
398             fixed: 1 1;
399             align: 0.5 1.0;
400             rel1 { offset: 0 -5; }
401             rel2 { offset: -1 -6; }
402             image { normal: "ctxpopup_arrow_down.png"; }
403          }
404       }
405    }
406    programs {
407       program { name: "enable_left_arrow";
408          signal: "elm,state,left";
409          source: "elm";
410          action: STATE_SET "left" 0.0;
411          target: "ctxpopup_arrow";
412       }
413       program { name: "enable_right_arrow";
414          signal: "elm,state,right";
415          source: "elm";
416          action: STATE_SET "right" 0.0;
417          target: "ctxpopup_arrow";
418       }
419       program { name: "enable_top_arrow";
420          signal: "elm,state,top";
421          source: "elm";
422          action: STATE_SET "top" 0.0;
423          target: "ctxpopup_arrow";
424       }
425       program { name: "enable_bottom_arrow";
426          signal: "elm,state,bottom";
427          source: "elm";
428          action: STATE_SET "bottom" 0.0;
429          target: "ctxpopup_arrow";
430       }
431    }
432 }
433 ///////////////////////////////////////////////////////////////////////////////
434 group {
435    name: "elm/ctxpopup/icon_text_style_item/default";
436    alias: "elm/ctxpopup/text_style_item/default";
437    alias: "elm/ctxpopup/icon_style_item/default";
438    images {
439       image: "hoversel_entry_bg.png" COMP;
440    }
441    parts {
442       part { name: "bg";
443          mouse_events: 0;
444          description { state: "default" 0.0;
445             rel1.offset: 2 2;
446             rel2.offset: -3 -3;
447             image { normal:"hoversel_entry_bg.png";
448                border: 0 0 2 2;
449             }
450             fill.smooth: 0;
451             color: 255 255 255 0;
452          }
453          description { state: "clicked" 0.0;
454             inherit: "default" 0.0;
455             color: 255 255 255 255;
456          }
457       }
458       part { name: "elm.swallow.icon";
459          type: SWALLOW;
460          clip_to: "disclip";
461          scale: 1;
462          description { state: "default" 0.0;
463             min: 25 25;
464             max: 25 25;
465             align: 0 0.5;
466             aspect: 1.0 1.0;
467             rel1 { offset: 10 10; }
468             rel2 { offset: 0 -10; }
469          }
470       }
471       part { name: "elm.text";
472          type: TEXT;
473          mouse_events: 0;
474          clip_to: "disclip";
475          scale: 1;
476          description { state: "default" 0.0;
477             min: 1 40;
478             fixed: 0 1;
479             align: 0.5 0.5;
480             rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
481             rel2 { relative: 1.0 1.0; offset: -11 -1; }
482             color: 255 255 255 255;
483             text {
484                font: "Sans";
485                size: 10;
486                align: 0.0 0.5;
487                min: 1 1;
488             }
489          }
490          description { state: "clicked" 0.0;
491             inherit: "default" 0.0;
492             color: 0 0 0 255;
493          }
494       }
495       part { name: "over1";
496          type: RECT;
497          mouse_events: 1;
498          repeat_events: 1;
499          description { state: "default" 0.0;
500             color: 255 255 255 0;
501          }
502          description { state: "clicked" 0.0;
503             inherit: "default" 0.0;
504             color: 255 255 255 255;
505          }
506       }
507       part { name: "over2";
508          type: RECT;
509          mouse_events: 1;
510          repeat_events: 1;
511          description { state: "default" 0.0;
512             color: 255 255 255 0;
513          }
514          description { state: "clicked" 0.0;
515             inherit: "default" 0.0;
516             color: 255 255 255 255;
517          }
518       }
519       part { name: "disclip";
520          type: RECT;
521          description { state: "default" 0.0;
522             color: 255 255 255 255;
523          }
524          description { state: "enabled" 0.0;
525             color: 127 127 127 127;
526          }
527       }
528       part { name: "blocker";
529          type: RECT;
530          description { state: "default" 0.0;
531             visible: 0;
532          }
533          description { state: "enabled" 0.0;
534             visible: 1;
535             color: 0 0 0 0;
536          }
537       }
538    }
539    programs {
540       program {
541          name: "item_unclick";
542          signal: "mouse,clicked,1";
543          source: "over1";
544          action: SIGNAL_EMIT "elm,action,click" "";
545       }
546       program { name: "disable";
547          signal: "elm,state,disabled";
548          source: "elm";
549          action: STATE_SET "enabled" 0.0;
550          target: "disclip";
551          target: "blocker";
552       }
553       program { name: "enable";
554          signal: "elm,state,enabled";
555          source: "elm";
556          action: STATE_SET "default" 0.0;
557          target: "disclip";
558          target: "blocker";
559       }
560       program { name: "item_click2";
561          signal: "mouse,down,1";
562          source: "over2";
563          script {
564             set_state(PART:"elm.text", "clicked", 0.0);
565             set_state(PART:"bg", "clicked", 0.0);
566          }
567       }
568       program { name: "item_unclick2";
569          signal: "mouse,up,1";
570          source: "over2";
571          script {
572             set_state(PART:"elm.text", "default", 0.0);
573             set_state(PART:"bg", "default", 0.0);
574          }
575       }
576    }
577 }
578 ///////////////////////////////////////////////////////////////////////////////
579 group {
580    name: "elm/ctxpopup/item_compress/default";
581    images {
582       image: "hoversel_entry_bg.png" COMP;
583    }
584    parts {
585       part { name: "bg";
586          mouse_events: 0;
587          description { state: "default" 0.0;
588             rel1.offset: 2 2;
589             rel2.offset: -3 -3;
590             image { normal:"hoversel_entry_bg.png";
591                border: 0 0 2 2;
592             }
593             fill.smooth: 0;
594             color: 255 255 255 0;
595          }
596          description { state: "clicked" 0.0;
597             inherit: "default" 0.0;
598             color: 255 255 255 255;
599          }
600       }
601       part { name: "elm.swallow.icon";
602          type: SWALLOW;
603          clip_to: "disclip";
604          scale: 1;
605          description { state: "default" 0.0;
606             min: 25 25;
607             max: 25 25;
608             align: 0 0.5;
609             aspect: 1.0 1.0;
610             rel1 { offset: 10 10; }
611             rel2 { offset: 0 -10; }
612          }
613       }
614       part { name: "elm.text";
615          type: TEXT;
616          mouse_events: 0;
617          clip_to: "disclip";
618          scale: 1;
619          description { state: "default" 0.0;
620             min: 1 40;
621             fixed: 0 1;
622             align: 0.5 0.5;
623             rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
624             rel2 { relative: 1.0 1.0; }
625             color: 255 255 255 255;
626             text {
627                font: "Sans";
628                size: 10;
629                min: 0 1;
630                align: 0.0 0.5;
631             }
632          }
633          description { state: "clicked" 0.0;
634             inherit: "default" 0.0;
635             color: 0 0 0 255;
636          }
637       }
638       part { name: "over1";
639          type: RECT;
640          mouse_events: 1;
641          repeat_events: 1;
642          description { state: "default" 0.0;
643             color: 255 255 255 0;
644          }
645          description { state: "clicked" 0.0;
646             inherit: "default" 0.0;
647             color: 255 255 255 255;
648          }
649       }
650       part { name: "over2";
651          type: RECT;
652          mouse_events: 1;
653          repeat_events: 1;
654          description { state: "default" 0.0;
655             color: 255 255 255 0;
656          }
657          description { state: "clicked" 0.0;
658             inherit: "default" 0.0;
659             color: 255 255 255 255;
660          }
661       }
662       part { name: "disclip";
663          type: RECT;
664          description { state: "default" 0.0;
665             color: 255 255 255 255;
666          }
667          description { state: "enabled" 0.0;
668             color: 127 127 127 127;
669          }
670       }
671       part { name: "blocker";
672          type: RECT;
673          description { state: "default" 0.0;
674             visible: 0;
675          }
676          description { state: "enabled" 0.0;
677             visible: 1;
678             color: 0 0 0 0;
679          }
680       }
681    }
682    programs {
683       program {
684          name: "item_unclick";
685          signal: "mouse,clicked,1";
686          source: "over1";
687          action: SIGNAL_EMIT "elm,action,click" "";
688       }
689       program { name: "disable";
690          signal: "elm,state,disabled";
691          source: "elm";
692          action: STATE_SET "enabled" 0.0;
693          target: "disclip";
694          target: "blocker";
695       }
696       program { name: "enable";
697          signal: "elm,state,enabled";
698          source: "elm";
699          action: STATE_SET "default" 0.0;
700          target: "disclip";
701          target: "blocker";
702       }
703       program { name: "item_click2";
704          signal: "mouse,down,1";
705          source: "over2";
706          script {
707             set_state(PART:"elm.text", "clicked", 0.0);
708             set_state(PART:"bg", "clicked", 0.0);
709          }
710       }
711       program { name: "item_unclick2";
712          signal: "mouse,up,1";
713          source: "over2";
714          script {
715             set_state(PART:"elm.text", "default", 0.0);
716             set_state(PART:"bg", "default", 0.0);
717          }
718       }
719    }
720 }