Elm entry: Use group inheritance in theme.
[framework/uifw/elementary.git] / data / themes / widgets / entry.edc
1 group { name: "elm/scroller/entry/default";
2
3    data {
4       item: "focus_highlight" "on";
5    }
6
7    script {
8       public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
9       public timer0(val) {
10          new v;
11          v = get_int(sbvis_v);
12          if (v) {
13             v = get_int(sbalways_v);
14             if (!v) {
15                emit("do-hide-vbar", "");
16                set_int(sbvis_v, 0);
17             }
18          }
19          v = get_int(sbvis_h);
20          if (v) {
21             v = get_int(sbalways_h);
22             if (!v) {
23                emit("do-hide-hbar", "");
24                set_int(sbvis_h, 0);
25             }
26          }
27          set_int(sbvis_timer, 0);
28          return 0;
29       }
30    }
31    images {
32       image: "shelf_inset.png" COMP;
33       image: "bt_sm_base2.png" COMP;
34       image: "bt_sm_shine.png" COMP;
35       image: "bt_sm_hilight.png" COMP;
36       image: "sl_bt2_2.png" COMP;
37    }
38    parts {
39       part { name: "bg";
40          type: RECT;
41          description { state: "default" 0.0;
42             rel1.offset: 2 2;
43             rel2.offset: -3 -3;
44          }
45       }
46       part { name: "clipper";
47          type: RECT;
48          mouse_events: 0;
49          description { state: "default" 0.0;
50             rel1.to: "bg";
51             rel2.to: "bg";
52             rel1.offset: 2 2;
53             rel2.offset: -3 -3;
54          }
55       }
56       part { name: "contentclipper";
57          type: RECT;
58          mouse_events: 0;
59          clip_to: "clipper";
60          description { state: "default" 0.0;
61             rel1.to: "elm.swallow.icon";
62             rel1.relative: 1.0 0.0;
63             rel2.to: "elm.swallow.end";
64             rel2.relative: 0.0 1.0;
65          }
66       }
67       part { name: "elm.swallow.icon";
68          type: SWALLOW;
69          clip_to: "clipper";
70          description { state: "default" 0.0;
71             fixed: 1 1;
72             rel1 {
73                to: "bg";
74                relative: 0.0 0.0;
75                offset: 0 0;
76             }
77             rel2 {
78                to: "bg";
79                relative: 0.0 1.0;
80                offset: -1 -1;
81             }
82             visible: 0;
83          }
84          description { state: "visible" 0.0;
85             fixed: 1 1;
86             align: 0.0 1.0;
87             rel1 {
88                to: "bg";
89                relative: 0.0 0.0;
90                offset: 0 0;
91             }
92             rel2 {
93                to: "bg";
94                relative: 0.0 1.0;
95                offset: -1 -1;
96             }
97             visible: 1;
98          }
99       }
100       part { name: "elm.swallow.end";
101          type: SWALLOW;
102          clip_to: "clipper";
103          description { state: "default" 0.0;
104             fixed: 1 1;
105             rel1 {
106                to: "bg";
107                relative: 1.0 0.0;
108                offset: 0 0;
109             }
110             rel2 {
111                to: "bg";
112                relative: 1.0 1.0;
113                offset: -1 -1;
114             }
115             visible: 0;
116          }
117          description { state: "visible" 0.0;
118             fixed: 1 1;
119             align: 1.0 1.0;
120             rel1 {
121                to: "bg";
122                relative: 1.0 0.0;
123                offset: 0 0;
124             }
125             rel2 {
126                to: "bg";
127                relative: 1.0 1.0;
128                offset: -1 -1;
129             }
130             visible: 1;
131          }
132       }
133       part { name: "elm.swallow.content";
134          clip_to: "contentclipper";
135          type: SWALLOW;
136          description { state: "default" 0.0;
137             rel1 {
138                to: "elm.swallow.icon";
139                relative: 1.0 0.0;
140                offset: 4 4;
141             }
142             rel2 {
143                to: "elm.swallow.end";
144                relative: 0.0 1.0;
145                offset: -5 -5;
146             }
147          }
148       }
149       part { name: "conf_over";
150          mouse_events:  0;
151          description { state: "default" 0.0;
152             rel1.to: "bg";
153             rel2.to: "bg";
154             image {
155                normal: "shelf_inset.png";
156                border: 7 7 7 7;
157                middle: 0;
158             }
159             fill.smooth : 0;
160          }
161          description { state: "enabled" 0.0;
162             inherit: "default" 0.0;
163             color: 200 155 0 255;
164          }
165       }
166       part { name: "focus_highlight";
167          mouse_events: 0;
168          description { state: "default" 0.0;
169             rel1.offset: -1 -1;
170             rel2.offset: 0 0;
171             image {
172                normal: "sl_bt2_2.png";
173                border: 7 7 7 7;
174                middle: 0;
175             }
176             fill.smooth : 0;
177             color: 200 155 0 0;
178          }
179          description { state: "enabled" 0.0;
180             inherit: "default" 0.0;
181             color: 200 155 0 255;
182          }
183       }
184       part { name: "sb_vbar_clip_master";
185          type: RECT;
186          mouse_events: 0;
187          description { state: "default" 0.0;
188          }
189          description { state: "hidden" 0.0;
190             visible: 0;
191             color: 255 255 255 0;
192          }
193       }
194       part { name: "sb_vbar_clip";
195          clip_to: "sb_vbar_clip_master";
196          type: RECT;
197          mouse_events: 0;
198          description { state: "default" 0.0;
199          }
200          description { state: "hidden" 0.0;
201             visible: 0;
202             color: 255 255 255 0;
203          }
204       }
205       part { name: "sb_vbar";
206          type: RECT;
207          mouse_events: 0;
208          description { state: "default" 0.0;
209             fixed: 1 1;
210             visible: 0;
211             min: 10 17;
212             align: 1.0 0.0;
213             rel1 {
214                relative: 0.0 0.0;
215                offset:   -2 2;
216                to_y:     "elm.swallow.content";
217                to_x:     "elm.swallow.end";
218             }
219             rel2 {
220                relative: 0.0 0.0;
221                offset:   -2 -1;
222                to_y:     "sb_hbar";
223                to_x:     "elm.swallow.end";
224             }
225          }
226       }
227       part { name: "elm.dragable.vbar";
228          clip_to: "sb_vbar_clip";
229          mouse_events: 0;
230          dragable {
231             x: 0 0 0;
232             y: 1 1 0;
233             confine: "sb_vbar";
234          }
235          description { state: "default" 0.0;
236             fixed: 1 1;
237             min: 10 17;
238             max: 10 99999;
239             rel1 {
240                relative: 0.5  0.5;
241                offset:   0    0;
242                to: "sb_vbar";
243             }
244             rel2 {
245                relative: 0.5  0.5;
246                offset:   0    0;
247                to: "sb_vbar";
248             }
249             image {
250                normal: "bt_sm_base2.png";
251                border: 6 6 6 6;
252                middle: SOLID;
253             }
254          }
255       }
256       part { name: "sb_vbar_over1";
257          clip_to: "sb_vbar_clip";
258          mouse_events: 0;
259          description { state: "default" 0.0;
260             rel1.to: "elm.dragable.vbar";
261             rel2.relative: 1.0 0.5;
262             rel2.to: "elm.dragable.vbar";
263             image {
264                normal: "bt_sm_hilight.png";
265                border: 6 6 6 0;
266             }
267          }
268       }
269       part { name: "sb_vbar_over2";
270          clip_to: "sb_vbar_clip";
271          mouse_events: 0;
272          description { state: "default" 0.0;
273             rel1.to: "elm.dragable.vbar";
274             rel2.to: "elm.dragable.vbar";
275             image {
276                normal: "bt_sm_shine.png";
277                border: 6 6 6 0;
278             }
279          }
280       }
281
282       part { name: "sb_hbar_clip_master";
283          type: RECT;
284          mouse_events: 0;
285          description { state: "default" 0.0;
286          }
287          description { state: "hidden" 0.0;
288             visible: 0;
289             color: 255 255 255 0;
290          }
291       }
292       part { name: "sb_hbar_clip";
293          clip_to: "sb_hbar_clip_master";
294          type: RECT;
295          mouse_events: 0;
296          description { state: "default" 0.0;
297          }
298          description { state: "hidden" 0.0;
299             visible: 0;
300             color: 255 255 255 0;
301          }
302       }
303       part { name: "sb_hbar";
304          type: RECT;
305          mouse_events: 0;
306          description { state: "default" 0.0;
307             fixed: 1 1;
308             visible: 0;
309             min: 17 10;
310             align: 0.0 1.0;
311             rel1 {
312                relative: 0.0 1.0;
313                offset:   2 0;
314                to_x:     "elm.swallow.content";
315                to_y:     "elm.swallow.content";
316             }
317             rel2 {
318                relative: 0.0 1.0;
319                offset:   -1 -1;
320                to_x:     "sb_vbar";
321                to_y:     "elm.swallow.content";
322             }
323          }
324       }
325       part { name: "elm.dragable.hbar";
326          clip_to: "sb_hbar_clip";
327          mouse_events: 0;
328          dragable {
329             x: 1 1 0;
330             y: 0 0 0;
331             confine: "sb_hbar";
332          }
333          description { state: "default" 0.0;
334             fixed: 1 1;
335             min: 17 10;
336             max: 99999 10;
337             rel1 {
338                relative: 0.5  0.5;
339                offset:   0    0;
340                to: "sb_hbar";
341             }
342             rel2 {
343                relative: 0.5  0.5;
344                offset:   0    0;
345                to: "sb_hbar";
346             }
347             image {
348                normal: "bt_sm_base2.png";
349                border: 4 4 4 4;
350                middle: SOLID;
351             }
352          }
353       }
354       part { name: "sb_hbar_over1";
355          clip_to: "sb_hbar_clip";
356          mouse_events: 0;
357          description { state: "default" 0.0;
358             rel1.to: "elm.dragable.hbar";
359             rel2.relative: 1.0 0.5;
360             rel2.to: "elm.dragable.hbar";
361             image {
362                normal: "bt_sm_hilight.png";
363                border: 4 4 4 0;
364             }
365          }
366       }
367       part { name: "sb_hbar_over2";
368          clip_to: "sb_hbar_clip";
369          mouse_events: 0;
370          description { state: "default" 0.0;
371             rel1.to: "elm.dragable.hbar";
372             rel2.to: "elm.dragable.hbar";
373             image {
374                normal: "bt_sm_shine.png";
375                border: 4 4 4 0;
376             }
377          }
378       }
379    }
380    programs {
381       program { name: "load";
382          signal: "load";
383          source: "";
384          script {
385             set_state(PART:"sb_hbar_clip", "hidden", 0.0);
386             set_state(PART:"sb_vbar_clip", "hidden", 0.0);
387             set_int(sbvis_h, 0);
388             set_int(sbvis_v, 0);
389             set_int(sbalways_v, 0);
390             set_int(sbalways_h, 0);
391             set_int(sbvis_timer, 0);
392          }
393       }
394       program { name: "icon_show";
395          signal: "elm,action,show,icon";
396          source: "elm";
397          action: STATE_SET "visible" 0.0;
398          target: "elm.swallow.icon";
399       }
400       program { name: "icon_hide";
401          signal: "elm,action,hide,icon";
402          source: "elm";
403          action: STATE_SET "default" 0.0;
404          target: "elm.swallow.icon";
405       }
406       program { name: "end_show";
407          signal: "elm,action,show,end";
408          source: "elm";
409          action: STATE_SET "visible" 0.0;
410          target: "elm.swallow.end";
411       }
412       program { name: "end_hide";
413          signal: "elm,action,hide,end";
414          source: "elm";
415          action: STATE_SET "default" 0.0;
416          target: "elm.swallow.end";
417       }
418       program { name: "vbar_show";
419          signal: "elm,action,show,vbar";
420          source: "elm";
421          action:  STATE_SET "default" 0.0;
422          target: "sb_vbar_clip_master";
423       }
424       program { name: "vbar_hide";
425          signal: "elm,action,hide,vbar";
426          source: "elm";
427          action:  STATE_SET "hidden" 0.0;
428          target: "sb_vbar_clip_master";
429       }
430       program { name: "vbar_show_always";
431          signal: "elm,action,show_always,vbar";
432          source: "elm";
433          script {
434             new v;
435             v = get_int(sbvis_v);
436             v |= get_int(sbalways_v);
437             if (!v) {
438                set_int(sbalways_v, 1);
439                emit("do-show-vbar", "");
440                set_int(sbvis_v, 1);
441             }
442          }
443       }
444       program { name: "vbar_show_notalways";
445          signal: "elm,action,show_notalways,vbar";
446          source: "elm";
447          script {
448             new v;
449             v = get_int(sbalways_v);
450             if (v) {
451                set_int(sbalways_v, 0);
452                v = get_int(sbvis_v);
453                if (!v) {
454                   emit("do-hide-vbar", "");
455                   set_int(sbvis_v, 0);
456                }
457             }
458          }
459       }
460       program { name: "sb_vbar_show";
461          signal: "do-show-vbar";
462          source: "";
463          action:  STATE_SET "default" 0.0;
464          transition: LINEAR 0.5;
465          target: "sb_vbar_clip";
466       }
467       program { name: "sb_vbar_hide";
468          signal: "do-hide-vbar";
469          source: "";
470          action:  STATE_SET "hidden" 0.0;
471          transition: LINEAR 0.5;
472          target: "sb_vbar_clip";
473       }
474
475       program { name: "hbar_show";
476          signal: "elm,action,show,hbar";
477          source: "elm";
478          action:  STATE_SET "default" 0.0;
479          target: "sb_hbar_clip_master";
480       }
481       program { name: "hbar_hide";
482          signal: "elm,action,hide,hbar";
483          source: "elm";
484          action:  STATE_SET "hidden" 0.0;
485          target: "sb_hbar_clip_master";
486       }
487       program { name: "hbar_show_always";
488          signal: "elm,action,show_always,hbar";
489          source: "elm";
490          script {
491             new v;
492             v = get_int(sbvis_h);
493             v |= get_int(sbalways_h);
494             if (!v) {
495                set_int(sbalways_h, 1);
496                emit("do-show-hbar", "");
497                set_int(sbvis_h, 1);
498             }
499          }
500       }
501       program { name: "hbar_show_notalways";
502          signal: "elm,action,show_notalways,hbar";
503          source: "elm";
504          script {
505             new v;
506             v = get_int(sbalways_h);
507             if (v) {
508                set_int(sbalways_h, 0);
509                v = get_int(sbvis_h);
510                if (!v) {
511                   emit("do-hide-hbar", "");
512                   set_int(sbvis_h, 0);
513                }
514             }
515          }
516       }
517       program { name: "sb_hbar_show";
518          signal: "do-show-hbar";
519          source: "";
520          action:  STATE_SET "default" 0.0;
521          transition: LINEAR 0.5;
522          target: "sb_hbar_clip";
523       }
524       program { name: "sb_hbar_hide";
525          signal: "do-hide-hbar";
526          source: "";
527          action:  STATE_SET "hidden" 0.0;
528          transition: LINEAR 0.5;
529          target: "sb_hbar_clip";
530       }
531
532       program { name: "scroll";
533          signal: "elm,action,scroll";
534          source: "elm";
535          script {
536             new v;
537             v = get_int(sbvis_v);
538             v |= get_int(sbalways_v);
539             if (!v) {
540                emit("do-show-vbar", "");
541                set_int(sbvis_v, 1);
542             }
543             v = get_int(sbvis_h);
544             v |= get_int(sbalways_h);
545             if (!v) {
546                emit("do-show-hbar", "");
547                set_int(sbvis_h, 1);
548             }
549             v = get_int(sbvis_timer);
550             if (v > 0) cancel_timer(v);
551             v = timer(1.0, "timer0", 0);
552             set_int(sbvis_timer, v);
553          }
554       }
555
556       program { name: "highlight_show";
557          signal: "elm,action,focus_highlight,show";
558          source: "elm";
559          action: STATE_SET "enabled" 0.0;
560          transition: ACCELERATE 0.3;
561          target: "focus_highlight";
562          target: "conf_over";
563       }
564       program { name: "highlight_hide";
565          signal: "elm,action,focus_highlight,hide";
566          source: "elm";
567          action: STATE_SET "default" 0.0;
568          transition: DECELERATE 0.3;
569          target: "focus_highlight";
570          target: "conf_over";
571       }
572    }
573 }
574
575 ///////////////////////////////////////////////////////////////////////////////
576 // emoticon images from:
577 // Tanya - Latvia
578 // http://lazycrazy.deviantart.com/
579 // http://lazycrazy.deviantart.com/art/Very-Emotional-Emoticons-144461621
580 group { name: "elm/entry/emoticon/angry/default"; images.image:
581    "emo-angry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
582             "emo-angry.png"; } } } }
583 group { name: "elm/entry/emoticon/angry-shout/default"; images.image:
584    "emo-angry-shout.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
585             "emo-angry-shout.png"; } } } }
586 group { name: "elm/entry/emoticon/crazy-laugh/default"; images.image:
587    "emo-crazy-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
588             "emo-crazy-laugh.png"; } } } }
589 group { name: "elm/entry/emoticon/evil-laugh/default"; images.image:
590    "emo-evil-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
591             "emo-evil-laugh.png"; } } } }
592 group { name: "elm/entry/emoticon/evil/default"; images.image:
593    "emo-evil.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
594             "emo-evil.png"; } } } }
595 group { name: "elm/entry/emoticon/goggle-smile/default"; images.image:
596    "emo-goggle-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
597             "emo-goggle-smile.png"; } } } }
598 group { name: "elm/entry/emoticon/grumpy/default"; images.image:
599    "emo-grumpy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
600             "emo-grumpy.png"; } } } }
601 group { name: "elm/entry/emoticon/grumpy-smile/default"; images.image:
602    "emo-grumpy-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
603             "emo-grumpy-smile.png"; } } } }
604 group { name: "elm/entry/emoticon/guilty/default"; images.image:
605    "emo-guilty.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
606             "emo-guilty.png"; } } } }
607 group { name: "elm/entry/emoticon/guilty-smile/default"; images.image:
608    "emo-guilty-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
609             "emo-guilty-smile.png"; } } } }
610 group { name: "elm/entry/emoticon/haha/default"; images.image:
611    "emo-haha.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
612             "emo-haha.png"; } } } }
613 group { name: "elm/entry/emoticon/half-smile/default"; images.image:
614    "emo-half-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
615             "emo-half-smile.png"; } } } }
616 group { name: "elm/entry/emoticon/happy-panting/default"; images.image:
617    "emo-happy-panting.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
618             "emo-happy-panting.png"; } } } }
619 group { name: "elm/entry/emoticon/happy/default"; images.image:
620    "emo-happy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
621             "emo-happy.png"; } } } }
622 group { name: "elm/entry/emoticon/indifferent/default"; images.image:
623    "emo-indifferent.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
624             "emo-indifferent.png"; } } } }
625 group { name: "elm/entry/emoticon/kiss/default"; images.image:
626    "emo-kiss.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
627             "emo-kiss.png"; } } } }
628 group { name: "elm/entry/emoticon/knowing-grin/default"; images.image:
629    "emo-knowing-grin.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
630             "emo-knowing-grin.png"; } } } }
631 group { name: "elm/entry/emoticon/laugh/default"; images.image:
632    "emo-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
633             "emo-laugh.png"; } } } }
634 group { name: "elm/entry/emoticon/little-bit-sorry/default"; images.image:
635    "emo-little-bit-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
636             "emo-little-bit-sorry.png"; } } } }
637 group { name: "elm/entry/emoticon/love-lots/default"; images.image:
638    "emo-love-lots.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
639             "emo-love-lots.png"; } } } }
640 group { name: "elm/entry/emoticon/love/default"; images.image:
641    "emo-love.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
642             "emo-love.png"; } } } }
643 group { name: "elm/entry/emoticon/minimal-smile/default"; images.image:
644    "emo-minimal-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
645             "emo-minimal-smile.png"; } } } }
646 group { name: "elm/entry/emoticon/not-happy/default"; images.image:
647    "emo-not-happy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
648             "emo-not-happy.png"; } } } }
649 group { name: "elm/entry/emoticon/not-impressed/default"; images.image:
650    "emo-not-impressed.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
651             "emo-not-impressed.png"; } } } }
652 group { name: "elm/entry/emoticon/omg/default"; images.image:
653    "emo-omg.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
654             "emo-omg.png"; } } } }
655 group { name: "elm/entry/emoticon/opensmile/default"; images.image:
656    "emo-opensmile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
657             "emo-opensmile.png"; } } } }
658 group { name: "elm/entry/emoticon/smile/default"; images.image:
659    "emo-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
660             "emo-smile.png"; } } } }
661 group { name: "elm/entry/emoticon/sorry/default"; images.image:
662    "emo-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
663             "emo-sorry.png"; } } } }
664 group { name: "elm/entry/emoticon/squint-laugh/default"; images.image:
665    "emo-squint-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
666             "emo-squint-laugh.png"; } } } }
667 group { name: "elm/entry/emoticon/surprised/default"; images.image:
668    "emo-surprised.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
669             "emo-surprised.png"; } } } }
670 group { name: "elm/entry/emoticon/suspicious/default"; images.image:
671    "emo-suspicious.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
672             "emo-suspicious.png"; } } } }
673 group { name: "elm/entry/emoticon/tongue-dangling/default"; images.image:
674    "emo-tongue-dangling.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
675             "emo-tongue-dangling.png"; } } } }
676 group { name: "elm/entry/emoticon/tongue-poke/default"; images.image:
677    "emo-tongue-poke.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
678             "emo-tongue-poke.png"; } } } }
679 group { name: "elm/entry/emoticon/uh/default"; images.image:
680    "emo-uh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
681             "emo-uh.png"; } } } }
682 group { name: "elm/entry/emoticon/unhappy/default"; images.image:
683    "emo-unhappy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
684             "emo-unhappy.png"; } } } }
685 group { name: "elm/entry/emoticon/very-sorry/default"; images.image:
686    "emo-very-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
687             "emo-very-sorry.png"; } } } }
688 group { name: "elm/entry/emoticon/what/default"; images.image:
689    "emo-what.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
690             "emo-what.png"; } } } }
691 group { name: "elm/entry/emoticon/wink/default"; images.image:
692    "emo-wink.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
693             "emo-wink.png"; } } } }
694 group { name: "elm/entry/emoticon/worried/default"; images.image:
695    "emo-worried.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
696             "emo-worried.png"; } } } }
697 group { name: "elm/entry/emoticon/wtf/default"; images.image:
698    "emo-wtf.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal:
699             "emo-wtf.png"; } } } }
700             //------------------------------------------------------------
701 group { name: "elm/entry/base/default";
702    styles
703    {
704       style { name: "entry_textblock_style";
705          base: "font=Sans font_size=10 color=#000 wrap=word text_class=entry";
706          tag:  "br" "\n";
707          tag:  "ps" "ps";
708          tag:  "tab" "\t";
709          tag:  "em" "+ font_style=Oblique";
710          tag:  "b" "+ font_weight=Bold";
711          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
712          tag:  "hilight" "+ font_weight=Bold";
713       }
714       style { name: "entry_textblock_disabled_style";
715          base: "font=Sans font_size=10 color=#00000080 wrap=word text_class=entry";
716          tag:  "br" "\n";
717          tag:  "ps" "ps";
718          tag:  "tab" "\t";
719          tag:  "em" "+ font_style=Oblique";
720          tag:  "b" "+ font_weight=Bold";
721          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
722          tag:  "hilight" "+ font_weight=Bold";
723       }
724    }
725    data {
726         //         item: context_menu_orientation "horizontal";
727    }
728    parts {
729       part { name: "elm.text";
730          type: TEXTBLOCK;
731          mouse_events: 1;
732          scale: 1;
733          entry_mode: EDITABLE;
734          select_mode: EXPLICIT;
735          multiline: 1;
736          source: "elm/entry/selection/default"; // selection under
737                  //       source2: "X"; // selection over
738                  //       source3: "X"; // cursor under
739          source4: "elm/entry/cursor/default"; // cursorover
740          source5: "elm/entry/anchor/default"; // anchor under
741                   //       source6: "X"; // anchor over
742          description { state: "default" 0.0;
743             /* we gotta use 0 0 here, because of scrolled entries */
744             fixed: 0 0;
745             text {
746                style: "entry_textblock_style";
747                min: 0 1;
748                align: 0.0 0.0;
749             }
750          }
751          description { state: "disabled" 0.0;
752             inherit: "default" 0.0;
753             text {
754                style: "entry_textblock_disabled_style";
755                min: 0 1;
756             }
757          }
758       }
759    }
760    programs {
761       program { name: "focus";
762          signal: "load";
763          source: "";
764          action: FOCUS_SET;
765          target: "elm.text";
766       }
767       program { name: "disable";
768          signal: "elm,state,disabled";
769          source: "elm";
770          action: STATE_SET "disabled" 0.0;
771          target: "elm.text";
772       }
773       program { name: "enable";
774          signal: "elm,state,enabled";
775          source: "elm";
776          action: STATE_SET "default" 0.0;
777          target: "elm.text";
778       }
779    }
780 }
781
782 group { name: "elm/entry/base-mixedwrap/default";
783    inherit: "elm/entry/base/default";
784    styles
785    {
786       style { name: "entry_textblock_style_mixedwrap";
787          base: "font=Sans font_size=10 color=#000 wrap=mixed text_class=entry";
788          tag:  "br" "\n";
789          tag:  "ps" "ps";
790          tag:  "tab" "\t";
791          tag:  "em" "+ font_style=Oblique";
792          tag:  "b" "+ font_weight=Bold";
793          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
794          tag:  "hilight" "+ font_weight=Bold";
795       }
796       style { name: "entry_textblock_disabled_style_mixedwrap";
797          base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry";
798          tag:  "br" "\n";
799          tag:  "ps" "ps";
800          tag:  "tab" "\t";
801          tag:  "em" "+ font_style=Oblique";
802          tag:  "b" "+ font_weight=Bold";
803          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
804          tag:  "hilight" "+ font_weight=Bold";
805       }
806    }
807    parts {
808       part { name: "elm.text";
809          description { state: "default" 0.0;
810             fixed: 1 0;
811             text {
812                style: "entry_textblock_style_mixedwrap";
813                min: 0 1;
814                align: 0.0 0.0;
815             }
816          }
817          description { state: "disabled" 0.0;
818             inherit: "default" 0.0;
819             text {
820                style: "entry_textblock_disabled_style_mixedwrap";
821                min: 0 1;
822             }
823          }
824       }
825    }
826 }
827
828 group { name: "elm/entry/base-charwrap/default";
829    inherit: "elm/entry/base/default";
830    styles
831    {
832       style { name: "entry_textblock_style_charwrap";
833          base: "font=Sans font_size=10 color=#000 wrap=char text_class=entry";
834          tag:  "br" "\n";
835          tag:  "ps" "ps";
836          tag:  "tab" "\t";
837          tag:  "em" "+ font_style=Oblique";
838          tag:  "b" "+ font_weight=Bold";
839          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
840          tag:  "hilight" "+ font_weight=Bold";
841       }
842       style { name: "entry_textblock_disabled_style_charwrap";
843          base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry";
844          tag:  "br" "\n";
845          tag:  "ps" "ps";
846          tag:  "tab" "\t";
847          tag:  "em" "+ font_style=Oblique";
848          tag:  "b" "+ font_weight=Bold";
849          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
850          tag:  "hilight" "+ font_weight=Bold";
851       }
852    }
853    parts {
854       part { name: "elm.text";
855          description { state: "default" 0.0;
856             fixed: 1 0;
857             text {
858                style: "entry_textblock_style_charwrap";
859                min: 0 1;
860                align: 0.0 0.0;
861             }
862          }
863          description { state: "disabled" 0.0;
864             inherit: "default" 0.0;
865             text {
866                style: "entry_textblock_disabled_style_charwrap";
867                min: 0 1;
868             }
869          }
870       }
871    }
872 }
873
874 group { name: "elm/entry/base-nowrap/default";
875    inherit: "elm/entry/base/default";
876    parts {
877       part { name: "elm.text";
878          description { state: "default" 0.0;
879             text {
880                style: "entry_textblock_style";
881                min: 1 1;
882                align: 0.0 0.0;
883             }
884          }
885          description { state: "disabled" 0.0;
886             inherit: "default" 0.0;
887             text {
888                style: "entry_textblock_disabled_style";
889                min: 0 1;
890             }
891          }
892       }
893    }
894 }
895
896 group { name: "elm/entry/base-single/default";
897    inherit: "elm/entry/base/default";
898    styles
899    {
900       style { name: "entry_single_textblock_style";
901          base: "font=Sans font_size=10 color=#000 wrap=none text_class=entry";
902          tag:  "br" "\n";
903          tag:  "ps" "ps";
904          tag:  "tab" "\t";
905          tag:  "em" "+ font_style=Oblique";
906          tag:  "b" "+ font_weight=Bold";
907          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
908          tag:  "hilight" "+ font_weight=Bold";
909       }
910       style { name: "entry_single_textblock_disabled_style";
911          base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry";
912          tag:  "br" "\n";
913          tag:  "ps" "ps";
914          tag:  "tab" "\t";
915          tag:  "em" "+ font_style=Oblique";
916          tag:  "b" "+ font_weight=Bold";
917          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
918          tag:  "hilight" "+ font_weight=Bold";
919       }
920    }
921    parts {
922       part { name: "elm.text";
923          multiline: 0;
924          description { state: "default" 0.0;
925             text {
926                style: "entry_single_textblock_style";
927                min: 1 1;
928                max: 0 0;
929                align: 0.0 0.5;
930             }
931          }
932          description { state: "disabled" 0.0;
933             inherit: "default" 0.0;
934             text {
935                style: "entry_single_textblock_disabled_style";
936             }
937          }
938       }
939    }
940 }
941
942 group { name: "elm/entry/base-single-noedit/default";
943    inherit: "elm/entry/base/default";
944    parts {
945       part { name: "elm.text";
946          entry_mode: PLAIN;
947          multiline: 0;
948          source: "elm/entry/selection/default"; // selection under
949          source4: ""; // cursorover
950          source5: "elm/entry/anchor/default"; // anchor under
951          description { state: "default" 0.0;
952             text {
953                style: "entry_single_textblock_style";
954                min: 1 1;
955                max: 0 0;
956                align: 0.0 0.5;
957             }
958          }
959          description { state: "disabled" 0.0;
960             inherit: "default" 0.0;
961             text {
962                style: "entry_single_textblock_disabled_style";
963             }
964          }
965       }
966    }
967 }
968
969 group { name: "elm/entry/base-noedit/default";
970    inherit: "elm/entry/base/default";
971    parts {
972       part { name: "elm.text";
973          entry_mode: PLAIN;
974          source: "elm/entry/selection/default"; // selection under
975          source4: ""; // cursorover
976          source5: "elm/entry/anchor/default"; // anchor under
977          description { state: "default" 0.0;
978             fixed: 1 0;
979             text {
980                style: "entry_textblock_style";
981                min: 0 1;
982                align: 0.0 0.0;
983             }
984          }
985          description { state: "disabled" 0.0;
986             inherit: "default" 0.0;
987             text {
988                style: "entry_textblock_disabled_style";
989             }
990          }
991       }
992    }
993 }
994
995 group { name: "elm/entry/base-noedit-mixedwrap/default";
996    inherit: "elm/entry/base/default";
997    parts {
998       part { name: "elm.text";
999          entry_mode: PLAIN;
1000          source: "elm/entry/selection/default"; // selection under
1001          source4: ""; // cursorover
1002          source5: "elm/entry/anchor/default"; // anchor under
1003          description { state: "default" 0.0;
1004             fixed: 1 0;
1005             text {
1006                style: "entry_textblock_style_mixedwrap";
1007                min: 0 1;
1008                align: 0.0 0.0;
1009             }
1010          }
1011          description { state: "disabled" 0.0;
1012             inherit: "default" 0.0;
1013             text {
1014                style: "entry_textblock_disabled_style_mixedwrap";
1015             }
1016          }
1017       }
1018    }
1019 }
1020
1021 group { name: "elm/entry/base-noedit-charwrap/default";
1022    inherit: "elm/entry/base/default";
1023    parts {
1024       part { name: "elm.text";
1025          entry_mode: PLAIN;
1026          source: "elm/entry/selection/default"; // selection under
1027          source4: ""; // cursorover
1028          source5: "elm/entry/anchor/default"; // anchor under
1029          description { state: "default" 0.0;
1030             fixed: 1 0;
1031             text {
1032                style: "entry_textblock_style_charwrap";
1033                min: 0 1;
1034                align: 0.0 0.0;
1035             }
1036          }
1037          description { state: "disabled" 0.0;
1038             inherit: "default" 0.0;
1039             text {
1040                style: "entry_textblock_disabled_style_charwrap";
1041             }
1042          }
1043       }
1044    }
1045 }
1046
1047 group { name: "elm/entry/base-nowrap-noedit/default";
1048    inherit: "elm/entry/base/default";
1049    parts {
1050       part { name: "elm.text";
1051          entry_mode: PLAIN;
1052          source: "elm/entry/selection/default"; // selection under
1053          source4: ""; // cursorover
1054          source5: "elm/entry/anchor/default"; // anchor under
1055          description { state: "default" 0.0;
1056             text {
1057                style: "entry_textblock_style";
1058                min: 1 1;
1059                align: 0.0 0.0;
1060             }
1061          }
1062          description { state: "disabled" 0.0;
1063             inherit: "default" 0.0;
1064             text {
1065                style: "entry_textblock_disabled_style";
1066             }
1067          }
1068       }
1069    }
1070 }
1071
1072 group { name: "elm/entry/base-password/default";
1073    inherit: "elm/entry/base/default";
1074    parts {
1075       part { name: "elm.text";
1076          entry_mode: PASSWORD;
1077          multiline: 0;
1078          source: "elm/entry/selection/default"; // selection under
1079          source4: "elm/entry/cursor/default"; // cursorover
1080          source5: "elm/entry/anchor/default"; // anchor under
1081          description { state: "default" 0.0;
1082             text {
1083                style: "entry_single_textblock_style";
1084                repch: "*";
1085                min: 1 1;
1086                max: 0 0;
1087                align: 0.0 0.5;
1088             }
1089          }
1090          description { state: "disabled" 0.0;
1091             inherit: "default" 0.0;
1092             text {
1093                style: "entry_single_textblock_disabled_style";
1094             }
1095          }
1096       }
1097    }
1098 }
1099
1100 group { name: "elm/entry/cursor/default";
1101    images {
1102       image: "cur_box.png" COMP;
1103       image: "cur_hi.png" COMP;
1104       image: "cur_shad.png" COMP;
1105       image: "cur_shine.png" COMP;
1106       image: "cur_glow.png" COMP;
1107    }
1108    parts {
1109       part { name: "clip2";
1110          type: RECT;
1111          mouse_events: 0;
1112          description { state: "default" 0.0;
1113             rel1.to: "clip";
1114             rel2.to: "clip";
1115             visible: 0;
1116          }
1117          description { state: "focused" 0.0;
1118             inherit: "default" 0.0;
1119             visible: 1;
1120          }
1121       }
1122       part { name: "clip";
1123          type: RECT;
1124          mouse_events: 0;
1125          clip_to: "clip2";
1126          description { state: "default" 0.0;
1127             rel1.offset: -10 0;
1128             rel2.offset: 9 9;
1129          }
1130          description { state: "hidden" 0.0;
1131             inherit: "default" 0.0;
1132             visible: 0;
1133          }
1134       }
1135       part { name: "bg";
1136          mouse_events: 0;
1137          clip_to: "clip";
1138          description { state: "default" 0.0;
1139             rel1.to: "base";
1140             rel1.offset: -2 0;
1141             rel2.to: "base";
1142             rel2.offset: 1 1;
1143             image.border: 2 2 2 2;
1144             image.normal: "cur_shad.png";
1145          }
1146       }
1147       part { name: "base";
1148          mouse_events: 0;
1149          scale: 1;
1150          clip_to: "clip";
1151          description { state: "default" 0.0;
1152             min: 2 2;
1153             align: 0.5 1.0;
1154             rel1.relative: 0.0 1.0;
1155             rel1.offset: 0 -1;
1156             rel2.relative: 1.0 1.0;
1157             rel2.offset: -1 -1;
1158             image.normal: "cur_box.png";
1159          }
1160       }
1161       part { name: "hi";
1162          mouse_events: 0;
1163          clip_to: "clip";
1164          description { state: "default" 0.0;
1165             rel1.to: "base";
1166             rel2.to: "base";
1167             rel2.relative: 1.0 0.5;
1168             image.normal: "cur_hi.png";
1169          }
1170       }
1171       part { name: "shine";
1172          mouse_events: 0;
1173          clip_to: "clip";
1174          clip_to: "clip2";
1175          description { state: "default" 0.0;
1176             rel1.to: "base";
1177             rel2.to: "base";
1178             rel2.relative: 1.0 0.75;
1179             image.border: 2 2 1 0;
1180             image.normal: "cur_shine.png";
1181             fill.smooth: 0;
1182          }
1183       }
1184       part { name: "glow";
1185          mouse_events: 0;
1186          clip_to: "clip2";
1187          description { state: "default" 0.0;
1188             rel1.to: "base";
1189             rel1.relative: 0.0 -2.0;
1190             rel1.offset: -2 0;
1191             rel2.to: "base";
1192             rel2.relative: 1.0 0.0;
1193             rel2.offset: 1 1;
1194             image.border: 2 2 0 4;
1195             image.normal: "cur_glow.png";
1196             fill.smooth: 0;
1197          }
1198          description { state: "hidden" 0.0;
1199             inherit: "default" 0.0;
1200             color: 255 255 255 0;
1201          }
1202       }
1203    }
1204    programs {
1205       program { name: "show";
1206          signal: "show";
1207          source: "";
1208          action: STATE_SET "hidden" 0.0;
1209          in: 1.0 0.0;
1210          transition: DECELERATE 2.0;
1211          target: "glow";
1212          after: "show2";
1213       }
1214       program { name: "show2";
1215          action: STATE_SET "hidden" 0.0;
1216          in: 0.2 0.0;
1217          target: "clip";
1218          after: "show3";
1219       }
1220       program { name: "show3";
1221          action: STATE_SET "default" 0.0;
1222          in: 0.5 0.0;
1223          target: "clip";
1224          after: "show4";
1225       }
1226       program { name: "show4";
1227          action: STATE_SET "default" 0.0;
1228          in: 0.5 0.0;
1229          transition: DECELERATE 0.5;
1230          target: "glow";
1231          after: "show";
1232       }
1233       program { name: "focused";
1234          signal: "elm,action,focus";
1235          source: "elm";
1236          action: STATE_SET "focused" 0.0;
1237          target: "clip2";
1238       }
1239       program { name: "unfocused";
1240          signal: "elm,action,unfocus";
1241          source: "elm";
1242          action: STATE_SET "default" 0.0;
1243          target: "clip2";
1244       }
1245    }
1246 }
1247
1248 group { name: "elm/entry/selection/default";
1249    parts {
1250       part { name: "bg";
1251          type: RECT;
1252          mouse_events: 0;
1253          description { state: "default" 0.0;
1254             color: 128 128 128 128;
1255          }
1256       }
1257    }
1258 }
1259
1260 group { name: "elm/entry/anchor/default";
1261    parts {
1262       part { name: "bg";
1263          type: RECT;
1264          mouse_events: 0;
1265          description { state: "default" 0.0;
1266             color: 128 0 0 64;
1267          }
1268       }
1269    }
1270 }
1271