Migrating source code to RSA from private.
[framework/uifw/e17.git] / data / themes / samsung.edc
1 // TODO:
2 //   Formatting review.
3 //   Formatting Process: 1. http://tools.arantius.com/tabifier in C mode
4 //                       2. sed 's/\t/   /g' default.edc > formatted.edc
5 //                       3. Fix up defines, script{}, comments and other nicknacks.
6 //                       4. Replace ":    " with ": " and "//      " with "// " and so on.
7 //
8 //   Icons:
9 //      EFM - All popup icons ... eg, paste copy delete properties
10 //      Icons for Menus modules
11 //      Icon for Edge Bindings
12 //      Icon for Modes?
13 //      Replace all (well, most) instances of icon_dummy.png
14 //
15 /*
16  * So how do themes work?
17  *
18  * Themes DECLARE objects (groups of parts) inside a 'collections' section.
19  * Each of these groups are an element of a theme - much like an image in a
20  * web page with <img src=blah.jpg>, but MUCH more powerful. They can scale
21  * without just being stretched or tiled, they can react to all sorts of events
22  * from the user (mouse for example) or other logical events (like being shown
23  * or hidden, etc.) or synthetic signals from enlightenment itself indicating
24  * some new state.
25  *
26  * Each group is split into a parts section that contains all the elements
27  * that make up that group, and how they are laid out. Each part can have
28  * multiple states - described in description sections. There must always be
29  * at least a default description of value 0.0. After this there may possibly
30  * be a programs section. This defines behavior and how the group will react
31  * to events/signals.
32  *
33  * A theme is simply made up of a LOT of these. If a group is not provided in
34  * the theme you are using, it will fall back to the default theme to get the
35  * element. It is assumed the default theme is 100% complete and provides
36  * everything E needs. If this is not the case, there will be problems, so
37  * replace the default theme with great care. As long as the theme you make is
38  * just a normal "overlay" (and falls back to the default where things are
39  * missing) Things will be fairly safe. If you want to make a full default
40  * replacement you will need to methodically go through all of this file
41  * and make sure you have replaced/provided everything here.
42  */
43
44 /* Spectrum used in all the gradient icons
45  * This needs to be defined outside of the collections
46  *
47  * FIXME: this is bad. namespacing! FIXME!
48  */
49 #if 0
50 spectra {
51    spectrum {
52       name: "black_to_trans";
53       color: 0 0 0 255 1;
54       color: 0 0 0 0 1;
55    }
56 }
57 #endif
58 /* color classes are used to control the colors of text and also apply
59  * tints to images. These can be controlled with the colors dialog. Below
60  * are the standard color_class names that the module looks for in a
61  * theme. Consider color classes as a style that can be applied to many
62  * different items without tinkering with the theme.
63  *
64  * color: Font color     (Defaults to black)
65  * color2: Outline color  (Defaults to transparent)
66  * color3: Shadow color   (Defaults to transparent)
67  *
68  */
69
70 color_classes {
71    color_class {
72       name: "border_top";
73       color: 255 255 255 255;
74    }
75    color_class {
76       name: "border_top_hilight";
77       color: 255 255 255 255;
78    }
79    color_class {
80       name: "border_bottom";
81       color: 255 255 255 255;
82    }
83    color_class {
84       name: "border_title";
85       color: 0 0 0 255;
86    }
87    color_class {
88       name: "border_title_active";
89       color: 224 224 224 255;
90       color3: 0 0 0 64;
91    }
92    color_class {
93       name: "menu_base";
94       color: 255 255 255 255;
95    }
96    color_class {
97       name: "menu_title";
98       color: 224 224 224 255;
99       color3: 0 0 0 64;
100    }
101    color_class {
102       name: "menu_title_active";
103       color: 224 224 224 255;
104       color3: 0 0 0 64;
105    }
106    color_class {
107       name: "menu_item";
108       color: 0 0 0 255;
109       color3: 0 0 0 0;
110    }
111    color_class {
112       name: "menu_item_active";
113       color: 255 255 255 255;
114       color3: 0 0 0 64;
115    }
116    color_class {
117       name: "menu_item_disabled";
118       color: 110 110 110 255;
119       color3: 0 0 0 0;
120    }
121    color_class {
122       name: "shelf_base";
123       color: 255 255 255 255;
124    }
125    color_class {
126       name: "scrollframe_base";
127       color: 255 255 255 255;
128    }
129    color_class {
130       name: "winlist_label";
131       color: 0 0 0 255;
132    }
133    color_class {
134       name: "winlist_item";
135       color: 0 0 0 255;
136       color3: 0 0 0 0;
137    }
138    color_class {
139       name: "winlist_item_active";
140       color: 224 224 224 255;
141       color3: 0 0 0 64;
142    }
143    color_class {
144       name: "button_text";
145       color: 224 224 224 255;
146       color3: 0 0 0 64;
147    }
148    color_class {
149       name: "button_text_disabled";
150       color: 0 0 0 128;
151       color3: 0 0 0 0;
152    }
153    color_class {
154       name: "fileman_base";
155       color: 255 255 255 255;
156    }
157    color_class {
158       name: "ilist_item_base";
159       color: 255 255 255 255;
160    }
161    color_class {
162       name: "ilist_item_odd_base";
163       color: 255 255 255 255;
164    }
165    color_class {
166       name: "ilist_item_header_base";
167       color: 255 255 255 255;
168    }
169    color_class {
170       name: "ilist_item_header_odd_base";
171       color: 255 255 255 255;
172    }
173    color_class {
174       name: "ilist_item";
175       color: 0 0 0 255;
176       color3: 0 0 0 0;
177    }
178    color_class {
179       name: "ilist_item_odd";
180       color: 0 0 0 255;
181       color3: 0 0 0 0;
182    }
183    color_class {
184       name: "ilist_item_selected";
185       color: 255 255 255 255;
186       color3: 0 0 0 64;
187    }
188    color_class {
189       name: "ilist_item_header";
190       color: 224 224 224 255;
191       color3: 0 0 0 32;
192    }
193    color_class {
194       name: "ilist_item_header_odd";
195       color: 224 224 224 255;
196       color3: 0 0 0 32;
197    }
198    color_class {
199       name: "dialog_base";
200       color: 255 255 255 255;
201    }
202    color_class {
203       name: "move_text";
204       color: 0 0 0 255;
205    }
206    color_class {
207       name: "resize_text";
208       color: 0 0 0 255;
209    }
210    color_class {
211       name: "check_text";
212       color: 0 0 0 255;
213    }
214    color_class {
215       name: "check_text_disabled";
216       color: 0 0 0 128;
217    }
218    color_class {
219       name: "radio_text";
220       color: 0 0 0 255;
221    }
222    color_class {
223       name: "radio_text_disabled";
224       color: 0 0 0 128;
225    }
226    color_class {
227       name: "entry_text";
228       color: 0 0 0 255;
229    }
230    color_class {
231       name: "entry_text_disabled";
232       color: 128 128 128 255;
233    }
234    color_class {
235       name: "slider_text";
236       color: 0 0 0 255;
237    }
238    color_class {
239       name: "slider_text_disabled";
240       color: 0 0 0 128;
241    }
242    color_class {
243       name: "frame_base";
244       color: 255 255 255 255;
245    }
246    color_class {
247       name: "label_text";
248       color: 0 0 0 255;
249    }
250    color_class {
251       name: "label_text_disabled";
252       color: 0 0 0 128;
253    }
254    color_class {
255       name: "comp_focus-out_color";
256       color: 255 255 255 220;
257    }
258    color_class {
259       name: "tasks_text";
260       color: 0 0 0 255;
261       color3: 0 0 0 0;
262    }
263    color_class {
264       name: "tasks_text_focused";
265       color: 224 224 224 255;
266       color3: 0 0 0 64;
267    }
268 }
269
270 /*
271  * this section defines all the theme elements (a collection of groupings of
272  * parts (images, text, rects etc.))
273  */
274
275 collections {
276 /* begin the collection of edje groups that are in this file */
277
278 /////////////////////////////////////////////////////////////////////////////
279 /*** DEFAULT WALLPAPER ***/
280    group {
281       name: "e/desktop/background";
282       parts {
283          part {
284             name: "background_image";
285             type: RECT;
286             /* this is the base background */
287             description {
288                state: "default" 0.0;
289                /* its default state */
290                color: 0 0 0 255;
291             }
292          }
293       }
294    }
295    group {
296       name: "e/desktop/background/scrollframe";
297       parts {
298          part {
299             name: "clipper";
300             type: RECT;
301             mouse_events: 0;
302             description {
303                state: "default" 0.0;
304             }
305          }
306          part {
307             name: "e.swallow.content";
308             clip_to: "clipper";
309             type: SWALLOW;
310             description {
311                state: "default" 0.0;
312                rel1.offset: 0 0;
313                rel2 {
314                   relative: 0.0  0.0;
315                   offset: -1   -1;
316                }
317             }
318          }
319       }
320    }
321    group {
322       name: "e/desktop/background/scrollframe";
323       parts {
324          part {
325             name: "clipper";
326             type: RECT;
327             mouse_events: 0;
328             description {
329                state: "default" 0.0;
330             }
331          }
332          part {
333             name: "e.swallow.content";
334             clip_to: "clipper";
335             type: SWALLOW;
336             description {
337                state: "default" 0.0;
338                rel1.offset: 0 0;
339                rel2 {
340                   relative: 0.0  0.0;
341                   offset: -1   -1;
342                }
343             }
344          }
345       }
346    }
347
348 /////////////////////////////////////////////////////////////////////////////
349 /*** DEFAULT WINDOW BORDER ***/
350    group {
351       name: "e/widgets/border/default/border";
352       /* more images - for the border specifically. remember each images {}
353        * section fills a global images namespace, so if you re-use an image
354        * between sections, only 1 copy is kept, so names here are unique. if
355        * different image {} sections specify the same image but use different
356        * compression specifications, the compression scheme is undefined and
357        * may use any one of the schemes requested, so make sure you use the
358        * same compression scheme */
359       images {
360          image: "added_images/DM_Internet_Title_bg.png" COMP;
361          image: "added_images/DM_Internet_icon_close.png" COMP;
362          image: "added_images/DM_Internet_icon_Reduction.png" COMP;
363          image: "added_images/DM_Internet_icon_Zoom.png" COMP;
364          image: "added_images/DM_Internet_bg.png" COMP;
365          image: "added_images/DM_Internet_Address_bg.png" COMP;
366          image: "added_images/DM_Internet_Title_bg.png" COMP;
367          image: "bd_top.png" COMP;
368          image: "bd_top_hilight.png" COMP;
369          image: "bd_bottom.png" COMP;
370          image: "bd_title_bg.png" COMP;
371          image: "bd_title_over.png" COMP;
372          image: "bd_resize_b.png" COMP;
373          image: "busy-1.png" COMP;
374          image: "busy-2.png" COMP;
375          image: "busy-3.png" COMP;
376          image: "busy-4.png" COMP;
377          image: "busy-5.png" COMP;
378          image: "busy-6.png" COMP;
379          image: "busy-7.png" COMP;
380          image: "busy-8.png" COMP;
381          image: "busy-9.png" COMP;
382          image: "exclam.png" COMP;
383          image: "bd_button_close_shadow.png" COMP;
384          image: "bd_button_close_focused.png" COMP;
385          image: "bd_button_close_unfocused.png" COMP;
386          image: "bd_button_max_shadow.png" COMP;
387          image: "bd_button_max_focused.png" COMP;
388          image: "bd_button_max_unfocused.png" COMP;
389          image: "bd_button_min_shadow.png" COMP;
390          image: "bd_button_min_focused.png" COMP;
391          image: "bd_button_min_unfocused.png" COMP;
392       }
393       /* this would tell E that the border is not a solid rectanle, but is
394        * shaped (has transparent sections) and so would follow a different
395        * code path for such borders. the default is not shaped, so this is
396        * not enabled here, but left commented out for illustration purposes */
397       //      data.item: "shaped" "1";
398       parts {
399          part {
400             name: "top";
401             mouse_events: 0;
402             /* accept no mouse events here */
403             description {
404                state: "default" 0.0;
405                rel1 {
406                   /* this defines the top-left (rel1) point of the part
407                    * and where it is placed. the below values are
408                    * actually the default values, so there is no need
409                    * to actually declare them. */
410                   relative: 0.0 0.0;
411                   /* make this point relative to the top
412                    * left of the whole eje object (there
413                    * is no to: section so it's the whole
414                    * object). note that the point is
415                    * calculated as:
416                    *   p.x = obj.width * relative.x
417                    *   p.y = obj.height * relative.y
418                    * (as the to item is the whole object)
419                    */
420                   offset: 0 0;
421                   /* and from the relative point, have an offset
422                    * of 0 pixels - i.e. - none */
423                }
424                rel2 {
425                   relative: 1.0 1.0;
426                   /* the bottom-right is relative to the
427                    * base of the title - this way the
428                    * title region will scale based on font
429                    * size */
430                   to_y: "title_base";
431                   /* only y is relative to title_base. the
432                    * rest is relative to the whole object
433                    * (because its not specified) */
434                }
435                color_class: "border_top";
436                image {
437                   /* define the image to use */
438                   normal: "added_images/DM_Internet_Title_bg.png";
439                   /* the image */
440                }
441             }
442          }
443          part {
444             name: "bottom";
445             /* this is the bottom of the window */
446             mouse_events: 0;
447             description {
448                state: "default" 0.0;
449                rel1 {
450                   relative: 0.0 1.0;
451                }
452                rel2 {
453                   relative: 1.0 1.0;
454                }
455                color_class: "border_bottom";
456             }
457             description {
458                state: "shaded" 0.0;
459                /* when in a shaded state then
460                 * don't display this part */
461                inherit: "default" 0.0;
462                visible: 0;
463             }
464             description {
465                state: "max" 0.0;
466                /* whem maximised too */
467                inherit: "default" 0.0;
468                visible: 0;
469             }
470          }
471          part {
472             name: "icon_area";
473             /* this is an invisible rectangle that we
474              * use to place icons within. we use this
475              * to keep it fixed as the "icone area" so
476              * the actual swallow part that swallows
477              * the icon can be moved/resized for
478              * animations */
479             type: RECT;
480             description {
481                state: "default" 0.0;
482                visible: 0;
483                align: 0.0 0.0;
484                /* alignt to the left, but center vertically */
485                aspect: 1.0 1.0;
486                /* prefer ans aspect of 1.0 (ie width / height
487                 * is 1.0 - i.e. - square. aspect here is
488                 * min and max aspect that will be "allowed"
489                 * (since both min and max are 1.0 respectively
490                 * in order). */
491                aspect_preference: VERTICAL;
492                /* this means that the vertical
493                 * axis controls aspect and the
494                 * icon_area part size will be
495                 * governed by the height of the
496                 * part (the width simply following
497                 * along behind) */
498                rel1 {
499                   /* rel1 - top-left corner of this part */
500                   relative: 0.0 0.0;
501                }
502                rel2 {
503                   relative: 0.0 0.0;
504                }
505             }
506          }
507          part {
508             name: "icon_area2";
509             /* this area is another invisible rect
510              * that is used for shuffling around parts
511              * that are relative to it. the states
512              * below are just a few "random" offsets
513              * to make it look like whatever is
514              * relative to icon_area2 is "jiggling"
515              * around */
516             type: RECT;
517             description {
518                state: "default" 0.0;
519                visible: 0;
520                rel1.to: "icon_area";
521                rel2.to: "icon_area";
522             }
523             description {
524                state: "uw0" 0.0;
525                /* jiggle */
526                inherit: "default" 0.0;
527                rel1.offset: -3 -2;
528                rel2.offset: -4 -3;
529             }
530             description {
531                state: "uw1" 0.0;
532                /* jiggle some more */
533                inherit: "default" 0.0;
534                rel1.offset: 5 -2;
535                rel2.offset: 4 -3;
536             }
537             description {
538                state: "uw2" 0.0;
539                /* look at me - jiggling! */
540                inherit: "default" 0.0;
541                rel1.offset: -1 4;
542                rel2.offset: -2 3;
543             }
544             description {
545                state: "uw3" 0.0;
546                /* jiggling about */
547                inherit: "default" 0.0;
548                rel1.offset: -2 -1;
549                rel2.offset: -3 -2;
550             }
551             description {
552                state: "uw4" 0.0;
553                /* one more jiggle for the dummies */
554                inherit: "default" 0.0;
555                rel1.offset: -4 1;
556                rel2.offset: -5 0;
557             }
558          }
559          part {
560             name: "busy";
561             /* this is an animation to spin a wheel when the app
562              * seems too busy to respond to pings */
563             mouse_events: 0;
564             description {
565                state: "default" 0.0;
566                visible: 0;
567                /* nomrally the busy part is not visible */
568                color: 255 255 255 0;
569                /* and its alpha is 0 - se will fade it
570                 * inm later so alpha to 0 (but 255 255
571                 * 255 for white so we dont also go from
572                 * dark to white while fading) */
573                max: 32 32;
574                /* no bigger than 32x32 - but allow it to be
575                 * smaller if needed */
576                aspect: 1.0 1.0;
577                /* square aspect */
578                aspect_preference: BOTH;
579                /* both axes determine aspect. that
580                 * means that the icon area may
581                 * be 100x50, but the aspect is 1.0
582                 * so therefore it will be 50x50 as the
583                 * max size. if the area is 50x100 it
584                 * will still be 50x50 as it must fit
585                 * WITHIN the bounds of BOTH axes */
586                rel1.to: "icon_area";
587                rel2.to: "icon_area";
588                image {
589                   tween: "busy-1.png";
590                   tween: "busy-2.png";
591                   tween: "busy-3.png";
592                   tween: "busy-4.png";
593                   tween: "busy-5.png";
594                   tween: "busy-6.png";
595                   tween: "busy-7.png";
596                   tween: "busy-8.png";
597                   normal: "busy-9.png";
598                   /* and we use image tweening. that
599                    * means that we flip through a series
600                    * of images when moving TO this state
601                    * over the transition time. it's like
602                    * specifying multiple frames of an
603                    * animatin sequence. the "final"
604                    * state is "normal". the images
605                    * between are the "tween" images
606                    * listed in order working towards
607                    * the "normal" image */
608                }
609             }
610             description {
611                state: "visible" 0.0;
612                /* the visible state - inherit the
613                 * default one as its all the same, but
614                 * its visible and faded in */
615                inherit: "default" 0.0;
616                visible: 1;
617                color: 255 255 255 255;
618             }
619          }
620          part {
621             name: "e.swallow.icon";
622             /* finally a swallow part - this is
623              * just a placeholder to SWALLOW
624              * other external evas objects into
625              * this region and edje will control
626              * any object swallowed as if it were
627              * this part itself (move, resize,
628              * etc.) */
629             type: SWALLOW;
630             description {
631                state: "default" 0.0;
632                aspect: 1.0 1.0;
633                aspect_preference: BOTH;
634                rel1.to: "icon_area2";
635                rel2.to: "icon_area2";
636             }
637             description {
638                state: "shrunk" 0.0;
639                inherit: "default" 0.0;
640                rel1.relative: 0.3 0.3;
641                rel2.relative: 0.7 0.7;
642             }
643          }
644          part {
645             name: "urgent";
646             /* this is the urgnt part it is normally not
647              * visible, but when the window is in an
648              * urgent state (the app has set the urgency
649              * hint) then we go to the visible state */
650             mouse_events: 0;
651             description {
652                state: "default" 0.0;
653                visible: 0;
654                color: 255 255 255 0;
655                aspect: 1.0 1.0;
656                aspect_preference: BOTH;
657                rel1.to: "icon_area";
658                rel2.to: "icon_area";
659                image.normal: "exclam.png";
660             }
661             description {
662                state: "visible" 0.0;
663                /* and in the visible state put the
664                 * exlamation image on top of the icon */
665                inherit: "default" 0.0;
666                visible: 1;
667                color: 255 255 255 255;
668             }
669          }
670          part {
671             name: "urgent2";
672             /* this is another urgent element. it is actually
673              * zoomed out to be larger and faded out at the
674              * same time to give a "pulsating" look to the
675              * exclamation mark to bring attention to it */
676             mouse_events: 0;
677             description {
678                state: "default" 0.0;
679                visible: 0;
680                color: 255 255 255 0;
681                aspect: 1.0 1.0;
682                aspect_preference: BOTH;
683                rel1.to: "icon_area";
684                rel2.to: "icon_area";
685                image.normal: "exclam.png";
686             }
687             description {
688                state: "visible" 0.0;
689                inherit: "default" 0.0;
690                visible: 1;
691                color: 255 255 255 255;
692             }
693             description {
694                state: "faded" 0.0;
695                inherit: "default" 0.0;
696                rel1.relative: -1.0 -1.0;
697                rel2.relative: 2.0 2.0;
698                visible: 1;
699                color: 255 255 255 0;
700             }
701          }
702          part {
703             name: "e.text.title";
704             /* this is a text part - the black
705              * text on the white title top image */
706             type: TEXT;
707             mouse_events: 0;
708             /* allow this part to scale by a scale factor (dpi) */
709             description {
710                state: "default" 0.0;
711                visible: 1;
712                align: 0.5 0.0;
713                /* align top and left */
714                rel1 {
715                   relative: 1.0 0.0;
716                   offset: 9 2;
717                   to_x: "icon_area";
718                   /* relative to the right side of the icon
719                    * area but 9 pixels away */
720                }
721                rel2 {
722                   relative: 1.0 0.0;
723                   /* and the bottom right is inset by 8
724                    * pixels from the right of "title_base"
725                    * but as its aligned to the top we can
726                    * keep this at 2 pixels from the top of
727                    * the whole edje object and let alignment
728                    * make it extend downward from that point
729                    * with the text size defining the min size
730                    * vertically below */
731                   offset: -8 2;
732                   to_x: "title_base";
733                }
734                color: 255 255 255 255;
735                /* give it a color class so people
736                 * can re-color it if they want */
737                text {
738                   font: "Sans";
739                   /* Use the Bold style
740                    * of the Sans font from
741                    * fontconfig */
742                   size: 14;
743                   /* size in pixels - 10 */
744                   min: 0 1;
745                   /* the text will not determine minimum horizontal
746                    * size but WILL determine minimal vertical size
747                    * (thus 0 1 - horiz then vert flags) */
748                   align: 0.5 0.0;
749                   /* align text to top-left of the region
750                    * given */
751                   text_class: "title_bar";
752                   /* text class - so font and size
753                    * can be changed by users */
754                }
755             }
756             description {
757                state: "focused" 0.0;
758                /* when the border is focused
759                 * then make the text fade out
760                 * and vanish */
761                inherit: "default" 0.0;
762                visible: 0;
763                align: 0.5 0.0;
764                color: 0 0 0 0;
765             }
766          }
767          part {
768             name: "bt_close";
769             /* the close button shadow */
770             mouse_events: 0;
771             description {
772                state: "default" 0.0;
773                min: 14 14;
774                /* min and max size are the same, so never
775                 * resize this */
776                max: 14 14;
777                aspect: 1.0 1.0;
778                /* square - always */
779                aspect_preference: VERTICAL;
780                /* the vetical axis controls size
781                 * when applying the aspect ratio
782                 * hint above */
783                rel1 {
784                   relative: 1.0 0.0;
785                   offset: -28 1;
786                   to_x: "top";
787                   to_y: "top";
788                }
789                rel2 {
790                   relative: 1.0 1.0;
791                   offset: -14 -2;
792                   to_x: "top";
793                   to_y: "top";
794                }
795                image.normal: "added_images/DM_Internet_icon_close.png";
796             }
797          }
798          part {
799             name: "bt_max";
800             /* maximize button shadow */
801             mouse_events: 0;
802             description {
803                state: "default" 0.0;
804                align: 1.0 0.5;
805                min: 14 14;
806                max: 14 14;
807                aspect: 1.0 1.0;
808                aspect_preference: VERTICAL;
809                rel1 {
810                   relative: 0.0 0.0;
811                   offset: -2 1;
812                   to_x: "bt_close";
813                   /* left of the close button */
814                   to_y: "top";
815                }
816                rel2 {
817                   relative: 0.0 1.0;
818                   offset: -2 -2;
819                   to_x: "bt_close";
820                   /* left of the close button */
821                   to_y: "top";
822                }
823                image.normal: "added_images/DM_Internet_icon_Zoom.png";
824             }
825          }
826          part {
827             name: "bt_min";
828             /* minimize button shadow */
829             mouse_events: 0;
830             description {
831                state: "default" 0.0;
832                align: 1.0 0.5;
833                min: 14 14;
834                max: 14 14;
835                aspect: 1.0 1.0;
836                aspect_preference: VERTICAL;
837                rel1 {
838                   relative: 0.0 0.0;
839                   offset: -2 1;
840                   to_x: "bt_max";
841                   /* left of the maximize button */
842                   to_y: "top";
843                }
844                rel2 {
845                   relative: 0.0 1.0;
846                   offset: -2 -2;
847                   to_x: "bt_max";
848                   /* left of the maximize button */
849                   to_y: "top";
850                }
851                image.normal: "added_images/DM_Internet_icon_Reduction.png";
852             }
853          }
854          part {
855             name: "top_hilight";
856             /* an overlayed image to give the top of
857              * a border a shiny look - very subtle */
858             mouse_events: 0;
859             description {
860                state: "default" 0.0;
861                rel1 {
862                   relative: 0.0 0.0;
863                   offset: 0 0;
864                   to: "top";
865                }
866                rel2 {
867                   relative: 1.0 0.5;
868                   offset: -1 0;
869                   to: "top";
870                }
871                color_class: "border_top_hilight";
872                fill.smooth: 0;
873             }
874          }
875          part {
876             name: "buttons_unfoc";
877             /* this is a rect part used to clip &
878              * thus control the visibility of a group
879              * of other parts (the images for the
880              * buttons themselves) with just 1 part
881              * doing the control as it acts as a
882              * master switch for all things clipped
883              * to this part */
884             type: RECT;
885             description {
886                state: "default" 0.0;
887                visible: 1;
888                color: 255 255 255 255;
889                /* visible and solid */
890             }
891             description {
892                state: "focused" 0.0;
893                inherit: "default" 0.0;
894                visible: 0;
895                color: 255 255 255 0;
896                /* invisible and transparent */
897             }
898          }
899          part {
900             name: "bt_close_unfoc";
901             mouse_events: 0;
902             clip_to: "buttons_unfoc";
903             /* clipping (thus visible region and
904              * color + alpah is controlled by the
905              * clip object */
906             description {
907                state: "default" 0.0;
908                rel1.to: "bt_close";
909                rel2.to: "bt_close";
910                image.normal: "added_images/DM_Internet_icon_close.png";
911             }
912             description {
913                state: "active" 0.0;
914                inherit: "default" 0.0;
915                rel1.offset: 0 1;
916                rel2.offset: -1 0;
917             }
918          }
919          part {
920             name: "bt_max_unfoc";
921             mouse_events: 0;
922             clip_to: "buttons_unfoc";
923             description {
924                state: "default" 0.0;
925                rel1.to: "bt_max";
926                rel2.to: "bt_max";
927                image.normal: "added_images/DM_Internet_icon_Zoom.png";
928             }
929             description {
930                state: "active" 0.0;
931                inherit: "default" 0.0;
932                rel1.offset: 0 1;
933                rel2.offset: -1 0;
934             }
935          }
936          part {
937             name: "bt_min_unfoc";
938             mouse_events: 0;
939             clip_to: "buttons_unfoc";
940             description {
941                state: "default" 0.0;
942                rel1.to: "bt_min";
943                rel2.to: "bt_min";
944                image.normal: "added_images/DM_Internet_icon_Reduction.png";
945             }
946             description {
947                state: "active" 0.0;
948                inherit: "default" 0.0;
949                rel1.offset: 0 1;
950                rel2.offset: -1 0;
951             }
952          }
953          part {
954             name: "buttons_foc";
955             /* another rect object for clipping */
956             type: RECT;
957             description {
958                state: "default" 0.0;
959                visible: 0;
960                color: 255 255 255 0;
961             }
962             description {
963                state: "focused" 0.0;
964                inherit: "default" 0.0;
965                visible: 1;
966                color: 255 255 255 255;
967             }
968          }
969          part {
970             name: "bt_close_foc";
971             mouse_events: 0;
972             clip_to: "buttons_foc";
973             /* controlled by the other clip object */
974             description {
975                state: "default" 0.0;
976                rel1.to: "bt_close";
977                rel2.to: "bt_close";
978                image.normal: "added_images/DM_Internet_icon_close.png";
979             }
980             description {
981                state: "active" 0.0;
982                inherit: "default" 0.0;
983                rel1.offset: 0 1;
984                rel2.offset: -1 0;
985             }
986          }
987          part {
988             name: "bt_max_foc";
989             mouse_events: 0;
990             clip_to: "buttons_foc";
991             description {
992                state: "default" 0.0;
993                rel1.to: "bt_max";
994                rel2.to: "bt_max";
995                image.normal: "added_images/DM_Internet_icon_Zoom.png";
996             }
997             description {
998                state: "active" 0.0;
999                inherit: "default" 0.0;
1000                rel1.offset: 0 1;
1001                rel2.offset: -1 0;
1002             }
1003          }
1004          part {
1005             name: "bt_min_foc";
1006             mouse_events: 0;
1007             clip_to: "buttons_foc";
1008             description {
1009                state: "default" 0.0;
1010                rel1.to: "bt_min";
1011                rel2.to: "bt_min";
1012                image.normal: "added_images/DM_Internet_icon_Reduction.png";
1013             }
1014             description {
1015                state: "active" 0.0;
1016                inherit: "default" 0.0;
1017                rel1.offset: 0 1;
1018                rel2.offset: -1 0;
1019             }
1020          }
1021          part {
1022             name: "title_base";
1023             /* an invisible rect part/object used for
1024              * layout purposes */
1025             type: RECT;
1026             mouse_events: 0;
1027             description {
1028                state: "default" 0.0;
1029                visible: 0;
1030                rel1 {
1031                   relative: 1.0 0.0;
1032                   offset: 0 0;
1033                   to_x: "icon_area";
1034                }
1035                rel2 {
1036                   relative: 0.0 1.0;
1037                   offset: -3 4;
1038                   to_y: "e.text.title";
1039                   to_x: "bt_min";
1040                }
1041             }
1042          }
1043          part {
1044             name: "title_back";
1045             mouse_events: 0;
1046             description {
1047                state: "default" 0.0;
1048                visible: 0;
1049                rel1 {
1050                   to: "title_base";
1051                }
1052                rel2 {
1053                   to: "title_base";
1054                   relative: 1.0 0.0;
1055                }
1056                fill.smooth: 0;
1057             }
1058             description {
1059                state: "focused" 0.0;
1060                inherit: "default" 0.0;
1061                visible: 1;
1062                rel2 {
1063                   to: "title_base";
1064                   relative: 1.0 1.0;
1065                }
1066             }
1067          }
1068          part {
1069             name: "title2";
1070             /* this is interesting. it's another text part
1071              * that also displays the title text, but
1072              * normally is not visible. it is only made
1073              * visibile when the window becomes focused.
1074              * what is interesting is we tell it to source
1075              * the text content from another part - i.e.
1076              * the master "title" part which E sets the
1077              * text of. when that changes this part also
1078              * changes its text. this is a good way to
1079              * use multiple text objects for effects and
1080              * other things that can copy/mimic the content
1081              * of another part */
1082             type: TEXT;
1083             mouse_events: 0;
1084             effect: SOFT_SHADOW;
1085             /* different style to before - because its
1086              * focused */
1087             description {
1088                state: "default" 0.0;
1089                visible: 0;
1090                align: 0.0 1.0;
1091                rel1 {
1092                   to_x: "e.text.title";
1093                   to_y: "title_back";
1094                   relative: 0.0 1.0;
1095                   offset: -1 0;
1096                }
1097                rel2 {
1098                   to_x: "e.text.title";
1099                   to_y: "title_back";
1100                   relative: 1.0 1.0;
1101                   offset: 0 0;
1102                }
1103                color_class: "border_title_active";
1104                text {
1105                   text_source: "e.text.title";
1106                   /* and here is the magic. tell
1107                    * the text to be sourced from
1108                    * another part */
1109                   font: "Sans:style=Bold";
1110                   size: 10;
1111                   align: 0.5 0.0;
1112                   min: 0 1;
1113                   text_class: "title_bar";
1114                }
1115             }
1116             description {
1117                state: "focused" 0.0;
1118                inherit: "default" 0.0;
1119                visible: 1;
1120             }
1121          }
1122          part {
1123             name: "title_over";
1124             mouse_events: 0;
1125             description {
1126                state: "default" 0.0;
1127                visible: 0;
1128                rel1.to: "title_back";
1129                rel2.to: "title_back";
1130                fill.smooth: 0;
1131             }
1132             description {
1133                state: "focused" 0.0;
1134                inherit: "default" 0.0;
1135                visible: 1;
1136             }
1137          }
1138          part {
1139             name: "bottom_clip";
1140             type: RECT;
1141             description {
1142                state: "default" 0.0;
1143                rel1.to: "bottom";
1144                rel2.to: "bottom";
1145                color: 255 255 255 255;
1146             }
1147          }
1148          part {
1149             name: "resize_b";
1150             mouse_events: 0;
1151             clip_to: "bottom_clip";
1152             description {
1153                state: "default" 0.0;
1154                min: 20 10;
1155                max: 20 10;
1156                rel1 {
1157                   to: "bottom";
1158                   relative: 0.5 0.0;
1159                   offset: 0 -10;
1160                }
1161                rel2 {
1162                   to: "bottom";
1163                   relative: 0.5 0.0;
1164                   offset: 0 -1;
1165                }
1166             }
1167             description {
1168                state: "past" 0.0;
1169                inherit: "default" 0.0;
1170                rel1 {
1171                   relative: 0.5 1.0;
1172                   offset: 0 0;
1173                }
1174                rel2 {
1175                   relative: 0.5 1.0;
1176                   offset: 0 9;
1177                }
1178             }
1179          }
1180          part {
1181             name: "e.swallow.client";
1182             /* this determines where the actual
1183              * client window will be placed in
1184              * the border design */
1185             type: SWALLOW;
1186             description {
1187                state: "default" 0.0;
1188                rel1 {
1189                   relative: 0.0 1.0;
1190                   offset: 0 0;
1191                   to_y: "top";
1192                }
1193                rel2 {
1194                   relative: 1.0 0.0;
1195                   offset: -1 -1;
1196                   to_y: "bottom";
1197                }
1198             }
1199             description {
1200                state: "shaded" 0.0;
1201                inherit: "default" 0.0;
1202                rel2 {
1203                   relative: 1.0 1.0;
1204                   offset: -1 -1;
1205                   to_y: "bottom";
1206                }
1207             }
1208             description {
1209                state: "max" 0.0;
1210                inherit: "default" 0.0;
1211                rel1 {
1212                   relative: 0.0 1.0;
1213                   offset: 0 0;
1214                   to_y: "top";
1215                }
1216                rel2 {
1217                   relative: 1.0 1.0;
1218                   offset: -1 -1;
1219                   to_y: "bottom";
1220                }
1221             }
1222          }
1223          /* these transparent rect parts are used for catching events in a way
1224           * here objects for design don't affect the events. these parts
1225           * are named speciifcally because E has config listening for specific
1226           * signals (events) coming from these named parts and based on those
1227           * will perform certain actions. these are actually all configurable
1228           * by the user, so if they want, clicking the logical "titlebar" could
1229           * close the window, not move it, and so on. the user decides this.
1230           * the theme designer simply indicates the "logcal" use of the theme
1231           * elements they have created */
1232          part {
1233             name: "e.event.titlebar";
1234             type: RECT;
1235             description {
1236                state: "default" 0.0;
1237                rel1.to: "title_base";
1238                rel2.to: "title_base";
1239                color: 0 0 0 0;
1240             }
1241          }
1242          part {
1243             name: "e.event.resize.t";
1244             type: RECT;
1245             description {
1246                state: "default" 0.0;
1247                rel1 {
1248                   relative: 0.0 0.0;
1249                   offset: 0 0;
1250                }
1251                rel2 {
1252                   relative: 1.0 0.0;
1253                   offset: -1 3;
1254                }
1255                color: 0 0 0 0;
1256             }
1257             description {
1258                state: "shaded" 0.0;
1259                inherit: "default" 0.0;
1260                visible: 0;
1261             }
1262          }
1263          part {
1264             name: "e.event.resize.b";
1265             type: RECT;
1266             description {
1267                state: "default" 0.0;
1268                rel1 {
1269                   relative: 0.0 1.0;
1270                   offset: 0 -4;
1271                }
1272                rel2 {
1273                   relative: 1.0 1.0;
1274                   offset: -1 -1;
1275                }
1276                color: 0 0 0 0;
1277             }
1278             description {
1279                state: "shaded" 0.0;
1280                inherit: "default" 0.0;
1281                visible: 0;
1282             }
1283          }
1284          part {
1285             name: "e.event.resize.tl";
1286             type: RECT;
1287             description {
1288                state: "default" 0.0;
1289                rel1 {
1290                   relative: 0.0 0.0;
1291                   offset: 0 0;
1292                }
1293                rel2 {
1294                   relative: 0.0 0.0;
1295                   offset: 15 15;
1296                }
1297                color: 0 0 0 0;
1298             }
1299             description {
1300                state: "shaded" 0.0;
1301                inherit: "default" 0.0;
1302                visible: 0;
1303             }
1304          }
1305          part {
1306             name: "e.event.resize.tr";
1307             type: RECT;
1308             description {
1309                state: "default" 0.0;
1310                rel1 {
1311                   relative: 1.0 0.0;
1312                   offset: -16 0;
1313                }
1314                rel2 {
1315                   relative: 1.0 0.0;
1316                   offset: -1 15;
1317                }
1318                color: 0 0 0 0;
1319             }
1320             description {
1321                state: "shaded" 0.0;
1322                inherit: "default" 0.0;
1323                visible: 0;
1324             }
1325          }
1326          part {
1327             name: "e.event.resize.bl";
1328             type: RECT;
1329             description {
1330                state: "default" 0.0;
1331                rel1 {
1332                   relative: 0.0 1.0;
1333                   offset: 0 -16;
1334                }
1335                rel2 {
1336                   relative: 0.0 1.0;
1337                   offset: 15 -1;
1338                }
1339                color: 0 0 0 0;
1340             }
1341             description {
1342                state: "shaded" 0.0;
1343                inherit: "default" 0.0;
1344                visible: 0;
1345             }
1346          }
1347          part {
1348             name: "e.event.resize.br";
1349             type: RECT;
1350             description {
1351                state: "default" 0.0;
1352                rel1 {
1353                   relative: 1.0 1.0;
1354                   offset: -16 -16;
1355                }
1356                rel2 {
1357                   relative: 1.0 1.0;
1358                   offset: -1 -1;
1359                }
1360                color: 0 0 0 0;
1361             }
1362             description {
1363                state: "shaded" 0.0;
1364                inherit: "default" 0.0;
1365                visible: 0;
1366             }
1367          }
1368          part {
1369             name: "e.event.icon";
1370             type: RECT;
1371             description {
1372                state: "default" 0.0;
1373                rel1.to: "icon_area";
1374                rel2.to: "icon_area";
1375                color: 0 0 0 0;
1376             }
1377          }
1378          part {
1379             name: "e.event.close";
1380             type: RECT;
1381             description {
1382                state: "default" 0.0;
1383                rel1.to: "bt_close";
1384                rel2.to: "bt_close";
1385                color: 0 0 0 0;
1386             }
1387          }
1388          part {
1389             name: "e.event.minimize";
1390             type: RECT;
1391             description {
1392                state: "default" 0.0;
1393                rel1.to: "bt_min";
1394                rel2.to: "bt_min";
1395                color: 0 0 0 0;
1396             }
1397          }
1398          part {
1399             name: "e.event.maximize";
1400             type: RECT;
1401             description {
1402                state: "default" 0.0;
1403                rel1.to: "bt_max";
1404                rel2.to: "bt_max";
1405                color: 0 0 0 0;
1406             }
1407          }
1408       }
1409       /* programs - these are basically snippets of simple logic to respond to
1410        * incoming signals (generated by signal emisions by code or events) */
1411       programs {
1412          program {
1413             name: "focus_in";
1414             /* name of the program. must be unique
1415              * within the list of programs attached
1416              * to a group of parts */
1417             signal: "e,state,focused";
1418             /* what signal triggers this program,
1419              * if any. this can also be a glob like
1420              * "mouse,down,*" for example. note
1421              * that globs are slower to match
1422              * and empty strings are literal matches
1423              * too */
1424             source: "e";
1425             /* the source of the signal - this must also match for
1426              * the program to be run */
1427             action: STATE_SET "default" 0.0;
1428             /* the action the program will
1429              * perform. in this case
1430              * it will set the state to
1431              * "focused" @ value 0.0 */
1432             target: "title_back";
1433             /* these are the targets for the action.
1434              * i.e. which parts will have their state
1435              * set to "focused" over 0.2 seconds */
1436             target: "title2";
1437             target: "title_over";
1438             target: "buttons_foc";
1439             target: "buttons_unfoc";
1440             target: "e.text.title";
1441          }
1442          program {
1443             name: "focus_out";
1444             /* this program is run when focus is
1445              * removed from a window border */
1446             signal: "e,state,unfocused";
1447             source: "e";
1448             action: STATE_SET "default" 0.0;
1449             target: "title_back";
1450             target: "title2";
1451             target: "title_over";
1452             target: "buttons_foc";
1453             target: "buttons_unfoc";
1454             target: "e.text.title";
1455          }
1456          program {
1457             name: "urgent";
1458             /* this program is run when the border is
1459              * meant to display an "urgent" state
1460              * (the application has something
1461              * important to show the user) */
1462             signal: "e,state,urgent";
1463             source: "e";
1464             action: STATE_SET "visible" 0.0;
1465             transition: DECELERATE 0.5;
1466             /* instead of a linear transition
1467              * this will vary from state A to B
1468              * but slow down towards the end */
1469             target: "urgent";
1470             target: "urgent2";
1471             after: "urgent2";
1472             /* when this program and its transition are
1473              * finished then chain (run) the "urgent2"
1474              * program below. this way a series of actions
1475              * and trnasitions can be chained together one
1476              * after the other */
1477          }
1478          program {
1479             name: "urgent2";
1480             action: STATE_SET "faded" 0.0;
1481             transition: LINEAR 0.5;
1482             target: "urgent2";
1483             after: "urgent3";
1484          }
1485          program {
1486             name: "urgent3";
1487             action: STATE_SET "visible" 0.0;
1488             target: "urgent2";
1489             /* notice - no transition. when not specified
1490              * it is assumed that the action should happen
1491              * immediately with no transition over time */
1492             after: "urgent2";
1493          }
1494          program {
1495             name: "urgentw0";
1496             /* these ae a list of icon "wobble"
1497              * programs to indicate urgency */
1498             signal: "e,state,urgent";
1499             source: "e";
1500             action: STATE_SET "default" 0.0;
1501             transition: DECELERATE 0.1;
1502             target: "icon_area2";
1503             after: "urgentw1";
1504          }
1505          program {
1506             name: "urgentw1";
1507             action: STATE_SET "uw1" 0.0;
1508             transition: DECELERATE 0.1;
1509             target: "icon_area2";
1510             after: "urgentw2";
1511          }
1512          program {
1513             name: "urgentw2";
1514             action: STATE_SET "uw2" 0.0;
1515             target: "icon_area2";
1516             transition: DECELERATE 0.1;
1517             after: "urgentw3";
1518          }
1519          program {
1520             name: "urgentw3";
1521             action: STATE_SET "uw3" 0.0;
1522             transition: DECELERATE 0.1;
1523             target: "icon_area2";
1524             after: "urgentw4";
1525          }
1526          program {
1527             name: "urgentw4";
1528             action: STATE_SET "uw4" 0.0;
1529             transition: DECELERATE 0.1;
1530             target: "icon_area2";
1531             after: "urgentw0";
1532          }
1533          program {
1534             name: "not_urgent";
1535             /* run when the window stops being
1536              * urgent */
1537             signal: "e,state,not_urgent";
1538             source: "e";
1539             action: ACTION_STOP;
1540             /* this action will stop other running programs
1541              * that are currently active. the programs to
1542              * stop are named in the targets below */
1543             target: "urgentw0";
1544             target: "urgentw1";
1545             target: "urgentw2";
1546             target: "urgentw3";
1547             target: "urgentw4";
1548             target: "urgent";
1549             target: "urgent2";
1550             target: "urgent3";
1551             after: "not_urgent2";
1552          }
1553          program {
1554             name: "not_urgent2";
1555             action: STATE_SET "default" 0.0;
1556             target: "urgent";
1557             target: "urgent2";
1558             target: "icon_area2";
1559          }
1560          program {
1561             name: "hung";
1562             /* run when an app is known to be hung/not
1563              * responding to ping requests */
1564             signal: "e,state,hung";
1565             source: "e";
1566             action: STATE_SET "shrunk" 0.0;
1567             target: "e.swallow.icon";
1568             transition: DECELERATE 0.5;
1569          }
1570          program {
1571             name: "unhung";
1572             /* when an app was hung but has started to
1573              * respond again, this is run */
1574             signal: "e,state,unhung";
1575             source: "e";
1576             action: ACTION_STOP;
1577             target: "busy_anim";
1578          }
1579          program {
1580             name: "unhung2";
1581             signal: "e,state,unhung";
1582             source: "e";
1583             action: STATE_SET "default" 0.0;
1584             target: "e.swallow.icon";
1585             target: "busy";
1586             transition: ACCELERATE 0.5;
1587          }
1588          program {
1589             name: "busy_anim";
1590             /* multiple programs can be triggered
1591              * from the same signals so this is
1592              * also run when an app becomes "hung" */
1593             signal: "e,state,hung";
1594             source: "e";
1595             action: STATE_SET "visible" 0.0;
1596             transition: LINEAR 0.3333;
1597             target: "busy";
1598             after: "busy_anim";
1599          }
1600          // don't have states/anim for a generic iconify action
1601          //    program { name: "xx";
1602          //       signal: "e,action,iconify";
1603          //       source: "e";
1604          //    }
1605          // don't have states/anim for a generic uniconify action
1606          //    program { name: "xx";
1607          //       signal: "e,action,uniconify";
1608          //       source: "e";
1609          //    }
1610          // don't have states/anim for a generic maximize action
1611          //    program { name: "xx";
1612          //       signal: "e,action,maximize";
1613          //       source: "e";
1614          //    }
1615          // don't have states/anim for a generic unmaximize action
1616          //    program { name: "xx";
1617          //       signal: "e,action,unmaximize";
1618          //       source: "e";
1619          //    }
1620          program {
1621             name: "max_full";
1622             /* run on fullscreen maximize */
1623             signal: "e,action,maximize,fullscreen";
1624             source: "e";
1625             action: STATE_SET "max" 0.0;
1626             target: "bottom";
1627             target: "e.swallow.client";
1628          }
1629          program {
1630             name: "unmax_full";
1631             /* run on unmaximize from fullscreen */
1632             signal: "e,action,unmaximize,fullscreen";
1633             source: "e";
1634             action: STATE_SET "default" 0.0;
1635             target: "bottom";
1636             target: "e.swallow.client";
1637          }
1638          // don't have any animation or stat change to do at the start of shading
1639          //    program { name: "xx";
1640          //       signal: "e,state,shading";
1641          //       source: "e";
1642          //    }
1643          program {
1644             name: "shade_end";
1645             /* run when the window finishes its
1646              * shading animation */
1647             signal: "e,state,shaded";
1648             source: "e";
1649             action: STATE_SET "shaded" 0.0;
1650             target: "bottom";
1651             target: "e.swallow.client";
1652             target: "e.event.resize.tl";
1653             target: "e.event.resize.tr";
1654             target: "e.event.resize.bl";
1655             target: "e.event.resize.br";
1656             target: "e.event.resize.t";
1657             target: "e.event.resize.b";
1658          }
1659          program {
1660             name: "unshade_start";
1661             /* run when the window starts
1662              * unshading itself */
1663             signal: "e,state,unshading";
1664             source: "e";
1665             action: STATE_SET "default" 0.0;
1666             target: "bottom";
1667             target: "e.swallow.client";
1668             target: "e.event.resize.tl";
1669             target: "e.event.resize.tr";
1670             target: "e.event.resize.bl";
1671             target: "e.event.resize.br";
1672             target: "e.event.resize.t";
1673             target: "e.event.resize.b";
1674          }
1675          // don't have any animation or stat change to do at the end of unshading
1676          //    program { name: "xx";
1677          //       signal: "e,state,unshaded";
1678          //       source: "e";
1679          //    }
1680          program {
1681             name: "resize_b_on";
1682             signal: "mouse,in";
1683             /* on mouse enter... */
1684             source: "e.event.resize.b";
1685             /* in this named part */
1686             action: ACTION_STOP;
1687             /* stop the following programs */
1688             target: "resize_b_on2";
1689             target: "resize_b_on3";
1690             after: "resize_b_on2";
1691             /* then run... */
1692          }
1693          program {
1694             name: "resize_b_on2";
1695             action: STATE_SET "default" 0.0;
1696             target: "resize_b";
1697             after: "resize_b_on3";
1698          }
1699          program {
1700             name: "resize_b_on3";
1701             action: STATE_SET "past" 0.0;
1702             transition: LINEAR 0.5;
1703             target: "resize_b";
1704             after: "resize_b_on2";
1705          }
1706          program {
1707             name: "resize_b_off";
1708             signal: "mouse,out";
1709             /* on mouse leave... */
1710             source: "e.event.resize.b";
1711             action: ACTION_STOP;
1712             target: "resize_b_on";
1713             target: "resize_b_on2";
1714             target: "resize_b_on3";
1715          }
1716          program {
1717             name: "icon_down";
1718             signal: "mouse,down,*";
1719             /* if any mouse button is pressed... */
1720             source: "e.event.icon";
1721             action: STATE_SET "active" 0.0;
1722             target: "icon_area";
1723          }
1724          program {
1725             name: "icon_up";
1726             signal: "mouse,up,*";
1727             /* if any mouse button is released... */
1728             source: "e.event.icon";
1729             action: STATE_SET "default" 0.0;
1730             target: "icon_area";
1731          }
1732          program {
1733             name: "bt_close_down";
1734             signal: "mouse,down,*";
1735             source: "e.event.close";
1736             action: STATE_SET "active" 0.0;
1737             target: "bt_close_unfoc";
1738             target: "bt_close_foc";
1739          }
1740          program {
1741             name: "bt_close_up";
1742             signal: "mouse,up,*";
1743             source: "e.event.close";
1744             action: STATE_SET "default" 0.0;
1745             target: "bt_close_unfoc";
1746             target: "bt_close_foc";
1747          }
1748          program {
1749             name: "bt_max_down";
1750             signal: "mouse,down,*";
1751             source: "e.event.maximize";
1752             action: STATE_SET "active" 0.0;
1753             target: "bt_max_unfoc";
1754             target: "bt_max_foc";
1755          }
1756          program {
1757             name: "bt_max_up";
1758             signal: "mouse,up,*";
1759             source: "e.event.maximize";
1760             action: STATE_SET "default" 0.0;
1761             target: "bt_max_unfoc";
1762             target: "bt_max_foc";
1763          }
1764          program {
1765             name: "bt_min_down";
1766             signal: "mouse,down,*";
1767             source: "e.event.minimize";
1768             action: STATE_SET "active" 0.0;
1769             target: "bt_min_unfoc";
1770             target: "bt_min_foc";
1771          }
1772          program {
1773             name: "bt_min_up";
1774             signal: "mouse,up,*";
1775             source: "e.event.minimize";
1776             action: STATE_SET "default" 0.0;
1777             target: "bt_min_unfoc";
1778             target: "bt_min_foc";
1779          }
1780       }
1781    }
1782    /* more border types - see comments in the default border for information */
1783    /*** SHAPED WINDOW BORDER ***/
1784    group {
1785       name: "e/widgets/border/shaped/border";
1786       images {
1787          image: "bd_top.png" COMP;
1788          image: "bd_top_hilight.png" COMP;
1789          image: "bd_bottom.png" COMP;
1790          image: "bd_title_bg.png" COMP;
1791          image: "bd_title_over.png" COMP;
1792          image: "bd_resize_b.png" COMP;
1793          image: "busy-1.png" COMP;
1794          image: "busy-2.png" COMP;
1795          image: "busy-3.png" COMP;
1796          image: "busy-4.png" COMP;
1797          image: "busy-5.png" COMP;
1798          image: "busy-6.png" COMP;
1799          image: "busy-7.png" COMP;
1800          image: "busy-8.png" COMP;
1801          image: "busy-9.png" COMP;
1802          image: "exclam.png" COMP;
1803          image: "bd_button_close_shadow.png" COMP;
1804          image: "bd_button_close_focused.png" COMP;
1805          image: "bd_button_close_unfocused.png" COMP;
1806          image: "bd_button_max_shadow.png" COMP;
1807          image: "bd_button_max_focused.png" COMP;
1808          image: "bd_button_max_unfocused.png" COMP;
1809          image: "bd_button_min_shadow.png" COMP;
1810          image: "bd_button_min_focused.png" COMP;
1811          image: "bd_button_min_unfocused.png" COMP;
1812       }
1813       data.item: "shaped" "1";
1814       parts {
1815          part {
1816             name: "top";
1817             mouse_events: 0;
1818             description {
1819                state: "default" 0.0;
1820                rel1 {
1821                   relative: 0.0 0.0;
1822                   offset: 0 0;
1823                }
1824                rel2 {
1825                   relative: 1.0 1.0;
1826                   offset: -1 -1;
1827                   to_y: "title_base";
1828                }
1829                color_class: "border_top";
1830                image {
1831                   normal: "bd_top.png";
1832                   border: 2 2 2 2;
1833                }
1834             }
1835          }
1836          part {
1837             name: "bottom";
1838             mouse_events: 0;
1839             description {
1840                state: "default" 0.0;
1841                rel1 {
1842                   relative: 0.0 1.0;
1843                   offset: 0 -4;
1844                }
1845                rel2 {
1846                   relative: 1.0 1.0;
1847                   offset: -1 -1;
1848                }
1849                color_class: "border_bottom";
1850                image {
1851                   normal: "bd_bottom.png";
1852                   border: 2 2 0 0;
1853                }
1854             }
1855             description {
1856                state: "shaded" 0.0;
1857                inherit: "default" 0.0;
1858                visible: 0;
1859             }
1860             description {
1861                state: "max" 0.0;
1862                inherit: "default" 0.0;
1863                visible: 0;
1864             }
1865          }
1866          part {
1867             name: "icon_area";
1868             type: RECT;
1869             description {
1870                state: "default" 0.0;
1871                visible: 0;
1872                align: 0.0 0.5;
1873                aspect: 1.0 1.0;
1874                aspect_preference: VERTICAL;
1875                rel1 {
1876                   relative: 0.0 0.0;
1877                   offset: 2 2;
1878                }
1879                rel2 {
1880                   relative: 0.0 1.0;
1881                   offset: 2 -3;
1882                   to_y: "title_base";
1883                }
1884             }
1885             description {
1886                state: "active" 0.0;
1887                inherit: "default" 0.0;
1888                rel1 {
1889                   offset: 2 3;
1890                }
1891                rel2 {
1892                   offset: 2 -2;
1893                }
1894             }
1895          }
1896          part {
1897             name: "icon_area2";
1898             type: RECT;
1899             description {
1900                state: "default" 0.0;
1901                visible: 0;
1902                rel1.to: "icon_area";
1903                rel2.to: "icon_area";
1904             }
1905             description {
1906                state: "uw0" 0.0;
1907                inherit: "default" 0.0;
1908                rel1.offset: -3 -2;
1909                rel2.offset: -4 -3;
1910             }
1911             description {
1912                state: "uw1" 0.0;
1913                inherit: "default" 0.0;
1914                rel1.offset: 5 -2;
1915                rel2.offset: 4 -3;
1916             }
1917             description {
1918                state: "uw2" 0.0;
1919                inherit: "default" 0.0;
1920                rel1.offset: -1 4;
1921                rel2.offset: -2 3;
1922             }
1923             description {
1924                state: "uw3" 0.0;
1925                inherit: "default" 0.0;
1926                rel1.offset: -2 -1;
1927                rel2.offset: -3 -2;
1928             }
1929             description {
1930                state: "uw4" 0.0;
1931                inherit: "default" 0.0;
1932                rel1.offset: -4 1;
1933                rel2.offset: -5 0;
1934             }
1935          }
1936          part {
1937             name: "busy";
1938             mouse_events: 0;
1939             description {
1940                state: "default" 0.0;
1941                visible: 0;
1942                color: 255 255 255 0;
1943                max: 32 32;
1944                aspect: 1.0 1.0;
1945                aspect_preference: BOTH;
1946                rel1.to: "icon_area";
1947                rel2.to: "icon_area";
1948                image {
1949                   tween: "busy-1.png";
1950                   tween: "busy-2.png";
1951                   tween: "busy-3.png";
1952                   tween: "busy-4.png";
1953                   tween: "busy-5.png";
1954                   tween: "busy-6.png";
1955                   tween: "busy-7.png";
1956                   tween: "busy-8.png";
1957                   normal: "busy-9.png";
1958                }
1959             }
1960             description {
1961                state: "visible" 0.0;
1962                inherit: "default" 0.0;
1963                visible: 1;
1964                color: 255 255 255 255;
1965             }
1966          }
1967          part {
1968             name: "e.swallow.icon";
1969             type: SWALLOW;
1970             description {
1971                state: "default" 0.0;
1972                aspect: 1.0 1.0;
1973                aspect_preference: BOTH;
1974                rel1.to: "icon_area2";
1975                rel2.to: "icon_area2";
1976             }
1977             description {
1978                state: "shrunk" 0.0;
1979                inherit: "default" 0.0;
1980                rel1.relative: 0.3 0.3;
1981                rel2.relative: 0.7 0.7;
1982             }
1983          }
1984          part {
1985             name: "urgent";
1986             mouse_events: 0;
1987             description {
1988                state: "default" 0.0;
1989                visible: 0;
1990                color: 255 255 255 0;
1991                aspect: 1.0 1.0;
1992                aspect_preference: BOTH;
1993                rel1.to: "icon_area";
1994                rel2.to: "icon_area";
1995                image.normal: "exclam.png";
1996             }
1997             description {
1998                state: "visible" 0.0;
1999                inherit: "default" 0.0;
2000                visible: 1;
2001                color: 255 255 255 255;
2002             }
2003          }
2004          part {
2005             name: "urgent2";
2006             mouse_events: 0;
2007             description {
2008                state: "default" 0.0;
2009                visible: 0;
2010                color: 255 255 255 0;
2011                aspect: 1.0 1.0;
2012                aspect_preference: BOTH;
2013                rel1.to: "icon_area";
2014                rel2.to: "icon_area";
2015                image.normal: "exclam.png";
2016             }
2017             description {
2018                state: "visible" 0.0;
2019                inherit: "default" 0.0;
2020                visible: 1;
2021                color: 255 255 255 255;
2022             }
2023             description {
2024                state: "faded" 0.0;
2025                inherit: "default" 0.0;
2026                rel1.relative: -1.0 -1.0;
2027                rel2.relative: 2.0 2.0;
2028                visible: 1;
2029                color: 255 255 255 0;
2030             }
2031          }
2032          part {
2033             name: "e.text.title";
2034             type: TEXT;
2035             mouse_events: 0;
2036             description {
2037                state: "default" 0.0;
2038                visible: 1;
2039                align: 0.0 0.0;
2040                rel1 {
2041                   relative: 1.0 0.0;
2042                   offset: 9 2;
2043                   to_x: "icon_area";
2044                }
2045                rel2 {
2046                   relative: 1.0 0.0;
2047                   offset: -8 2;
2048                   to_x: "title_base";
2049                }
2050                color_class: "border_title";
2051                text {
2052                   font: "Sans:style=Bold";
2053                   size: 10;
2054                   min: 0 1;
2055                   align: 0.0 0.0;
2056                   text_class: "title_bar";
2057                }
2058             }
2059             description {
2060                state: "focused" 0.0;
2061                inherit: "default" 0.0;
2062                visible: 0;
2063                color: 0 0 0 0;
2064             }
2065          }
2066          part {
2067             name: "bt_close";
2068             mouse_events: 0;
2069             description {
2070                state: "default" 0.0;
2071                min: 14 14;
2072                max: 14 14;
2073                aspect: 1.0 1.0;
2074                aspect_preference: VERTICAL;
2075                rel1 {
2076                   relative: 1.0 0.0;
2077                   offset: -28 1;
2078                   to_x: "top";
2079                   to_y: "top";
2080                }
2081                rel2 {
2082                   relative: 1.0 1.0;
2083                   to_x: "top";
2084                   to_y: "top";
2085                }
2086                image.normal: "bd_button_close_shadow.png";
2087             }
2088          }
2089          part {
2090             name: "bt_max";
2091             mouse_events: 0;
2092             description {
2093                state: "default" 0.0;
2094                align: 1.0 0.5;
2095                min: 22 22;
2096                max: 22 22;
2097                aspect: 1.0 1.0;
2098                aspect_preference: VERTICAL;
2099                rel1 {
2100                   relative: 0.0 0.0;
2101                   offset: -2 1;
2102                   to_x: "bt_close";
2103                   to_y: "top";
2104                }
2105                rel2 {
2106                   relative: 0.0 1.0;
2107                   offset: -2 -2;
2108                   to_x: "bt_close";
2109                   to_y: "top";
2110                }
2111                image.normal: "bd_button_max_shadow.png";
2112             }
2113          }
2114          part {
2115             name: "bt_min";
2116             mouse_events: 0;
2117             description {
2118                state: "default" 0.0;
2119                align: 1.0 0.5;
2120                min: 22 22;
2121                max: 22 22;
2122                aspect: 1.0 1.0;
2123                aspect_preference: VERTICAL;
2124                rel1 {
2125                   relative: 0.0 0.0;
2126                   offset: -2 1;
2127                   to_x: "bt_max";
2128                   to_y: "top";
2129                }
2130                rel2 {
2131                   relative: 0.0 1.0;
2132                   offset: -2 -2;
2133                   to_x: "bt_max";
2134                   to_y: "top";
2135                }
2136                image.normal: "bd_button_min_shadow.png";
2137             }
2138          }
2139          part {
2140             name: "top_hilight";
2141             mouse_events: 0;
2142             description {
2143                state: "default" 0.0;
2144                rel1 {
2145                   relative: 0.0 0.0;
2146                   offset: 0 0;
2147                   to: "top";
2148                }
2149                rel2 {
2150                   relative: 1.0 0.5;
2151                   offset: -1 0;
2152                   to: "top";
2153                }
2154                color_class: "border_top_hilight";
2155                image {
2156                   normal: "bd_top_hilight.png";
2157                }
2158                fill.smooth: 0;
2159             }
2160          }
2161          part {
2162             name: "buttons_unfoc";
2163             type: RECT;
2164             description {
2165                state: "default" 0.0;
2166                visible: 1;
2167                color: 255 255 255 255;
2168             }
2169             description {
2170                state: "focused" 0.0;
2171                inherit: "default" 0.0;
2172                visible: 0;
2173                color: 255 255 255 0;
2174             }
2175          }
2176          part {
2177             name: "bt_close_unfoc";
2178             mouse_events: 0;
2179             clip_to: "buttons_unfoc";
2180             description {
2181                state: "default" 0.0;
2182                rel1.to: "bt_close";
2183                rel2.to: "bt_close";
2184                image.normal: "bd_button_close_unfocused.png";
2185             }
2186             description {
2187                state: "active" 0.0;
2188                inherit: "default" 0.0;
2189                rel1.offset: 0 1;
2190                rel2.offset: -1 0;
2191             }
2192          }
2193          part {
2194             name: "bt_max_unfoc";
2195             mouse_events: 0;
2196             clip_to: "buttons_unfoc";
2197             description {
2198                state: "default" 0.0;
2199                rel1.to: "bt_max";
2200                rel2.to: "bt_max";
2201                image.normal: "bd_button_max_unfocused.png";
2202             }
2203             description {
2204                state: "active" 0.0;
2205                inherit: "default" 0.0;
2206                rel1.offset: 0 1;
2207                rel2.offset: -1 0;
2208             }
2209          }
2210          part {
2211             name: "bt_min_unfoc";
2212             mouse_events: 0;
2213             clip_to: "buttons_unfoc";
2214             description {
2215                state: "default" 0.0;
2216                rel1.to: "bt_min";
2217                rel2.to: "bt_min";
2218                image.normal: "bd_button_min_unfocused.png";
2219             }
2220             description {
2221                state: "active" 0.0;
2222                inherit: "default" 0.0;
2223                rel1.offset: 0 1;
2224                rel2.offset: -1 0;
2225             }
2226          }
2227          part {
2228             name: "buttons_foc";
2229             type: RECT;
2230             description {
2231                state: "default" 0.0;
2232                visible: 0;
2233                color: 255 255 255 0;
2234             }
2235             description {
2236                state: "focused" 0.0;
2237                inherit: "default" 0.0;
2238                visible: 1;
2239                color: 255 255 255 255;
2240             }
2241          }
2242          part {
2243             name: "bt_close_foc";
2244             mouse_events: 0;
2245             clip_to: "buttons_foc";
2246             description {
2247                state: "default" 0.0;
2248                rel1.to: "bt_close";
2249                rel2.to: "bt_close";
2250                image.normal: "bd_button_close_focused.png";
2251             }
2252             description {
2253                state: "active" 0.0;
2254                inherit: "default" 0.0;
2255                rel1.offset: 0 1;
2256                rel2.offset: -1 0;
2257             }
2258          }
2259          part {
2260             name: "bt_max_foc";
2261             mouse_events: 0;
2262             clip_to: "buttons_foc";
2263             description {
2264                state: "default" 0.0;
2265                rel1.to: "bt_max";
2266                rel2.to: "bt_max";
2267                image.normal: "bd_button_max_focused.png";
2268             }
2269             description {
2270                state: "active" 0.0;
2271                inherit: "default" 0.0;
2272                rel1.offset: 0 1;
2273                rel2.offset: -1 0;
2274             }
2275          }
2276          part {
2277             name: "bt_min_foc";
2278             mouse_events: 0;
2279             clip_to: "buttons_foc";
2280             description {
2281                state: "default" 0.0;
2282                rel1.to: "bt_min";
2283                rel2.to: "bt_min";
2284                image.normal: "bd_button_min_focused.png";
2285             }
2286             description {
2287                state: "active" 0.0;
2288                inherit: "default" 0.0;
2289                rel1.offset: 0 1;
2290                rel2.offset: -1 0;
2291             }
2292          }
2293          part {
2294             name: "title_base";
2295             type: RECT;
2296             mouse_events: 0;
2297             description {
2298                state: "default" 0.0;
2299                visible: 0;
2300                rel1 {
2301                   relative: 1.0 0.0;
2302                   offset: 0 0;
2303                   to_x: "icon_area";
2304                }
2305                rel2 {
2306                   relative: 0.0 1.0;
2307                   offset: -3 4;
2308                   to_y: "e.text.title";
2309                   to_x: "bt_min";
2310                }
2311             }
2312          }
2313          part {
2314             name: "title_back";
2315             mouse_events: 0;
2316             description {
2317                state: "default" 0.0;
2318                visible: 0;
2319                rel1 {
2320                   to: "title_base";
2321                }
2322                rel2 {
2323                   to: "title_base";
2324                   relative: 1.0 0.0;
2325                }
2326                image {
2327                   normal: "bd_title_bg.png";
2328                   border: 7 7 2 7;
2329                }
2330                fill.smooth: 0;
2331             }
2332             description {
2333                state: "focused" 0.0;
2334                inherit: "default" 0.0;
2335                visible: 1;
2336                rel2 {
2337                   to: "title_base";
2338                   relative: 1.0 1.0;
2339                }
2340             }
2341          }
2342          part {
2343             name: "title2";
2344             type: TEXT;
2345             mouse_events: 0;
2346             effect: SOFT_SHADOW;
2347             description {
2348                state: "default" 0.0;
2349                visible: 0;
2350                align: 0.0 1.0;
2351                rel1 {
2352                   to_x: "e.text.title";
2353                   to_y: "title_back";
2354                   relative: 0.0 1.0;
2355                   offset: -1 0;
2356                }
2357                rel2 {
2358                   to_x: "e.text.title";
2359                   to_y: "title_back";
2360                   relative: 1.0 1.0;
2361                   offset: 0 1;
2362                }
2363                color_class: "border_title_active";
2364                text {
2365                   text_source: "e.text.title";
2366                   font: "Sans:style=Bold";
2367                   size: 10;
2368                   align: 0.0 0.0;
2369                   min: 0 1;
2370                   text_class: "title_bar";
2371                }
2372             }
2373             description {
2374                state: "focused" 0.0;
2375                inherit: "default" 0.0;
2376                visible: 1;
2377             }
2378          }
2379          part {
2380             name: "title_over";
2381             mouse_events: 0;
2382             description {
2383                state: "default" 0.0;
2384                visible: 0;
2385                rel1.to: "title_back";
2386                rel2.to: "title_back";
2387                image {
2388                   normal: "bd_title_over.png";
2389                   border: 7 7 2 7;
2390                }
2391                fill.smooth: 0;
2392             }
2393             description {
2394                state: "focused" 0.0;
2395                inherit: "default" 0.0;
2396                visible: 1;
2397             }
2398          }
2399          part {
2400             name: "bottom_clip";
2401             type: RECT;
2402             description {
2403                state: "default" 0.0;
2404                rel1.to: "bottom";
2405                rel2.to: "bottom";
2406                color: 255 255 255 255;
2407             }
2408          }
2409          part {
2410             name: "resize_b";
2411             mouse_events: 0;
2412             clip_to: "bottom_clip";
2413             description {
2414                state: "default" 0.0;
2415                min: 20 10;
2416                max: 20 10;
2417                rel1 {
2418                   to: "bottom";
2419                   relative: 0.5 0.0;
2420                   offset: 0 -10;
2421                }
2422                rel2 {
2423                   to: "bottom";
2424                   relative: 0.5 0.0;
2425                   offset: 0 -1;
2426                }
2427                image {
2428                   normal: "bd_resize_b.png";
2429                }
2430             }
2431             description {
2432                state: "past" 0.0;
2433                inherit: "default" 0.0;
2434                rel1 {
2435                   relative: 0.5 1.0;
2436                   offset: 0 0;
2437                }
2438                rel2 {
2439                   relative: 0.5 1.0;
2440                   offset: 0 9;
2441                }
2442             }
2443          }
2444          part {
2445             name: "e.swallow.client";
2446             type: SWALLOW;
2447             description {
2448                state: "default" 0.0;
2449                rel1 {
2450                   relative: 0.0 1.0;
2451                   offset: 0 0;
2452                   to_y: "top";
2453                }
2454                rel2 {
2455                   relative: 1.0 0.0;
2456                   offset: -1 -1;
2457                   to_y: "bottom";
2458                }
2459             }
2460             description {
2461                state: "shaded" 0.0;
2462                inherit: "default" 0.0;
2463                rel2 {
2464                   relative: 1.0 1.0;
2465                   offset: -1 -1;
2466                   to_y: "bottom";
2467                }
2468             }
2469             description {
2470                state: "max" 0.0;
2471                inherit: "default" 0.0;
2472                rel1 {
2473                   relative: 0.0 1.0;
2474                   offset: 0 0;
2475                   to_y: "top";
2476                }
2477                rel2 {
2478                   relative: 1.0 1.0;
2479                   offset: -1 -1;
2480                   to_y: "bottom";
2481                }
2482             }
2483          }
2484          part {
2485             name: "e.event.titlebar";
2486             type: RECT;
2487             description {
2488                state: "default" 0.0;
2489                rel1.to: "title_base";
2490                rel2.to: "title_base";
2491                color: 0 0 0 0;
2492             }
2493          }
2494          part {
2495             name: "e.event.resize.t";
2496             type: RECT;
2497             description {
2498                state: "default" 0.0;
2499                rel1 {
2500                   relative: 0.0 0.0;
2501                   offset: 0 0;
2502                }
2503                rel2 {
2504                   relative: 1.0 0.0;
2505                   offset: -1 3;
2506                }
2507                color: 0 0 0 0;
2508             }
2509             description {
2510                state: "shaded" 0.0;
2511                inherit: "default" 0.0;
2512                visible: 0;
2513             }
2514          }
2515          part {
2516             name: "e.event.resize.b";
2517             type: RECT;
2518             description {
2519                state: "default" 0.0;
2520                rel1 {
2521                   relative: 0.0 1.0;
2522                   offset: 0 -4;
2523                }
2524                rel2 {
2525                   relative: 1.0 1.0;
2526                   offset: -1 -1;
2527                }
2528                color: 0 0 0 0;
2529             }
2530             description {
2531                state: "shaded" 0.0;
2532                inherit: "default" 0.0;
2533                visible: 0;
2534             }
2535          }
2536          part {
2537             name: "e.event.resize.tl";
2538             type: RECT;
2539             description {
2540                state: "default" 0.0;
2541                rel1 {
2542                   relative: 0.0 0.0;
2543                   offset: 0 0;
2544                }
2545                rel2 {
2546                   relative: 0.0 0.0;
2547                   offset: 15 15;
2548                }
2549                color: 0 0 0 0;
2550             }
2551             description {
2552                state: "shaded" 0.0;
2553                inherit: "default" 0.0;
2554                visible: 0;
2555             }
2556          }
2557          part {
2558             name: "e.event.resize.tr";
2559             type: RECT;
2560             description {
2561                state: "default" 0.0;
2562                rel1 {
2563                   relative: 1.0 0.0;
2564                   offset: -16 0;
2565                }
2566                rel2 {
2567                   relative: 1.0 0.0;
2568                   offset: -1 15;
2569                }
2570                color: 0 0 0 0;
2571             }
2572             description {
2573                state: "shaded" 0.0;
2574                inherit: "default" 0.0;
2575                visible: 0;
2576             }
2577          }
2578          part {
2579             name: "e.event.resize.bl";
2580             type: RECT;
2581             description {
2582                state: "default" 0.0;
2583                rel1 {
2584                   relative: 0.0 1.0;
2585                   offset: 0 -16;
2586                }
2587                rel2 {
2588                   relative: 0.0 1.0;
2589                   offset: 15 -1;
2590                }
2591                color: 0 0 0 0;
2592             }
2593             description {
2594                state: "shaded" 0.0;
2595                inherit: "default" 0.0;
2596                visible: 0;
2597             }
2598          }
2599          part {
2600             name: "e.event.resize.br";
2601             type: RECT;
2602             description {
2603                state: "default" 0.0;
2604                rel1 {
2605                   relative: 1.0 1.0;
2606                   offset: -16 -16;
2607                }
2608                rel2 {
2609                   relative: 1.0 1.0;
2610                   offset: -1 -1;
2611                }
2612                color: 0 0 0 0;
2613             }
2614             description {
2615                state: "shaded" 0.0;
2616                inherit: "default" 0.0;
2617                visible: 0;
2618             }
2619          }
2620          part {
2621             name: "e.event.icon";
2622             type: RECT;
2623             description {
2624                state: "default" 0.0;
2625                rel1.to: "icon_area";
2626                rel2.to: "icon_area";
2627                color: 0 0 0 0;
2628             }
2629          }
2630          part {
2631             name: "e.event.close";
2632             type: RECT;
2633             description {
2634                state: "default" 0.0;
2635                rel1.to: "bt_close";
2636                rel2.to: "bt_close";
2637                color: 0 0 0 0;
2638             }
2639          }
2640          part {
2641             name: "e.event.minimize";
2642             type: RECT;
2643             description {
2644                state: "default" 0.0;
2645                rel1.to: "bt_min";
2646                rel2.to: "bt_min";
2647                color: 0 0 0 0;
2648             }
2649          }
2650          part {
2651             name: "e.event.maximize";
2652             type: RECT;
2653             description {
2654                state: "default" 0.0;
2655                rel1.to: "bt_max";
2656                rel2.to: "bt_max";
2657                color: 0 0 0 0;
2658             }
2659          }
2660       }
2661       programs {
2662          program {
2663             name: "focus_in";
2664             signal: "e,state,focused";
2665             source: "e";
2666             action: STATE_SET "focused" 0.0;
2667             transition: LINEAR 0.2;
2668             target: "title_back";
2669             target: "title2";
2670             target: "title_over";
2671             target: "buttons_foc";
2672             target: "buttons_unfoc";
2673             target: "e.text.title";
2674          }
2675          program {
2676             name: "focus_out";
2677             signal: "e,state,unfocused";
2678             source: "e";
2679             action: STATE_SET "default" 0.0;
2680             transition: LINEAR 0.2;
2681             target: "title_back";
2682             target: "title2";
2683             target: "title_over";
2684             target: "buttons_foc";
2685             target: "buttons_unfoc";
2686             target: "e.text.title";
2687          }
2688          program {
2689             name: "urgent";
2690             signal: "e,state,urgent";
2691             source: "e";
2692             action: STATE_SET "visible" 0.0;
2693             target: "urgent";
2694             target: "urgent2";
2695             transition: DECELERATE 0.5;
2696             after: "urgent2";
2697          }
2698          program {
2699             name: "urgent2";
2700             action: STATE_SET "faded" 0.0;
2701             target: "urgent2";
2702             transition: LINEAR 0.5;
2703             after: "urgent3";
2704          }
2705          program {
2706             name: "urgent3";
2707             action: STATE_SET "visible" 0.0;
2708             target: "urgent2";
2709             after: "urgent2";
2710          }
2711          program {
2712             name: "urgentw0";
2713             signal: "e,state,urgent";
2714             source: "e";
2715             action: STATE_SET "default" 0.0;
2716             target: "icon_area2";
2717             transition: DECELERATE 0.1;
2718             after: "urgentw1";
2719          }
2720          program {
2721             name: "urgentw1";
2722             action: STATE_SET "uw1" 0.0;
2723             target: "icon_area2";
2724             transition: DECELERATE 0.1;
2725             after: "urgentw2";
2726          }
2727          program {
2728             name: "urgentw2";
2729             action: STATE_SET "uw2" 0.0;
2730             target: "icon_area2";
2731             transition: DECELERATE 0.1;
2732             after: "urgentw3";
2733          }
2734          program {
2735             name: "urgentw3";
2736             action: STATE_SET "uw3" 0.0;
2737             target: "icon_area2";
2738             transition: DECELERATE 0.1;
2739             after: "urgentw4";
2740          }
2741          program {
2742             name: "urgentw4";
2743             action: STATE_SET "uw4" 0.0;
2744             target: "icon_area2";
2745             transition: DECELERATE 0.1;
2746             after: "urgentw0";
2747          }
2748          program {
2749             name: "not_urgent";
2750             signal: "e,state,not_urgent";
2751             source: "e";
2752             action: ACTION_STOP;
2753             target: "urgentw0";
2754             target: "urgentw1";
2755             target: "urgentw2";
2756             target: "urgentw3";
2757             target: "urgentw4";
2758             target: "urgent";
2759             target: "urgent2";
2760             target: "urgent3";
2761             after: "not_urgent2";
2762          }
2763          program {
2764             name: "not_urgent2";
2765             action: STATE_SET "default" 0.0;
2766             target: "urgent";
2767             target: "urgent2";
2768             target: "icon_area2";
2769          }
2770          program {
2771             name: "hung";
2772             signal: "e,state,hung";
2773             source: "e";
2774             /* FIXME: */
2775             action: STATE_SET "shrunk" 0.0;
2776             target: "e.swallow.icon";
2777             transition: DECELERATE 0.5;
2778          }
2779          program {
2780             name: "unhung";
2781             signal: "e,state,unhung";
2782             source: "e";
2783             /* FIXME: */
2784             action: ACTION_STOP;
2785             target: "busy_anim";
2786          }
2787          program {
2788             name: "unhung2";
2789             signal: "e,state,unhung";
2790             source: "e";
2791             /* FIXME: */
2792             action: STATE_SET "default" 0.0;
2793             target: "e.swallow.icon";
2794             target: "busy";
2795             transition: ACCELERATE 0.5;
2796          }
2797          program {
2798             name: "busy_anim";
2799             signal: "e,state,hung";
2800             source: "e";
2801             action: STATE_SET "visible" 0.0;
2802             transition: LINEAR 0.3333;
2803             target: "busy";
2804             after: "busy_anim";
2805          }
2806          program {
2807             name: "max_full";
2808             signal: "e,action,maximize,fullscreen";
2809             source: "e";
2810             action: STATE_SET "max" 0.0;
2811             target: "bottom";
2812             target: "e.swallow.client";
2813          }
2814          program {
2815             name: "unmax_full";
2816             signal: "e,action,unmaximize,fullscreen";
2817             source: "e";
2818             action: STATE_SET "default" 0.0;
2819             target: "bottom";
2820             target: "e.swallow.client";
2821          }
2822          program {
2823             name: "shade_end";
2824             signal: "e,state,shaded";
2825             source: "e";
2826             action: STATE_SET "shaded" 0.0;
2827             target: "bottom";
2828             target: "e.swallow.client";
2829             target: "e.event.resize.tl";
2830             target: "e.event.resize.tr";
2831             target: "e.event.resize.bl";
2832             target: "e.event.resize.br";
2833             target: "e.event.resize.t";
2834             target: "e.event.resize.b";
2835          }
2836          program {
2837             name: "unshade_start";
2838             signal: "e,state,unshading";
2839             source: "e";
2840             action: STATE_SET "default" 0.0;
2841             target: "bottom";
2842             target: "e.swallow.client";
2843             target: "e.event.resize.tl";
2844             target: "e.event.resize.tr";
2845             target: "e.event.resize.bl";
2846             target: "e.event.resize.br";
2847             target: "e.event.resize.t";
2848             target: "e.event.resize.b";
2849          }
2850          program {
2851             name: "resize_b_on";
2852             signal: "mouse,in";
2853             source: "e.event.resize.b";
2854             action: ACTION_STOP;
2855             target: "resize_b_on2";
2856             target: "resize_b_on3";
2857             after: "resize_b_on2";
2858          }
2859          program {
2860             name: "resize_b_on2";
2861             action: STATE_SET "default" 0.0;
2862             target: "resize_b";
2863             after: "resize_b_on3";
2864          }
2865          program {
2866             name: "resize_b_on3";
2867             action: STATE_SET "past" 0.0;
2868             transition: LINEAR 0.5;
2869             target: "resize_b";
2870             after: "resize_b_on2";
2871          }
2872          program {
2873             name: "resize_b_off";
2874             signal: "mouse,out";
2875             source: "e.event.resize.b";
2876             action: ACTION_STOP;
2877             target: "resize_b_on";
2878             target: "resize_b_on2";
2879             target: "resize_b_on3";
2880          }
2881          program {
2882             name: "icon_down";
2883             signal: "mouse,down,*";
2884             source: "e.event.icon";
2885             action: STATE_SET "active" 0.0;
2886             target: "icon_area";
2887          }
2888          program {
2889             name: "icon_up";
2890             signal: "mouse,up,*";
2891             source: "e.event.icon";
2892             action: STATE_SET "default" 0.0;
2893             target: "icon_area";
2894          }
2895          program {
2896             name: "bt_close_down";
2897             signal: "mouse,down,*";
2898             source: "e.event.close";
2899             action: STATE_SET "active" 0.0;
2900             target: "bt_close_unfoc";
2901             target: "bt_close_foc";
2902          }
2903          program {
2904             name: "bt_close_up";
2905             signal: "mouse,up,*";
2906             source: "e.event.close";
2907             action: STATE_SET "default" 0.0;
2908             target: "bt_close_unfoc";
2909             target: "bt_close_foc";
2910          }
2911          program {
2912             name: "bt_max_down";
2913             signal: "mouse,down,*";
2914             source: "e.event.maximize";
2915             action: STATE_SET "active" 0.0;
2916             target: "bt_max_unfoc";
2917             target: "bt_max_foc";
2918          }
2919          program {
2920             name: "bt_max_up";
2921             signal: "mouse,up,*";
2922             source: "e.event.maximize";
2923             action: STATE_SET "default" 0.0;
2924             target: "bt_max_unfoc";
2925             target: "bt_max_foc";
2926          }
2927          program {
2928             name: "bt_min_down";
2929             signal: "mouse,down,*";
2930             source: "e.event.minimize";
2931             action: STATE_SET "active" 0.0;
2932             target: "bt_min_unfoc";
2933             target: "bt_min_foc";
2934          }
2935          program {
2936             name: "bt_min_up";
2937             signal: "mouse,up,*";
2938             source: "e.event.minimize";
2939             action: STATE_SET "default" 0.0;
2940             target: "bt_min_unfoc";
2941             target: "bt_min_foc";
2942          }
2943       }
2944    }
2945    /*** NORESIZE WINDOW BORDER ***/
2946    group {
2947       name: "e/widgets/border/noresize/border";
2948       images {
2949          image: "bd_top.png" COMP;
2950          image: "bd_top_hilight.png" COMP;
2951          image: "bd_title_bg.png" COMP;
2952          image: "bd_title_over.png" COMP;
2953          image: "busy-1.png" COMP;
2954          image: "busy-2.png" COMP;
2955          image: "busy-3.png" COMP;
2956          image: "busy-4.png" COMP;
2957          image: "busy-5.png" COMP;
2958          image: "busy-6.png" COMP;
2959          image: "busy-7.png" COMP;
2960          image: "busy-8.png" COMP;
2961          image: "busy-9.png" COMP;
2962          image: "exclam.png" COMP;
2963          image: "bd_button_close_shadow.png" COMP;
2964          image: "bd_button_close_focused.png" COMP;
2965          image: "bd_button_close_unfocused.png" COMP;
2966          image: "bd_button_max_shadow.png" COMP;
2967          image: "bd_button_max_unfocused.png" COMP;
2968          image: "bd_button_min_shadow.png" COMP;
2969          image: "bd_button_min_focused.png" COMP;
2970          image: "bd_button_min_unfocused.png" COMP;
2971       }
2972       parts {
2973          part {
2974             name: "top";
2975             mouse_events: 0;
2976             description {
2977                state: "default" 0.0;
2978                rel1 {
2979                   relative: 0.0 0.0;
2980                   offset: 0 0;
2981                }
2982                rel2 {
2983                   relative: 1.0 1.0;
2984                   offset: -1 -1;
2985                   to_y: "title_base";
2986                }
2987                color_class: "border_top";
2988                image {
2989                   normal: "bd_top.png";
2990                   border: 2 2 2 2;
2991                }
2992             }
2993          }
2994          part {
2995             name: "icon_area";
2996             type: RECT;
2997             description {
2998                state: "default" 0.0;
2999                visible: 0;
3000                align: 0.0 0.5;
3001                aspect: 1.0 1.0;
3002                aspect_preference: VERTICAL;
3003                rel1 {
3004                   relative: 0.0 0.0;
3005                   offset: 2 2;
3006                }
3007                rel2 {
3008                   relative: 0.0 1.0;
3009                   offset: 2 -3;
3010                   to_y: "title_base";
3011                }
3012             }
3013             description {
3014                state: "active" 0.0;
3015                inherit: "default" 0.0;
3016                rel1 {
3017                   offset: 2 3;
3018                }
3019                rel2 {
3020                   offset: 2 -2;
3021                }
3022             }
3023          }
3024          part {
3025             name: "icon_area2";
3026             type: RECT;
3027             description {
3028                state: "default" 0.0;
3029                visible: 0;
3030                rel1.to: "icon_area";
3031                rel2.to: "icon_area";
3032             }
3033             description {
3034                state: "uw0" 0.0;
3035                inherit: "default" 0.0;
3036                rel1.offset: -3 -2;
3037                rel2.offset: -4 -3;
3038             }
3039             description {
3040                state: "uw1" 0.0;
3041                inherit: "default" 0.0;
3042                rel1.offset: 5 -2;
3043                rel2.offset: 4 -3;
3044             }
3045             description {
3046                state: "uw2" 0.0;
3047                inherit: "default" 0.0;
3048                rel1.offset: -1 4;
3049                rel2.offset: -2 3;
3050             }
3051             description {
3052                state: "uw3" 0.0;
3053                inherit: "default" 0.0;
3054                rel1.offset: -2 -1;
3055                rel2.offset: -3 -2;
3056             }
3057             description {
3058                state: "uw4" 0.0;
3059                inherit: "default" 0.0;
3060                rel1.offset: -4 1;
3061                rel2.offset: -5 0;
3062             }
3063          }
3064          part {
3065             name: "busy";
3066             mouse_events: 0;
3067             description {
3068                state: "default" 0.0;
3069                visible: 0;
3070                color: 255 255 255 0;
3071                max: 32 32;
3072                aspect: 1.0 1.0;
3073                aspect_preference: BOTH;
3074                rel1.to: "icon_area";
3075                rel2.to: "icon_area";
3076                image {
3077                   tween: "busy-1.png";
3078                   tween: "busy-2.png";
3079                   tween: "busy-3.png";
3080                   tween: "busy-4.png";
3081                   tween: "busy-5.png";
3082                   tween: "busy-6.png";
3083                   tween: "busy-7.png";
3084                   tween: "busy-8.png";
3085                   normal: "busy-9.png";
3086                }
3087             }
3088             description {
3089                state: "visible" 0.0;
3090                inherit: "default" 0.0;
3091                visible: 1;
3092                color: 255 255 255 255;
3093             }
3094          }
3095          part {
3096             name: "e.swallow.icon";
3097             type: SWALLOW;
3098             description {
3099                state: "default" 0.0;
3100                aspect: 1.0 1.0;
3101                aspect_preference: BOTH;
3102                rel1.to: "icon_area2";
3103                rel2.to: "icon_area2";
3104             }
3105             description {
3106                state: "shrunk" 0.0;
3107                inherit: "default" 0.0;
3108                rel1.relative: 0.3 0.3;
3109                rel2.relative: 0.7 0.7;
3110             }
3111          }
3112          part {
3113             name: "urgent";
3114             mouse_events: 0;
3115             description {
3116                state: "default" 0.0;
3117                visible: 0;
3118                color: 255 255 255 0;
3119                aspect: 1.0 1.0;
3120                aspect_preference: BOTH;
3121                rel1.to: "icon_area";
3122                rel2.to: "icon_area";
3123                image.normal: "exclam.png";
3124             }
3125             description {
3126                state: "visible" 0.0;
3127                inherit: "default" 0.0;
3128                visible: 1;
3129                color: 255 255 255 255;
3130             }
3131          }
3132          part {
3133             name: "urgent2";
3134             mouse_events: 0;
3135             description {
3136                state: "default" 0.0;
3137                visible: 0;
3138                color: 255 255 255 0;
3139                aspect: 1.0 1.0;
3140                aspect_preference: BOTH;
3141                rel1.to: "icon_area";
3142                rel2.to: "icon_area";
3143                image.normal: "exclam.png";
3144             }
3145             description {
3146                state: "visible" 0.0;
3147                inherit: "default" 0.0;
3148                visible: 1;
3149                color: 255 255 255 255;
3150             }
3151             description {
3152                state: "faded" 0.0;
3153                inherit: "default" 0.0;
3154                rel1.relative: -1.0 -1.0;
3155                rel2.relative: 2.0 2.0;
3156                visible: 1;
3157                color: 255 255 255 0;
3158             }
3159          }
3160          part {
3161             name: "e.text.title";
3162             type: TEXT;
3163             mouse_events: 0;
3164             description {
3165                state: "default" 0.0;
3166                visible: 1;
3167                align: 0.0 0.0;
3168                rel1 {
3169                   relative: 1.0 0.0;
3170                   offset: 9 2;
3171                   to_x: "icon_area";
3172                }
3173                rel2 {
3174                   relative: 1.0 0.0;
3175                   offset: -8 2;
3176                   to_x: "title_base";
3177                }
3178                color_class: "border_title";
3179                text {
3180                   font: "Sans:style=Bold";
3181                   size: 10;
3182                   min: 0 1;
3183                   align: 0.0 0.0;
3184                   text_class: "title_bar";
3185                }
3186             }
3187             description {
3188                state: "focused" 0.0;
3189                inherit: "default" 0.0;
3190                visible: 0;
3191                color: 0 0 0 0;
3192             }
3193          }
3194          part {
3195             name: "bt_close";
3196             mouse_events: 0;
3197             description {
3198                state: "default" 0.0;
3199                min: 14 14;
3200                max: 14 14;
3201                aspect: 1.0 1.0;
3202                aspect_preference: VERTICAL;
3203                rel1 {
3204                   relative: 1.0 0.0;
3205                   offset: -28 1;
3206                   to_x: "top";
3207                   to_y: "top";
3208                }
3209                rel2 {
3210                   relative: 1.0 1.0;
3211                   to_x: "top";
3212                   to_y: "top";
3213                }
3214                image.normal: "bd_button_close_shadow.png";
3215             }
3216          }
3217          part {
3218             name: "bt_max";
3219             description {
3220                state: "default" 0.0;
3221                align: 1.0 0.5;
3222                min: 22 22;
3223                max: 22 22;
3224                aspect: 1.0 1.0;
3225                aspect_preference: VERTICAL;
3226                rel1 {
3227                   relative: 0.0 0.0;
3228                   offset: -2 1;
3229                   to_x: "bt_close";
3230                   to_y: "top";
3231                }
3232                rel2 {
3233                   relative: 0.0 1.0;
3234                   offset: -2 -2;
3235                   to_x: "bt_close";
3236                   to_y: "top";
3237                }
3238                image.normal: "bd_button_max_shadow.png";
3239             }
3240          }
3241          part {
3242             name: "bt_min";
3243             mouse_events: 0;
3244             description {
3245                state: "default" 0.0;
3246                align: 1.0 0.5;
3247                min: 22 22;
3248                max: 22 22;
3249                aspect: 1.0 1.0;
3250                aspect_preference: VERTICAL;
3251                rel1 {
3252                   relative: 0.0 0.0;
3253                   offset: -2 1;
3254                   to_x: "bt_max";
3255                   to_y: "top";
3256                }
3257                rel2 {
3258                   relative: 0.0 1.0;
3259                   offset: -2 -2;
3260                   to_x: "bt_max";
3261                   to_y: "top";
3262                }
3263                image.normal: "bd_button_min_shadow.png";
3264             }
3265          }
3266          part {
3267             name: "top_hilight";
3268             mouse_events: 0;
3269             description {
3270                state: "default" 0.0;
3271                rel1 {
3272                   relative: 0.0 0.0;
3273                   offset: 0 0;
3274                   to: "top";
3275                }
3276                rel2 {
3277                   relative: 1.0 0.5;
3278                   offset: -1 0;
3279                   to: "top";
3280                }
3281                color_class: "border_top_hilight";
3282                image {
3283                   normal: "bd_top_hilight.png";
3284                }
3285                fill.smooth: 0;
3286             }
3287          }
3288          part {
3289             name: "buttons_unfoc";
3290             type: RECT;
3291             description {
3292                state: "default" 0.0;
3293                visible: 1;
3294                color: 255 255 255 255;
3295             }
3296             description {
3297                state: "focused" 0.0;
3298                inherit: "default" 0.0;
3299                visible: 0;
3300                color: 255 255 255 0;
3301             }
3302          }
3303          part {
3304             name: "bt_close_unfoc";
3305             mouse_events: 0;
3306             clip_to: "buttons_unfoc";
3307             description {
3308                state: "default" 0.0;
3309                rel1.to: "bt_close";
3310                rel2.to: "bt_close";
3311                image.normal: "bd_button_close_unfocused.png";
3312             }
3313             description {
3314                state: "active" 0.0;
3315                inherit: "default" 0.0;
3316                rel1.offset: 0 1;
3317                rel2.offset: -1 0;
3318             }
3319          }
3320          part {
3321             name: "bt_max_unfoc";
3322             clip_to: "buttons_unfoc";
3323             description {
3324                state: "default" 0.0;
3325                rel1.to: "bt_max";
3326                rel2.to: "bt_max";
3327                image.normal: "bd_button_max_unfocused.png";
3328             }
3329             description {
3330                state: "active" 0.0;
3331                inherit: "default" 0.0;
3332                rel1.offset: 0 1;
3333                rel2.offset: -1 0;
3334             }
3335          }
3336          part {
3337             name: "bt_min_unfoc";
3338             mouse_events: 0;
3339             clip_to: "buttons_unfoc";
3340             description {
3341                state: "default" 0.0;
3342                rel1.to: "bt_min";
3343                rel2.to: "bt_min";
3344                image.normal: "bd_button_min_unfocused.png";
3345             }
3346             description {
3347                state: "active" 0.0;
3348                inherit: "default" 0.0;
3349                rel1.offset: 0 1;
3350                rel2.offset: -1 0;
3351             }
3352          }
3353          part {
3354             name: "buttons_foc";
3355             type: RECT;
3356             description {
3357                state: "default" 0.0;
3358                visible: 0;
3359                color: 255 255 255 0;
3360             }
3361             description {
3362                state: "focused" 0.0;
3363                inherit: "default" 0.0;
3364                visible: 1;
3365                color: 255 255 255 255;
3366             }
3367          }
3368          part {
3369             name: "bt_close_foc";
3370             mouse_events: 0;
3371             clip_to: "buttons_foc";
3372             description {
3373                state: "default" 0.0;
3374                rel1.to: "bt_close";
3375                rel2.to: "bt_close";
3376                image.normal: "bd_button_close_focused.png";
3377             }
3378             description {
3379                state: "active" 0.0;
3380                inherit: "default" 0.0;
3381                rel1.offset: 0 1;
3382                rel2.offset: -1 0;
3383             }
3384          }
3385          part {
3386             name: "bt_max_foc";
3387             clip_to: "buttons_foc";
3388             description {
3389                state: "default" 0.0;
3390                rel1.to: "bt_max";
3391                rel2.to: "bt_max";
3392                image.normal: "bd_button_max_unfocused.png";
3393             }
3394             description {
3395                state: "active" 0.0;
3396                inherit: "default" 0.0;
3397                rel1.offset: 0 1;
3398                rel2.offset: -1 0;
3399             }
3400          }
3401          part {
3402             name: "bt_min_foc";
3403             mouse_events: 0;
3404             clip_to: "buttons_foc";
3405             description {
3406                state: "default" 0.0;
3407                rel1.to: "bt_min";
3408                rel2.to: "bt_min";
3409                image.normal: "bd_button_min_focused.png";
3410             }
3411             description {
3412                state: "active" 0.0;
3413                inherit: "default" 0.0;
3414                rel1.offset: 0 1;
3415                rel2.offset: -1 0;
3416             }
3417          }
3418          part {
3419             name: "title_base";
3420             type: RECT;
3421             mouse_events: 0;
3422             description {
3423                state: "default" 0.0;
3424                visible: 0;
3425                rel1 {
3426                   relative: 1.0 0.0;
3427                   offset: 0 0;
3428                   to_x: "icon_area";
3429                }
3430                rel2 {
3431                   relative: 0.0 1.0;
3432                   offset: -3 4;
3433                   to_y: "e.text.title";
3434                   to_x: "bt_min";
3435                }
3436             }
3437          }
3438          part {
3439             name: "title_back";
3440             mouse_events: 0;
3441             description {
3442                state: "default" 0.0;
3443                visible: 0;
3444                rel1 {
3445                   to: "title_base";
3446                }
3447                rel2 {
3448                   to: "title_base";
3449                   relative: 1.0 0.0;
3450                }
3451                image {
3452                   normal: "bd_title_bg.png";
3453                   border: 7 7 2 7;
3454                }
3455                fill.smooth: 0;
3456             }
3457             description {
3458                state: "focused" 0.0;
3459                inherit: "default" 0.0;
3460                visible: 1;
3461                rel2 {
3462                   to: "title_base";
3463                   relative: 1.0 1.0;
3464                }
3465             }
3466          }
3467          part {
3468             name: "title2";
3469             type: TEXT;
3470             mouse_events: 0;
3471             effect: SOFT_SHADOW;
3472             description {
3473                state: "default" 0.0;
3474                visible: 0;
3475                align: 0.0 1.0;
3476                rel1 {
3477                   to_x: "e.text.title";
3478                   to_y: "title_back";
3479                   relative: 0.0 1.0;
3480                   offset: -1 0;
3481                }
3482                rel2 {
3483                   to_x: "e.text.title";
3484                   to_y: "title_back";
3485                   relative: 1.0 1.0;
3486                   offset: 0 1;
3487                }
3488                color_class: "border_title_active";
3489                text {
3490                   text_source: "e.text.title";
3491                   font: "Sans:style=Bold";
3492                   size: 10;
3493                   align: 0.0 0.0;
3494                   min: 0 1;
3495                   text_class: "title_bar";
3496                }
3497             }
3498             description {
3499                state: "focused" 0.0;
3500                inherit: "default" 0.0;
3501                visible: 1;
3502             }
3503          }
3504          part {
3505             name: "title_over";
3506             mouse_events: 0;
3507             description {
3508                state: "default" 0.0;
3509                visible: 0;
3510                rel1.to: "title_back";
3511                rel2.to: "title_back";
3512                image {
3513                   normal: "bd_title_over.png";
3514                   border: 7 7 2 7;
3515                }
3516                fill.smooth: 0;
3517             }
3518             description {
3519                state: "focused" 0.0;
3520                inherit: "default" 0.0;
3521                visible: 1;
3522             }
3523          }
3524          part {
3525             name: "e.swallow.client";
3526             type: SWALLOW;
3527             description {
3528                state: "default" 0.0;
3529                rel1 {
3530                   relative: 0.0 1.0;
3531                   offset: 0 0;
3532                   to_y: "top";
3533                }
3534                rel2 {
3535                   relative: 1.0 1.0;
3536                   offset: -1 -1;
3537                }
3538             }
3539             description {
3540                state: "shaded" 0.0;
3541                inherit: "default" 0.0;
3542                rel2 {
3543                   relative: 1.0 1.0;
3544                   offset: -1 -1;
3545                }
3546             }
3547             description {
3548                state: "max" 0.0;
3549                inherit: "default" 0.0;
3550                rel1 {
3551                   relative: 0.0 1.0;
3552                   offset: 0 0;
3553                   to_y: "top";
3554                }
3555                rel2 {
3556                   relative: 1.0 1.0;
3557                   offset: -1 -1;
3558                }
3559             }
3560          }
3561          part {
3562             name: "e.event.titlebar";
3563             type: RECT;
3564             description {
3565                state: "default" 0.0;
3566                rel1.to: "title_base";
3567                rel2.to: "title_base";
3568                color: 0 0 0 0;
3569             }
3570          }
3571          part {
3572             name: "e.event.icon";
3573             type: RECT;
3574             description {
3575                state: "default" 0.0;
3576                rel1.to: "icon_area";
3577                rel2.to: "icon_area";
3578                color: 0 0 0 0;
3579             }
3580          }
3581          part {
3582             name: "e.event.close";
3583             type: RECT;
3584             description {
3585                state: "default" 0.0;
3586                rel1.to: "bt_close";
3587                rel2.to: "bt_close";
3588                color: 0 0 0 0;
3589             }
3590          }
3591          part {
3592             name: "e.event.minimize";
3593             type: RECT;
3594             description {
3595                state: "default" 0.0;
3596                rel1.to: "bt_min";
3597                rel2.to: "bt_min";
3598                color: 0 0 0 0;
3599             }
3600          }
3601       }
3602       programs {
3603          program {
3604             name: "focus_in";
3605             signal: "e,state,focused";
3606             source: "e";
3607             action: STATE_SET "focused" 0.0;
3608             transition: LINEAR 0.2;
3609             target: "title_back";
3610             target: "title2";
3611             target: "title_over";
3612             target: "buttons_foc";
3613             target: "buttons_unfoc";
3614             target: "e.text.title";
3615          }
3616          program {
3617             name: "focus_out";
3618             signal: "e,state,unfocused";
3619             source: "e";
3620             action: STATE_SET "default" 0.0;
3621             transition: LINEAR 0.2;
3622             target: "title_back";
3623             target: "title2";
3624             target: "title_over";
3625             target: "buttons_foc";
3626             target: "buttons_unfoc";
3627             target: "e.text.title";
3628          }
3629          program {
3630             name: "urgent";
3631             signal: "e,state,urgent";
3632             source: "e";
3633             action: STATE_SET "visible" 0.0;
3634             target: "urgent";
3635             target: "urgent2";
3636             transition: DECELERATE 0.5;
3637             after: "urgent2";
3638          }
3639          program {
3640             name: "urgent2";
3641             action: STATE_SET "faded" 0.0;
3642             target: "urgent2";
3643             transition: LINEAR 0.5;
3644             after: "urgent3";
3645          }
3646          program {
3647             name: "urgent3";
3648             action: STATE_SET "visible" 0.0;
3649             target: "urgent2";
3650             after: "urgent2";
3651          }
3652          program {
3653             name: "urgentw0";
3654             signal: "e,state,urgent";
3655             source: "e";
3656             action: STATE_SET "default" 0.0;
3657             target: "icon_area2";
3658             transition: DECELERATE 0.1;
3659             after: "urgentw1";
3660          }
3661          program {
3662             name: "urgentw1";
3663             action: STATE_SET "uw1" 0.0;
3664             target: "icon_area2";
3665             transition: DECELERATE 0.1;
3666             after: "urgentw2";
3667          }
3668          program {
3669             name: "urgentw2";
3670             action: STATE_SET "uw2" 0.0;
3671             target: "icon_area2";
3672             transition: DECELERATE 0.1;
3673             after: "urgentw3";
3674          }
3675          program {
3676             name: "urgentw3";
3677             action: STATE_SET "uw3" 0.0;
3678             target: "icon_area2";
3679             transition: DECELERATE 0.1;
3680             after: "urgentw4";
3681          }
3682          program {
3683             name: "urgentw4";
3684             action: STATE_SET "uw4" 0.0;
3685             target: "icon_area2";
3686             transition: DECELERATE 0.1;
3687             after: "urgentw0";
3688          }
3689          program {
3690             name: "not_urgent";
3691             signal: "e,state,not_urgent";
3692             source: "e";
3693             action: ACTION_STOP;
3694             target: "urgentw0";
3695             target: "urgentw1";
3696             target: "urgentw2";
3697             target: "urgentw3";
3698             target: "urgentw4";
3699             target: "urgent";
3700             target: "urgent2";
3701             target: "urgent3";
3702             after: "not_urgent2";
3703          }
3704          program {
3705             name: "not_urgent2";
3706             action: STATE_SET "default" 0.0;
3707             target: "urgent";
3708             target: "urgent2";
3709             target: "icon_area2";
3710          }
3711          program {
3712             name: "hung";
3713             signal: "e,state,hung";
3714             source: "e";
3715             /* FIXME: */
3716             action: STATE_SET "shrunk" 0.0;
3717             target: "e.swallow.icon";
3718             transition: DECELERATE 0.5;
3719          }
3720          program {
3721             name: "unhung";
3722             signal: "e,state,unhung";
3723             source: "e";
3724             /* FIXME: */
3725             action: ACTION_STOP;
3726             target: "busy_anim";
3727          }
3728          program {
3729             name: "unhung2";
3730             signal: "e,state,unhung";
3731             source: "e";
3732             /* FIXME: */
3733             action: STATE_SET "default" 0.0;
3734             target: "e.swallow.icon";
3735             target: "busy";
3736             transition: ACCELERATE 0.5;
3737          }
3738          program {
3739             name: "busy_anim";
3740             signal: "e,state,hung";
3741             source: "e";
3742             action: STATE_SET "visible" 0.0;
3743             transition: LINEAR 0.3333;
3744             target: "busy";
3745             after: "busy_anim";
3746          }
3747          program {
3748             name: "shade_end";
3749             signal: "e,state,shaded";
3750             source: "e";
3751             action: STATE_SET "shaded" 0.0;
3752             target: "e.swallow.client";
3753          }
3754          program {
3755             name: "unshade_start";
3756             signal: "e,state,unshading";
3757             source: "e";
3758             action: STATE_SET "default" 0.0;
3759             target: "e.swallow.client";
3760          }
3761          program {
3762             name: "icon_down";
3763             signal: "mouse,down,*";
3764             source: "e.event.icon";
3765             action: STATE_SET "active" 0.0;
3766             target: "icon_area";
3767          }
3768          program {
3769             name: "icon_up";
3770             signal: "mouse,up,*";
3771             source: "e.event.icon";
3772             action: STATE_SET "default" 0.0;
3773             target: "icon_area";
3774          }
3775          program {
3776             name: "bt_close_down";
3777             signal: "mouse,down,*";
3778             source: "e.event.close";
3779             action: STATE_SET "active" 0.0;
3780             target: "bt_close_unfoc";
3781             target: "bt_close_foc";
3782          }
3783          program {
3784             name: "bt_close_up";
3785             signal: "mouse,up,*";
3786             source: "e.event.close";
3787             action: STATE_SET "default" 0.0;
3788             target: "bt_close_unfoc";
3789             target: "bt_close_foc";
3790          }
3791          program {
3792             name: "bt_min_down";
3793             signal: "mouse,down,*";
3794             source: "e.event.minimize";
3795             action: STATE_SET "active" 0.0;
3796             target: "bt_min_unfoc";
3797             target: "bt_min_foc";
3798          }
3799          program {
3800             name: "bt_min_up";
3801             signal: "mouse,up,*";
3802             source: "e.event.minimize";
3803             action: STATE_SET "default" 0.0;
3804             target: "bt_min_unfoc";
3805             target: "bt_min_foc";
3806          }
3807       }
3808    }
3809    /*** DIALOG WINDOW BORDER ***/
3810    group {
3811       name: "e/widgets/border/dialog/border";
3812       images {
3813          image: "added_images/DM_Internet_Title_bg.png" COMP;
3814          image: "added_images/DM_Internet_icon_close.png" COMP;
3815          image: "bd_top.png" COMP;
3816          image: "bd_top_hilight.png" COMP;
3817          image: "bd_bottom.png" COMP;
3818          image: "bd_title_bg.png" COMP;
3819          image: "bd_title_over.png" COMP;
3820          image: "bd_resize_b.png" COMP;
3821          image: "busy-1.png" COMP;
3822          image: "busy-2.png" COMP;
3823          image: "busy-3.png" COMP;
3824          image: "busy-4.png" COMP;
3825          image: "busy-5.png" COMP;
3826          image: "busy-6.png" COMP;
3827          image: "busy-7.png" COMP;
3828          image: "busy-8.png" COMP;
3829          image: "busy-9.png" COMP;
3830          image: "exclam.png" COMP;
3831          image: "bd_button_close_shadow.png" COMP;
3832          image: "bd_button_close_focused.png" COMP;
3833          image: "bd_button_close_unfocused.png" COMP;
3834       }
3835       parts {
3836          part {
3837             name: "top";
3838             mouse_events: 0;
3839             description {
3840                state: "default" 0.0;
3841                rel1 {
3842                   relative: 0.0 0.0;
3843                   offset: 0 0;
3844                }
3845                rel2 {
3846                   relative: 1.0 1.0;
3847                   to_y: "title_base";
3848                }
3849                color_class: "border_top";
3850                image {
3851                   normal: "added_images/DM_Internet_Title_bg.png";
3852                }
3853             }
3854          }
3855          part {
3856             name: "bottom";
3857             mouse_events: 0;
3858             description {
3859                state: "default" 0.0;
3860                rel1 {
3861                   relative: 0.0 1.0;
3862                }
3863                rel2 {
3864                   relative: 1.0 1.0;
3865                }
3866                color_class: "border_bottom";
3867             }
3868             description {
3869                state: "shaded" 0.0;
3870                inherit: "default" 0.0;
3871                visible: 0;
3872             }
3873             description {
3874                state: "max" 0.0;
3875                inherit: "default" 0.0;
3876                visible: 0;
3877             }
3878          }
3879          part {
3880             name: "e.text.title";
3881             type: TEXT;
3882             mouse_events: 0;
3883             description {
3884                state: "default" 0.0;
3885                visible: 1;
3886                align: 0.5 0.0;
3887                rel1 {
3888                   relative: 0.0 0.0;
3889                   offset: 9 2;
3890                }
3891                rel2 {
3892                   relative: 1.0 0.0;
3893                   offset: -8 2;
3894                   to_x: "title_base";
3895                }
3896                color: 255 255 255 255;
3897                text {
3898                   font: "Sans:style=Bold";
3899                   size: 10;
3900                   min: 0 1;
3901                   align: 0.5 0.0;
3902                   text_class: "title_bar";
3903                }
3904             }
3905             description {
3906                state: "focused" 0.0;
3907                inherit: "default" 0.0;
3908                visible: 1;
3909             }
3910          }
3911          part {
3912             name: "bt_close";
3913             mouse_events: 0;
3914             description {
3915                state: "default" 0.0;
3916                min: 14 14;
3917                max: 14 14;
3918                aspect: 1.0 1.0;
3919                aspect_preference: VERTICAL;
3920                rel1 {
3921                   relative: 1.0 0.0;
3922                   offset: -28 1;
3923                   to_x: "top";
3924                   to_y: "top";
3925                }
3926                rel2 {
3927                   relative: 1.0 1.0;
3928                   to_x: "top";
3929                   to_y: "top";
3930                }
3931                image.normal: "added_images/DM_Internet_icon_close.png";
3932             }
3933          }
3934          part {
3935             name: "top_hilight";
3936             mouse_events: 0;
3937             description {
3938                state: "default" 0.0;
3939                rel1 {
3940                   relative: 0.0 0.0;
3941                   offset: 0 0;
3942                   to: "top";
3943                }
3944                rel2 {
3945                   relative: 1.0 0.5;
3946                   offset: -1 0;
3947                   to: "top";
3948                }
3949                color_class: "border_top_hilight";
3950                fill.smooth: 0;
3951             }
3952          }
3953          part {
3954             name: "buttons_unfoc";
3955             type: RECT;
3956             description {
3957                state: "default" 0.0;
3958                visible: 1;
3959                color: 255 255 255 255;
3960             }
3961             description {
3962                state: "focused" 0.0;
3963                inherit: "default" 0.0;
3964                visible: 0;
3965                color: 255 255 255 0;
3966             }
3967          }
3968          part {
3969             name: "bt_close_unfoc";
3970             mouse_events: 0;
3971             clip_to: "buttons_unfoc";
3972             description {
3973                state: "default" 0.0;
3974                rel1.to: "bt_close";
3975                rel2.to: "bt_close";
3976                image.normal: "added_images/DM_Internet_icon_close.png";
3977             }
3978             description {
3979                state: "active" 0.0;
3980                inherit: "default" 0.0;
3981                rel1.offset: 0 1;
3982                rel2.offset: -1 0;
3983             }
3984          }
3985          part {
3986             name: "buttons_foc";
3987             type: RECT;
3988             description {
3989                state: "default" 0.0;
3990                visible: 0;
3991                color: 255 255 255 0;
3992             }
3993             description {
3994                state: "focused" 0.0;
3995                inherit: "default" 0.0;
3996                visible: 1;
3997                color: 255 255 255 255;
3998             }
3999          }
4000          part {
4001             name: "bt_close_foc";
4002             mouse_events: 0;
4003             clip_to: "buttons_foc";
4004             description {
4005                state: "default" 0.0;
4006                rel1.to: "bt_close";
4007                rel2.to: "bt_close";
4008                image.normal: "added_images/DM_Internet_icon_close.png";
4009             }
4010             description {
4011                state: "active" 0.0;
4012                inherit: "default" 0.0;
4013                rel1.offset: 0 1;
4014                rel2.offset: -1 0;
4015             }
4016          }
4017          part {
4018             name: "title_base";
4019             type: RECT;
4020             mouse_events: 0;
4021             description {
4022                state: "default" 0.0;
4023                visible: 0;
4024                rel1 {
4025                   relative: 0.0 0.0;
4026                   offset: 0 0;
4027                   //to_x: "icon_area";
4028                }
4029                rel2 {
4030                   relative: 0.0 1.0;
4031                   offset: -3 4;
4032                   to_y: "e.text.title";
4033                   to_x: "bt_close";
4034                }
4035             }
4036          }
4037          part {
4038             name: "title_back";
4039             mouse_events: 0;
4040             description {
4041                state: "default" 0.0;
4042                visible: 0;
4043                rel1 {
4044                   to: "title_base";
4045                }
4046                rel2 {
4047                   to: "title_base";
4048                   relative: 1.0 0.0;
4049                }
4050                fill.smooth: 0;
4051             }
4052             description {
4053                state: "focused" 0.0;
4054                inherit: "default" 0.0;
4055                visible: 1;
4056                rel2 {
4057                   to: "title_base";
4058                   relative: 1.0 1.0;
4059                }
4060             }
4061          }
4062          part {
4063             name: "title2";
4064             type: TEXT;
4065             mouse_events: 0;
4066             effect: SOFT_SHADOW;
4067             description {
4068                state: "default" 0.0;
4069                visible: 0;
4070                align: 0.0 1.0;
4071                rel1 {
4072                   to_x: "e.text.title";
4073                   to_y: "title_back";
4074                   relative: 0.0 1.0;
4075                   offset: -1 0;
4076                }
4077                rel2 {
4078                   to_x: "e.text.title";
4079                   to_y: "title_back";
4080                   relative: 1.0 1.0;
4081                   offset: 0 0;
4082                }
4083                color_class: "border_title_active";
4084                text {
4085                   text_source: "e.text.title";
4086                   font: "Sans:style=Bold";
4087                   size: 10;
4088                   align: 0.5 0.0;
4089                   min: 0 1;
4090                   text_class: "title_bar";
4091                }
4092             }
4093             description {
4094                state: "focused" 0.0;
4095                inherit: "default" 0.0;
4096                visible: 1;
4097             }
4098          }
4099          part {
4100             name: "title_over";
4101             mouse_events: 0;
4102             description {
4103                state: "default" 0.0;
4104                visible: 0;
4105                rel1.to: "title_back";
4106                rel2.to: "title_back";
4107                fill.smooth: 0;
4108             }
4109             description {
4110                state: "focused" 0.0;
4111                inherit: "default" 0.0;
4112                visible: 1;
4113             }
4114          }
4115          part {
4116             name: "bottom_clip";
4117             type: RECT;
4118             description {
4119                state: "default" 0.0;
4120                rel1.to: "bottom";
4121                rel2.to: "bottom";
4122                color: 255 255 255 255;
4123             }
4124          }
4125          part {
4126             name: "resize_b";
4127             mouse_events: 0;
4128             clip_to: "bottom_clip";
4129             description {
4130                state: "default" 0.0;
4131                min: 20 10;
4132                max: 20 10;
4133                rel1 {
4134                   to: "bottom";
4135                   relative: 0.5 0.0;
4136                   offset: 0 -10;
4137                }
4138                rel2 {
4139                   to: "bottom";
4140                   relative: 0.5 0.0;
4141                   offset: 0 -1;
4142                }
4143                image {
4144                   normal: "bd_resize_b.png";
4145                }
4146             }
4147             description {
4148                state: "past" 0.0;
4149                inherit: "default" 0.0;
4150                rel1 {
4151                   relative: 0.5 1.0;
4152                   offset: 0 0;
4153                }
4154                rel2 {
4155                   relative: 0.5 1.0;
4156                   offset: 0 9;
4157                }
4158             }
4159          }
4160          part {
4161             name: "e.swallow.client";
4162             type: SWALLOW;
4163             description {
4164                state: "default" 0.0;
4165                rel1 {
4166                   relative: 0.0 1.0;
4167                   offset: 0 0;
4168                   to_y: "top";
4169                }
4170                rel2 {
4171                   relative: 1.0 0.0;
4172                   offset: -1 -1;
4173                   to_y: "bottom";
4174                }
4175             }
4176             description {
4177                state: "shaded" 0.0;
4178                inherit: "default" 0.0;
4179                rel2 {
4180                   relative: 1.0 1.0;
4181                   offset: -1 -1;
4182                   to_y: "bottom";
4183                }
4184             }
4185             description {
4186                state: "max" 0.0;
4187                inherit: "default" 0.0;
4188                rel1 {
4189                   relative: 0.0 1.0;
4190                   offset: 0 0;
4191                   to_y: "top";
4192                }
4193                rel2 {
4194                   relative: 1.0 1.0;
4195                   offset: -1 -1;
4196                   to_y: "bottom";
4197                }
4198             }
4199          }
4200          part {
4201             name: "e.event.titlebar";
4202             type: RECT;
4203             description {
4204                state: "default" 0.0;
4205                rel1.to: "title_base";
4206                rel2.to: "title_base";
4207                color: 0 0 0 0;
4208             }
4209          }
4210          part {
4211             name: "e.event.resize.t";
4212             type: RECT;
4213             description {
4214                state: "default" 0.0;
4215                rel1 {
4216                   relative: 0.0 0.0;
4217                   offset: 0 0;
4218                }
4219                rel2 {
4220                   relative: 1.0 0.0;
4221                   offset: -1 3;
4222                }
4223                color: 0 0 0 0;
4224             }
4225             description {
4226                state: "shaded" 0.0;
4227                inherit: "default" 0.0;
4228                visible: 0;
4229             }
4230          }
4231          part {
4232             name: "e.event.resize.b";
4233             type: RECT;
4234             description {
4235                state: "default" 0.0;
4236                rel1 {
4237                   relative: 0.0 1.0;
4238                   offset: 0 -4;
4239                }
4240                rel2 {
4241                   relative: 1.0 1.0;
4242                   offset: -1 -1;
4243                }
4244                color: 0 0 0 0;
4245             }
4246             description {
4247                state: "shaded" 0.0;
4248                inherit: "default" 0.0;
4249                visible: 0;
4250             }
4251          }
4252          part {
4253             name: "e.event.resize.tl";
4254             type: RECT;
4255             description {
4256                state: "default" 0.0;
4257                rel1 {
4258                   relative: 0.0 0.0;
4259                   offset: 0 0;
4260                }
4261                rel2 {
4262                   relative: 0.0 0.0;
4263                   offset: 15 15;
4264                }
4265                color: 0 0 0 0;
4266             }
4267             description {
4268                state: "shaded" 0.0;
4269                inherit: "default" 0.0;
4270                visible: 0;
4271             }
4272          }
4273          part {
4274             name: "e.event.resize.tr";
4275             type: RECT;
4276             description {
4277                state: "default" 0.0;
4278                rel1 {
4279                   relative: 1.0 0.0;
4280                   offset: -16 0;
4281                }
4282                rel2 {
4283                   relative: 1.0 0.0;
4284                   offset: -1 15;
4285                }
4286                color: 0 0 0 0;
4287             }
4288             description {
4289                state: "shaded" 0.0;
4290                inherit: "default" 0.0;
4291                visible: 0;
4292             }
4293          }
4294          part {
4295             name: "e.event.resize.bl";
4296             type: RECT;
4297             description {
4298                state: "default" 0.0;
4299                rel1 {
4300                   relative: 0.0 1.0;
4301                   offset: 0 -16;
4302                }
4303                rel2 {
4304                   relative: 0.0 1.0;
4305                   offset: 15 -1;
4306                }
4307                color: 0 0 0 0;
4308             }
4309             description {
4310                state: "shaded" 0.0;
4311                inherit: "default" 0.0;
4312                visible: 0;
4313             }
4314          }
4315          part {
4316             name: "e.event.resize.br";
4317             type: RECT;
4318             description {
4319                state: "default" 0.0;
4320                rel1 {
4321                   relative: 1.0 1.0;
4322                   offset: -16 -16;
4323                }
4324                rel2 {
4325                   relative: 1.0 1.0;
4326                   offset: -1 -1;
4327                }
4328                color: 0 0 0 0;
4329             }
4330             description {
4331                state: "shaded" 0.0;
4332                inherit: "default" 0.0;
4333                visible: 0;
4334             }
4335          }
4336          part {
4337             name: "e.event.close";
4338             type: RECT;
4339             description {
4340                state: "default" 0.0;
4341                rel1.to: "bt_close";
4342                rel2.to: "bt_close";
4343                color: 0 0 0 0;
4344             }
4345          }
4346       }
4347       programs {
4348          program {
4349             name: "focus_in";
4350             signal: "e,state,focused";
4351             source: "e";
4352             action: STATE_SET "focused" 0.0;
4353             target: "buttons_foc";
4354             target: "buttons_unfoc";
4355          }
4356          program {
4357             name: "focus_out";
4358             signal: "e,state,unfocused";
4359             source: "e";
4360             action: STATE_SET "default" 0.0;
4361             target: "buttons_foc";
4362             target: "buttons_unfoc";
4363          }
4364          program {
4365             name: "max_full";
4366             signal: "e,action,maximize,fullscreen";
4367             source: "e";
4368             action: STATE_SET "max" 0.0;
4369             target: "bottom";
4370             target: "e.swallow.client";
4371          }
4372          program {
4373             name: "unmax_full";
4374             signal: "e,action,unmaximize,fullscreen";
4375             source: "e";
4376             action: STATE_SET "default" 0.0;
4377             target: "bottom";
4378             target: "e.swallow.client";
4379          }
4380          program {
4381             name: "shade_end";
4382             signal: "e,state,shaded";
4383             source: "e";
4384             action: STATE_SET "shaded" 0.0;
4385             target: "bottom";
4386             target: "e.swallow.client";
4387             target: "e.event.resize.tl";
4388             target: "e.event.resize.tr";
4389             target: "e.event.resize.bl";
4390             target: "e.event.resize.br";
4391             target: "e.event.resize.t";
4392             target: "e.event.resize.b";
4393          }
4394          program {
4395             name: "unshade_start";
4396             signal: "e,state,unshading";
4397             source: "e";
4398             action: STATE_SET "default" 0.0;
4399             target: "bottom";
4400             target: "e.swallow.client";
4401             target: "e.event.resize.tl";
4402             target: "e.event.resize.tr";
4403             target: "e.event.resize.bl";
4404             target: "e.event.resize.br";
4405             target: "e.event.resize.t";
4406             target: "e.event.resize.b";
4407          }
4408          program {
4409             name: "resize_b_on";
4410             signal: "mouse,in";
4411             source: "e.event.resize.b";
4412             action: ACTION_STOP;
4413             target: "resize_b_on2";
4414             target: "resize_b_on3";
4415             after: "resize_b_on2";
4416          }
4417          program {
4418             name: "resize_b_on2";
4419             action: STATE_SET "default" 0.0;
4420             target: "resize_b";
4421             after: "resize_b_on3";
4422          }
4423          program {
4424             name: "resize_b_on3";
4425             action: STATE_SET "past" 0.0;
4426             transition: LINEAR 0.5;
4427             target: "resize_b";
4428             after: "resize_b_on2";
4429          }
4430          program {
4431             name: "resize_b_off";
4432             signal: "mouse,out";
4433             source: "e.event.resize.b";
4434             action: ACTION_STOP;
4435             target: "resize_b_on";
4436             target: "resize_b_on2";
4437             target: "resize_b_on3";
4438          }
4439          program {
4440             name: "bt_close_down";
4441             signal: "mouse,down,*";
4442             source: "e.event.close";
4443             action: STATE_SET "active" 0.0;
4444             target: "bt_close_unfoc";
4445             target: "bt_close_foc";
4446          }
4447          program {
4448             name: "bt_close_up";
4449             signal: "mouse,up,*";
4450             source: "e.event.close";
4451             action: STATE_SET "default" 0.0;
4452             target: "bt_close_unfoc";
4453             target: "bt_close_foc";
4454          }
4455       }
4456    }
4457    /*** NORESIZE DIALOG WINDOW BORDER ***/
4458    group {
4459       name: "e/widgets/border/noresize_dialog/border";
4460       images {
4461          image: "added_images/DM_Internet_Title_bg.png" COMP;
4462          image: "added_images/DM_Internet_icon_close.png" COMP;
4463          image: "bd_top.png" COMP;
4464          image: "bd_top_hilight.png" COMP;
4465          image: "bd_bottom.png" COMP;
4466          image: "bd_title_bg.png" COMP;
4467          image: "bd_title_over.png" COMP;
4468          image: "bd_resize_b.png" COMP;
4469          image: "busy-1.png" COMP;
4470          image: "busy-2.png" COMP;
4471          image: "busy-3.png" COMP;
4472          image: "busy-4.png" COMP;
4473          image: "busy-5.png" COMP;
4474          image: "busy-6.png" COMP;
4475          image: "busy-7.png" COMP;
4476          image: "busy-8.png" COMP;
4477          image: "busy-9.png" COMP;
4478          image: "exclam.png" COMP;
4479          image: "bd_button_close_shadow.png" COMP;
4480          image: "bd_button_close_focused.png" COMP;
4481          image: "bd_button_close_unfocused.png" COMP;
4482       }
4483       parts {
4484          part {
4485             name: "top";
4486             mouse_events: 0;
4487             description {
4488                state: "default" 0.0;
4489                rel1 {
4490                   relative: 0.0 0.0;
4491                   offset: 0 0;
4492                }
4493                rel2 {
4494                   relative: 1.0 1.0;
4495                   to_y: "title_base";
4496                }
4497                color_class: "border_top";
4498                image {
4499                   normal: "added_images/DM_Internet_Title_bg.png";
4500                }
4501             }
4502          }
4503          part {
4504             name: "bottom";
4505             mouse_events: 0;
4506             description {
4507                state: "default" 0.0;
4508                rel1 {
4509                   relative: 0.0 1.0;
4510                }
4511                rel2 {
4512                   relative: 1.0 1.0;
4513                }
4514                color_class: "border_bottom";
4515             }
4516             description {
4517                state: "shaded" 0.0;
4518                inherit: "default" 0.0;
4519                visible: 0;
4520             }
4521             description {
4522                state: "max" 0.0;
4523                inherit: "default" 0.0;
4524                visible: 0;
4525             }
4526          }
4527          part {
4528             name: "e.text.title";
4529             type: TEXT;
4530             mouse_events: 0;
4531             description {
4532                state: "default" 0.0;
4533                visible: 1;
4534                align: 0.5 0.0;
4535                rel1 {
4536                   relative: 0.0 0.0;
4537                   offset: 9 2;
4538                   //to_x: "title_base";
4539                }
4540                rel2 {
4541                   relative: 1.0 0.0;
4542                   offset: -8 2;
4543                   to_x: "title_base";
4544                }
4545                color: 255 255 255 255;
4546                text {
4547                   font: "Sans:style=Bold";
4548                   size: 10;
4549                   min: 0 1;
4550                   align: 0.5 0.0;
4551                   text_class: "title_bar";
4552                }
4553             }
4554             description {
4555                state: "focused" 0.0;
4556                inherit: "default" 0.0;
4557                visible: 1;
4558             }
4559          }
4560          part {
4561             name: "bt_close";
4562             mouse_events: 0;
4563             description {
4564                state: "default" 0.0;
4565                min: 14 14;
4566                max: 14 14;
4567                aspect: 1.0 1.0;
4568                aspect_preference: VERTICAL;
4569                rel1 {
4570                   relative: 1.0 0.0;
4571                   offset: -28 2;
4572                   to_x: "top";
4573                   to_y: "top";
4574                }
4575                rel2 {
4576                   relative: 1.0 1.0;
4577                   to_x: "top";
4578                   to_y: "top";
4579                }
4580                image.normal: "added_images/DM_Internet_icon_close.png";
4581             }
4582          }
4583          part {
4584             name: "top_hilight";
4585             mouse_events: 0;
4586             description {
4587                state: "default" 0.0;
4588                rel1 {
4589                   relative: 0.0 0.0;
4590                   offset: 0 0;
4591                   to: "top";
4592                }
4593                rel2 {
4594                   relative: 1.0 0.5;
4595                   offset: -1 0;
4596                   to: "top";
4597                }
4598                color_class: "border_top_hilight";
4599                fill.smooth: 0;
4600             }
4601          }
4602          part {
4603             name: "buttons_unfoc";
4604             type: RECT;
4605             description {
4606                state: "default" 0.0;
4607                visible: 1;
4608                color: 255 255 255 255;
4609             }
4610             description {
4611                state: "focused" 0.0;
4612                inherit: "default" 0.0;
4613                visible: 0;
4614                color: 255 255 255 0;
4615             }
4616          }
4617          part {
4618             name: "bt_close_unfoc";
4619             mouse_events: 0;
4620             clip_to: "buttons_unfoc";
4621             description {
4622                state: "default" 0.0;
4623                rel1.to: "bt_close";
4624                rel2.to: "bt_close";
4625                image.normal: "added_images/DM_Internet_icon_close.png";
4626             }
4627             description {
4628                state: "active" 0.0;
4629                inherit: "default" 0.0;
4630                rel1.offset: 0 1;
4631                rel2.offset: -1 0;
4632             }
4633          }
4634          part {
4635             name: "buttons_foc";
4636             type: RECT;
4637             description {
4638                state: "default" 0.0;
4639                visible: 0;
4640                color: 255 255 255 0;
4641             }
4642             description {
4643                state: "focused" 0.0;
4644                inherit: "default" 0.0;
4645                visible: 1;
4646                color: 255 255 255 255;
4647             }
4648          }
4649          part {
4650             name: "bt_close_foc";
4651             mouse_events: 0;
4652             clip_to: "buttons_foc";
4653             description {
4654                state: "default" 0.0;
4655                rel1.to: "bt_close";
4656                rel2.to: "bt_close";
4657                image.normal: "added_images/DM_Internet_icon_close.png";
4658             }
4659             description {
4660                state: "active" 0.0;
4661                inherit: "default" 0.0;
4662                rel1.offset: 0 1;
4663                rel2.offset: -1 0;
4664             }
4665          }
4666          part {
4667             name: "title_base";
4668             type: RECT;
4669             mouse_events: 0;
4670             description {
4671                state: "default" 0.0;
4672                visible: 0;
4673                rel1 {
4674                   relative: 0.0 0.0;
4675                   offset: 0 0;
4676                }
4677                rel2 {
4678                   relative: 0.0 1.0;
4679                   offset: -3 4;
4680                   to_y: "e.text.title";
4681                   to_x: "bt_close";
4682                }
4683             }
4684          }
4685          part {
4686             name: "title_back";
4687             mouse_events: 0;
4688             description {
4689                state: "default" 0.0;
4690                visible: 0;
4691                rel1 {
4692                   to: "title_base";
4693                }
4694                rel2 {
4695                   to: "title_base";
4696                   relative: 1.0 0.0;
4697                }
4698                fill.smooth: 0;
4699             }
4700             description {
4701                state: "focused" 0.0;
4702                inherit: "default" 0.0;
4703                visible: 1;
4704                rel2 {
4705                   to: "title_base";
4706                   relative: 1.0 1.0;
4707                }
4708             }
4709          }
4710          part {
4711             name: "title2";
4712             type: TEXT;
4713             mouse_events: 0;
4714             effect: SOFT_SHADOW;
4715             description {
4716                state: "default" 0.0;
4717                visible: 0;
4718                align: 0.0 1.0;
4719                rel1 {
4720                   to_x: "e.text.title";
4721                   to_y: "title_back";
4722                   relative: 0.0 1.0;
4723                   offset: -1 0;
4724                }
4725                rel2 {
4726                   to_x: "e.text.title";
4727                   to_y: "title_back";
4728                   relative: 1.0 1.0;
4729                   offset: 0 0;
4730                }
4731                color_class: "border_title_active";
4732                text {
4733                   text_source: "e.text.title";
4734                   font: "Sans:style=Bold";
4735                   size: 10;
4736                   align: 0.5 0.0;
4737                   min: 0 1;
4738                   text_class: "title_bar";
4739                }
4740             }
4741             description {
4742                state: "focused" 0.0;
4743                inherit: "default" 0.0;
4744                visible: 1;
4745             }
4746          }
4747          part {
4748             name: "title_over";
4749             mouse_events: 0;
4750             description {
4751                state: "default" 0.0;
4752                visible: 0;
4753                rel1.to: "title_back";
4754                rel2.to: "title_back";
4755                fill.smooth: 0;
4756             }
4757             description {
4758                state: "focused" 0.0;
4759                inherit: "default" 0.0;
4760                visible: 1;
4761             }
4762          }
4763          part {
4764             name: "bottom_clip";
4765             type: RECT;
4766             description {
4767                state: "default" 0.0;
4768                rel1.to: "bottom";
4769                rel2.to: "bottom";
4770                color: 255 255 255 255;
4771             }
4772          }
4773          part {
4774             name: "resize_b";
4775             mouse_events: 0;
4776             clip_to: "bottom_clip";
4777             description {
4778                state: "default" 0.0;
4779                min: 20 10;
4780                max: 20 10;
4781                rel1 {
4782                   to: "bottom";
4783                   relative: 0.5 0.0;
4784                   offset: 0 -10;
4785                }
4786                rel2 {
4787                   to: "bottom";
4788                   relative: 0.5 0.0;
4789                   offset: 0 -1;
4790                }
4791                image {
4792                   normal: "bd_resize_b.png";
4793                }
4794             }
4795             description {
4796                state: "past" 0.0;
4797                inherit: "default" 0.0;
4798                rel1 {
4799                   relative: 0.5 1.0;
4800                   offset: 0 0;
4801                }
4802                rel2 {
4803                   relative: 0.5 1.0;
4804                   offset: 0 9;
4805                }
4806             }
4807          }
4808          part {
4809             name: "e.swallow.client";
4810             type: SWALLOW;
4811             description {
4812                state: "default" 0.0;
4813                rel1 {
4814                   relative: 0.0 1.0;
4815                   offset: 0 0;
4816                   to_y: "top";
4817                }
4818                rel2 {
4819                   relative: 1.0 0.0;
4820                   offset: -1 -1;
4821                   to_y: "bottom";
4822                }
4823             }
4824             description {
4825                state: "shaded" 0.0;
4826                inherit: "default" 0.0;
4827                rel2 {
4828                   relative: 1.0 1.0;
4829                   offset: -1 -1;
4830                   to_y: "bottom";
4831                }
4832             }
4833             description {
4834                state: "max" 0.0;
4835                inherit: "default" 0.0;
4836                rel1 {
4837                   relative: 0.0 1.0;
4838                   offset: 0 0;
4839                   to_y: "top";
4840                }
4841                rel2 {
4842                   relative: 1.0 1.0;
4843                   offset: -1 -1;
4844                   to_y: "bottom";
4845                }
4846             }
4847          }
4848          part {
4849             name: "e.event.titlebar";
4850             type: RECT;
4851             description {
4852                state: "default" 0.0;
4853                rel1.to: "title_base";
4854                rel2.to: "title_base";
4855                color: 0 0 0 0;
4856             }
4857          }
4858          part {
4859             name: "e.event.close";
4860             type: RECT;
4861             description {
4862                state: "default" 0.0;
4863                rel1.to: "bt_close";
4864                rel2.to: "bt_close";
4865                color: 0 0 0 0;
4866             }
4867          }
4868       }
4869       programs {
4870          program {
4871             name: "focus_in";
4872             signal: "e,state,focused";
4873             source: "e";
4874             action: STATE_SET "focused" 0.0;
4875             target: "buttons_foc";
4876             target: "buttons_unfoc";
4877          }
4878          program {
4879             name: "focus_out";
4880             signal: "e,state,unfocused";
4881             source: "e";
4882             action: STATE_SET "default" 0.0;
4883             target: "buttons_foc";
4884             target: "buttons_unfoc";
4885          }
4886          program {
4887             name: "max_full";
4888             signal: "e,action,maximize,fullscreen";
4889             source: "e";
4890             action: STATE_SET "max" 0.0;
4891             target: "bottom";
4892             target: "e.swallow.client";
4893          }
4894          program {
4895             name: "unmax_full";
4896             signal: "e,action,unmaximize,fullscreen";
4897             source: "e";
4898             action: STATE_SET "default" 0.0;
4899             target: "bottom";
4900             target: "e.swallow.client";
4901          }
4902          program {
4903             name: "resize_b_on";
4904             signal: "mouse,in";
4905             source: "e.event.resize.b";
4906             action: ACTION_STOP;
4907             target: "resize_b_on2";
4908             target: "resize_b_on3";
4909             after: "resize_b_on2";
4910          }
4911          program {
4912             name: "resize_b_on2";
4913             action: STATE_SET "default" 0.0;
4914             target: "resize_b";
4915             after: "resize_b_on3";
4916          }
4917          program {
4918             name: "resize_b_on3";
4919             action: STATE_SET "past" 0.0;
4920             transition: LINEAR 0.5;
4921             target: "resize_b";
4922             after: "resize_b_on2";
4923          }
4924          program {
4925             name: "resize_b_off";
4926             signal: "mouse,out";
4927             source: "e.event.resize.b";
4928             action: ACTION_STOP;
4929             target: "resize_b_on";
4930             target: "resize_b_on2";
4931             target: "resize_b_on3";
4932          }
4933          program {
4934             name: "bt_close_down";
4935             signal: "mouse,down,*";
4936             source: "e.event.close";
4937             action: STATE_SET "active" 0.0;
4938             target: "bt_close_unfoc";
4939             target: "bt_close_foc";
4940          }
4941          program {
4942             name: "bt_close_up";
4943             signal: "mouse,up,*";
4944             source: "e.event.close";
4945             action: STATE_SET "default" 0.0;
4946             target: "bt_close_unfoc";
4947             target: "bt_close_foc";
4948          }
4949       }
4950    }
4951    /*** BONUS BORDERS TO CHOOSE FROM ***/
4952    group {
4953       name: "e/widgets/border/pixel/border";
4954       parts {
4955          part {
4956             name: "px1";
4957             type: RECT;
4958             description {
4959                state: "default" 0.0;
4960                rel1 {
4961                   relative: 0.0 0.0;
4962                   offset: 0 0;
4963                }
4964                rel2 {
4965                   relative: 1.0 0.0;
4966                   offset: -1 0;
4967                }
4968                color: 0 0 0 255;
4969             }
4970          }
4971          part {
4972             name: "px2";
4973             type: RECT;
4974             description {
4975                state: "default" 0.0;
4976                rel1 {
4977                   relative: 0.0 1.0;
4978                   offset: 0 -1;
4979                }
4980                rel2 {
4981                   relative: 1.0 1.0;
4982                   offset: -1 -1;
4983                }
4984                color: 0 0 0 255;
4985             }
4986          }
4987          part {
4988             name: "px3";
4989             type: RECT;
4990             description {
4991                state: "default" 0.0;
4992                rel1 {
4993                   relative: 0.0 0.0;
4994                   offset: 0 1;
4995                }
4996                rel2 {
4997                   relative: 0.0 1.0;
4998                   offset: 0 -2;
4999                }
5000                color: 0 0 0 255;
5001             }
5002          }
5003          part {
5004             name: "px4";
5005             type: RECT;
5006             description {
5007                state: "default" 0.0;
5008                rel1 {
5009                   relative: 1.0 0.0;
5010                   offset: -1 1;
5011                }
5012                rel2 {
5013                   relative: 1.0 1.0;
5014                   offset: -1 -2;
5015                }
5016                color: 0 0 0 255;
5017             }
5018          }
5019          part {
5020             name: "e.swallow.client";
5021             type: SWALLOW;
5022             description {
5023                state: "default" 0.0;
5024                rel1 {
5025                   relative: 0.0 0.0;
5026                   offset: 1 1;
5027                }
5028                rel2 {
5029                   relative: 1.0 1.0;
5030                   offset: -2 -2;
5031                }
5032             }
5033          }
5034       }
5035    }
5036 /////////////////////////////////////////////////////////////////////////////
5037 /*** THE DEFAULT MOUSE CURSOR - MONOCHROME. REALLY BORING ***/
5038    /* This pointer is used if the Xserver does not support full ARGB color
5039     * pointers. This can happen if X is old or the driver or libxcursor did
5040     * not exist when ecore was compiled. since the cursor will be literally
5041     * reduced down to black and white with a single transparency mask,
5042     * colors other than black and whigte will be lost (and be approximated
5043     * with dithering) and any translucency other than completely opaque or
5044     * completely transparent pixels will also be lost. it then makes sense
5045     * to have a special black and white only image with no semi-transparency
5046     * so when this is displayed it will look directly as intended by the
5047     * artist */
5048
5049    group {
5050       name: "e/pointer/enlightenment/default/mono";
5051       images {
5052          image: "added_images/e17_pointer_mono.png" COMP;
5053       }
5054       parts {
5055          part {
5056             name: "e/pointer";
5057             mouse_events: 0;
5058             description {
5059                state: "default" 0.0;
5060                image {
5061                   normal: "added_images/e17_pointer_mono.png";
5062                }
5063             }
5064          }
5065          part {
5066             name: "hotspot";
5067             /* this cursor also has a hotspot */
5068             type: SWALLOW;
5069             description {
5070                state: "default" 0.0;
5071                visible: 0;
5072                rel1 {
5073                   relative: 0.0 0.0;
5074                   offset: 1 1;
5075                }
5076                rel2 {
5077                   relative: 0.0 0.0;
5078                   offset: 1 1;
5079                }
5080             }
5081          }
5082       }
5083    }
5084 /////////////////////////////////////////////////////////////////////////////
5085 /*** TOOLBAR ****/
5086
5087    group {
5088       name: "e/widgets/toolbar";
5089       images {
5090          image: "bt_dis_base.png" COMP;
5091          image: "bt_dis_hilight.png" COMP;
5092          image: "bt_dis_shine.png" COMP;
5093          image: "icon_left_arrow.png" COMP;
5094          image: "icon_right_arrow.png" COMP;
5095       }
5096       parts {
5097          part {
5098             name: "base";
5099             mouse_events: 1;
5100             description {
5101                state: "default" 0.0;
5102                rel1 {
5103                   relative: 0.0 0.0;
5104                   offset: 2 2;
5105                }
5106                rel2.offset: -3 -3;
5107                image {
5108                   normal: "bt_dis_base.png";
5109                   border: 4 4 4 4;
5110                }
5111             }
5112          }
5113          part {
5114             name: "clipper";
5115             type: RECT;
5116             mouse_events: 0;
5117             description {
5118                state: "default" 0.0;
5119                rel1 {
5120                   to: "base";
5121                   offset: 2 2;
5122                }
5123                rel2 {
5124                   to: "base";
5125                   offset: -3 -3;
5126                }
5127             }
5128          }
5129          part {
5130             name: "e.swallow.content";
5131             clip_to: "clipper";
5132             type: SWALLOW;
5133             description {
5134                state: "default" 0.0;
5135                rel1.to: "clipper";
5136                rel2.to: "clipper";
5137             }
5138          }
5139          part {
5140             name: "over2";
5141             mouse_events: 0;
5142             description {
5143                state: "default" 0.0;
5144                rel1.to: "base";
5145                rel2.to: "base";
5146                image {
5147                   normal: "bt_dis_shine.png";
5148                   border: 4 4 4 4;
5149                }
5150             }
5151          }
5152          part {
5153             name: "over1";
5154             mouse_events: 0;
5155             description {
5156                state: "default" 0.0;
5157                rel1.to: "base";
5158                rel2.to: "base";
5159                rel2.relative: 1.0 0.5;
5160                image {
5161                   normal: "bt_dis_hilight.png";
5162                   border: 4 4 4 0;
5163                }
5164                color: 255 255 255 128;
5165             }
5166          }
5167          part {
5168             name: "left_arrow";
5169             mouse_events: 1;
5170             scale: 1;
5171             description {
5172                state: "default" 0.0;
5173                image.normal: "icon_left_arrow.png";
5174                aspect: 1.0 1.0;
5175                aspect_preference: VERTICAL;
5176                align: 0.0 0.5;
5177                min: 32 32;
5178                max: 32 32;
5179             }
5180             description {
5181                state: "hidden" 0.0;
5182                inherit: "default" 0.0;
5183                visible: 0;
5184                color: 255 255 255 0;
5185             }
5186          }
5187          part {
5188             name: "right_arrow";
5189             mouse_events: 1;
5190             scale: 1;
5191             description {
5192                state: "default" 0.0;
5193                image.normal: "icon_right_arrow.png";
5194                aspect: 1.0 1.0;
5195                aspect_preference: VERTICAL;
5196                align: 1.0 0.5;
5197                min: 32 32;
5198                max: 32 32;
5199             }
5200             description {
5201                state: "hidden" 0.0;
5202                inherit: "default" 0.0;
5203                visible: 0;
5204                color: 255 255 255 0;
5205             }
5206          }
5207          part {
5208             name: "e.dragable.hbar";
5209             mouse_events: 0;
5210             dragable {
5211                x: 1 1 0;
5212                y: 0 0 0;
5213                confine: "base";
5214             }
5215             description {
5216                state: "default" 0.0;
5217                visible: 0;
5218                rel1.to: "base";
5219                rel2.to: "base";
5220             }
5221          }
5222          part {
5223             name: "event";
5224             type: RECT;
5225             mouse_events: 1;
5226             repeat_events: 1;
5227             description {
5228                state: "default" 0.0;
5229                color: 0 0 0 0;
5230             }
5231          }
5232       }
5233       programs {
5234          program {
5235             name: "sb_hbar_show";
5236             signal: "e,action,show,hbar";
5237             source: "e";
5238             action: STATE_SET "default" 0.0;
5239             transition: LINEAR 0.5;
5240             target: "left_arrow";
5241             target: "right_arrow";
5242          }
5243          program {
5244             name: "sb_hbar_hide";
5245             signal: "e,action,hide,hbar";
5246             source: "e";
5247             action: STATE_SET "hidden" 0.0;
5248             target: "left_arrow";
5249             target: "right_arrow";
5250             transition: LINEAR 0.5;
5251          }
5252          program {
5253             name: "sb_left";
5254             signal: "mouse,down,1";
5255             source: "left_arrow";
5256             action: SIGNAL_EMIT "e,action,prev" "e";
5257          }
5258          program {
5259             name: "sb_right";
5260             signal: "mouse,down,1";
5261             source: "right_arrow";
5262             action: SIGNAL_EMIT "e,action,next" "e";
5263          }
5264       }
5265    }
5266    group {
5267       name: "e/widgets/toolbar/item";
5268       images {
5269          image: "toolbar_sel.png" COMP;
5270       }
5271       parts {
5272          part {
5273             name: "label2";
5274             type: TEXT;
5275             mouse_events: 0;
5276             scale: 1;
5277             description {
5278                state: "default" 0.0;
5279                align: 0.5 1.0;
5280                fixed: 0 1;
5281                rel1.to: "e.text.label";
5282                rel2.to: "e.text.label";
5283                color: 0 0 0 255;
5284                text {
5285                   font: "Sans";
5286                   text_source: "e.text.label";
5287                   size: 10;
5288                   min: 1 1;
5289                   align: 0.5 0.5;
5290                   text_class: "fileman_icon";
5291                }
5292             }
5293             description {
5294                state: "selected" 0.0;
5295                inherit: "default" 0.0;
5296                visible: 0;
5297             }
5298          }
5299          part {
5300             name: "bg";
5301             mouse_events: 0;
5302             description {
5303                state: "default" 0.0;
5304                visible: 0;
5305                color: 255 255 255 0;
5306                image {
5307                   normal: "toolbar_sel.png";
5308                   border: 3 3 0 0;
5309                }
5310                fill.smooth: 0;
5311             }
5312             description {
5313                state: "selected" 0.0;
5314                inherit: "default" 0.0;
5315                visible: 1;
5316                color: 255 255 255 255;
5317             }
5318          }
5319          part {
5320             name: "e.swallow.icon";
5321             type: SWALLOW;
5322             description {
5323                state: "default" 0.0;
5324                align: 0.5 0.5;
5325                rel1 {
5326                   relative: 0.0 0.0;
5327                   offset: 2 2;
5328                }
5329                rel2 {
5330                   to_y: "e.text.label";
5331                   relative: 1.0 0.0;
5332                   offset: -3 -1;
5333                }
5334                color: 0 0 0 0;
5335             }
5336          }
5337          part {
5338             name: "e.text.label";
5339             type: TEXT;
5340             effect: SOFT_SHADOW;
5341             mouse_events: 0;
5342             scale: 1;
5343             description {
5344                state: "default" 0.0;
5345                align: 0.5 1.0;
5346                fixed: 0 1;
5347                rel1 {
5348                   relative: 0.0 1.0;
5349                   offset: 0 2;
5350                }
5351                rel2 {
5352                   relative: 1.0 1.0;
5353                   offset: -1 -1;
5354                }
5355                visible: 0;
5356                color: 224 224 224 255;
5357                color3: 0 0 0 32;
5358                text {
5359                   font: "Sans:style=Bold";
5360                   size: 10;
5361                   min: 1 1;
5362                   align: 0.5 0.5;
5363                   text_class: "fileman_icon";
5364                }
5365             }
5366             description {
5367                state: "selected" 0.0;
5368                inherit: "default" 0.0;
5369                visible: 1;
5370             }
5371          }
5372          part {
5373             name: "event";
5374             type: RECT;
5375             mouse_events: 1;
5376             ignore_flags: ON_HOLD;
5377             description {
5378                state: "default" 0.0;
5379                color: 0 0 0 0;
5380             }
5381          }
5382       }
5383       programs {
5384          program {
5385             name: "go_active";
5386             signal: "e,state,selected";
5387             source: "e";
5388             action: STATE_SET "selected" 0.0;
5389             target: "bg";
5390             target: "e.text.label";
5391             target: "label2";
5392             transition: LINEAR 0.2;
5393          }
5394          program {
5395             name: "go_passive";
5396             signal: "e,state,unselected";
5397             source: "e";
5398             action: STATE_SET "default" 0.0;
5399             target: "bg";
5400             target: "e.text.label";
5401             target: "label2";
5402             transition: LINEAR 0.1;
5403          }
5404          program {
5405             name: "go";
5406             signal: "mouse,up,1";
5407             source: "event";
5408             action: SIGNAL_EMIT "e,action,click" "e";
5409          }
5410       }
5411    }
5412
5413
5414 /////////////////////////////////////////////////////////////////////////////
5415 /*** MENUS ***/
5416
5417    /* this is the background for all menus. it also may optionally display a
5418     * title for the menu. this is wrapped around all the menu items that are
5419     * laid out in a vertical list from top to bottom */
5420
5421    group {
5422       name: "e/widgets/menu/default/background";
5423       images {
5424          image: "base_bg.png" COMP;
5425          image: "bd_top_hilight.png" COMP;
5426          image: "bd_title_bg.png" COMP;
5427          image: "bd_title_over.png" COMP;
5428       }
5429       parts {
5430          part {
5431             name: "base";
5432             mouse_events: 0;
5433             description {
5434                state: "default" 0.0;
5435                align: 0.5 0.0;
5436                color_class: "menu_base";
5437                image {
5438                   normal: "base_bg.png";
5439                   border: 2 2 2 2;
5440                }
5441                fill.smooth: 0;
5442                /* note - a shortcut for avoiding doing
5443                 * fill { smooth: 0; } */
5444             }
5445          }
5446          part {
5447             name: "top_hilight";
5448             mouse_events: 0;
5449             description {
5450                state: "default" 0.0;
5451                rel1 {
5452                   relative: 0.0 0.0;
5453                   offset: 0 0;
5454                }
5455                rel2 {
5456                   relative: 1.0 0.0;
5457                   offset: -1 15;
5458                }
5459                image.normal: "bd_top_hilight.png";
5460                fill.smooth: 0;
5461             }
5462          }
5463          part {
5464             name: "title_back";
5465             mouse_events: 0;
5466             description {
5467                state: "default" 0.0;
5468                visible: 0;
5469                rel1 {
5470                   relative: 0.0 0.0;
5471                   offset: 4 0;
5472                }
5473                rel2 {
5474                   relative: 1.0 0.0;
5475                   offset: -5 0;
5476                }
5477                image {
5478                   normal: "bd_title_bg.png";
5479                   border: 7 7 2 7;
5480                }
5481                fill.smooth: 0;
5482             }
5483             description {
5484                state: "active" 0.0;
5485                inherit: "default" 0.0;
5486                visible: 1;
5487                rel1 {
5488                   relative: 0.0 0.0;
5489                   offset: 4 0;
5490                }
5491                rel2 {
5492                   to_y: "e.text.title";
5493                   relative: 1.0 1.0;
5494                   offset: -5 -4;
5495                }
5496             }
5497          }
5498          part {
5499             name: "e.text.title";
5500             /* e sets the text of this to the title
5501              * if there is any */
5502             type: TEXT;
5503             mouse_events: 0;
5504             scale: 1;
5505             effect: SOFT_SHADOW;
5506             description {
5507                state: "default" 0.0;
5508                fixed: 1 1;
5509                visible: 0;
5510                align: 0.5 0.0;
5511                rel1 {
5512                   relative: 0.0 0.0;
5513                   offset: 0 0;
5514                }
5515                rel2 {
5516                   relative: 1.0 0.0;
5517                   offset: -1 0;
5518                }
5519                color_class: "menu_title";
5520                text {
5521                   text_source: "e.text.title";
5522                   font: "Sans:style=Bold";
5523                   size: 10;
5524                   align: 0.5 0.0;
5525                   min: 0 0;
5526                   text_class: "menu_title";
5527                }
5528             }
5529             description {
5530                state: "active" 0.0;
5531                inherit: "default" 0.0;
5532                visible: 1;
5533                color_class: "menu_title_active";
5534                text.min: 1 1;
5535             }
5536          }
5537          part {
5538             name: "title_over";
5539             mouse_events: 0;
5540             description {
5541                state: "default" 0.0;
5542                visible: 0;
5543                rel1.to: "title_back";
5544                rel2.to: "title_back";
5545                image {
5546                   normal: "bd_title_over.png";
5547                   border: 7 7 2 7;
5548                }
5549                fill.smooth: 0;
5550             }
5551             description {
5552                state: "active" 0.0;
5553                inherit: "default" 0.0;
5554                visible: 1;
5555             }
5556          }
5557          part {
5558             name: "e.swallow.content";
5559             /* this swallow part determines
5560              * where in the menu the vertical
5561              * list of menu items is put */
5562             type: SWALLOW;
5563             description {
5564                state: "default" 0.0;
5565                rel1 {
5566                   to_y: "e.text.title";
5567                   relative: 0.0 1.0;
5568                   offset: 2 1;
5569                }
5570                rel2 {
5571                   relative: 1.0 1.0;
5572                   offset: -3 -3;
5573                }
5574             }
5575          }
5576       }
5577       programs {
5578          program {
5579             name: "on";
5580             /* this program is run when e emits a signal
5581              * to display a title. e will also set the
5582              * title text */
5583             signal: "e,action,show,title";
5584             source: "e";
5585             action: STATE_SET "active" 0.0;
5586             target: "title_back";
5587             target: "e.text.title";
5588             target: "title_over";
5589          }
5590          program {
5591             name: "off";
5592             /* run when the title is removed */
5593             signal: "e,action,hide,title";
5594             source: "e";
5595             action: STATE_SET "default" 0.0;
5596             target: "title_back";
5597             target: "e.text.title";
5598             target: "title_over";
5599          }
5600       }
5601    }
5602    /* this is placed as a horizontal separator between menu items in the
5603     * vertical menu item list. it has no functionality other than being
5604     * a visual separator */
5605    group {
5606       name: "e/widgets/menu/default/separator";
5607       images {
5608          image: "menu_sep.png" COMP;
5609       }
5610       parts {
5611          part {
5612             name: "separator";
5613             mouse_events: 0;
5614             description {
5615                state: "default" 0.0;
5616                min: 16 2;
5617                rel1.offset: 2 2;
5618                rel2.offset: -3 -3;
5619                image {
5620                   normal: "menu_sep.png";
5621                   border: 2 2 0 0;
5622                }
5623                fill.smooth: 0;
5624             }
5625          }
5626       }
5627    }
5628    /* this is used for regular menu items. this is what swallows/holds the
5629     * whole line of the menu item, icon, check/radio mark, label and submenu
5630     * indicator, where applicable */
5631    group {
5632       name: "e/widgets/menu/default/item_bg";
5633       /* this is idential to the regular menu item above, but used only for
5634        * items that have a submenu. this is to allow for a possible different
5635        * look for submenu holding items. here this is identical to to the
5636        * normal menu item, thus we are making use of the alias directive that
5637        * gives a group the ability to go by manu names */
5638       alias: "e/widgets/menu/default/submenu_bg";
5639       images {
5640          image: "menu_sel_bg.png" COMP;
5641          image: "menu_sel_fg.png" COMP;
5642       }
5643       parts {
5644          part {
5645             name: "bg";
5646             mouse_events: 0;
5647             description {
5648                state: "default" 0.0;
5649                visible: 0;
5650                color: 255 255 255 0;
5651                rel1 {
5652                   relative: 0.0 0.0;
5653                   offset: -5 -3;
5654                }
5655                rel2 {
5656                   relative: 1.0 1.0;
5657                   offset: 4 5;
5658                }
5659                image {
5660                   normal: "menu_sel_bg.png";
5661                   border: 8 8 5 9;
5662                }
5663             }
5664             description {
5665                state: "selected" 0.0;
5666                inherit: "default" 0.0;
5667                visible: 1;
5668                color: 255 255 255 255;
5669                rel1 {
5670                   relative: 0.0 0.0;
5671                   offset: -2 0;
5672                }
5673                rel2 {
5674                   relative: 1.0 1.0;
5675                   offset: 1 2;
5676                }
5677             }
5678          }
5679          part {
5680             name: "e.swallow.content";
5681             /* all item content will go here */
5682             type: SWALLOW;
5683             description {
5684                state: "default" 0.0;
5685                align: 0.0 0.0;
5686                rel1.offset: 2 1;
5687                rel2.offset: -3 -2;
5688             }
5689          }
5690          part {
5691             name: "fg";
5692             mouse_events: 0;
5693             description {
5694                state: "default" 0.0;
5695                visible: 0;
5696                color: 255 255 255 0;
5697                rel1.to: "bg";
5698                rel2.to: "bg";
5699                image {
5700                   normal: "menu_sel_fg.png";
5701                   border: 8 8 5 9;
5702                }
5703             }
5704             description {
5705                state: "selected" 0.0;
5706                inherit: "default" 0.0;
5707                visible: 1;
5708                color: 255 255 255 255;
5709             }
5710          }
5711       }
5712       programs {
5713          program {
5714             name: "sel";
5715             /* when the menu item is selected (hilighted)
5716              * this program is run to give the whole item
5717              * an overall selected look */
5718             signal: "e,state,selected";
5719             source: "e";
5720             action: STATE_SET "selected" 0.0;
5721             transition: LINEAR 0.2;
5722             target: "bg";
5723             target: "fg";
5724          }
5725          program {
5726             name: "unsel";
5727             /* when selection is removed from the menu
5728              * item */
5729             signal: "e,state,unselected";
5730             source: "e";
5731             action: STATE_SET "default" 0.0;
5732             transition: LINEAR 0.1;
5733             target: "bg";
5734             target: "fg";
5735          }
5736       }
5737    }
5738    /* this group holds a menu icon. here we just use it to add padding around
5739     * the icon. And to gray-out when disabled */
5740    group {
5741       name: "e/widgets/menu/default/icon";
5742       parts {
5743          part {
5744             name: "clip";
5745             type: RECT;
5746             description {
5747                min: 10 10;
5748                state: "default" 0.0;
5749                color: 255 255 255 255;
5750             }
5751             description {
5752                state: "disabled" 0.0;
5753                color: 255 255 255 128;
5754             }
5755          }
5756          part {
5757             name: "e.swallow.content";
5758             /* icon is swallowed here */
5759             type: SWALLOW;
5760             clip_to: "clip";
5761             description {
5762                state: "default" 0.0;
5763                min: 16 16;
5764                max: 24 24;
5765                fixed: 1 1;
5766                rel1 {
5767                   relative: 0.0 0.0;
5768                   offset: 2 2;
5769                }
5770                rel2 {
5771                   relative: 1.0 1.0;
5772                   offset: -3 -3;
5773                }
5774             }
5775          }
5776       }
5777       programs {
5778          program {
5779             name: "enable";
5780             /* enable */
5781             signal: "e,state,enable";
5782             source: "e";
5783             action: STATE_SET "default" 0.0;
5784             target: "clip";
5785          }
5786          program {
5787             name: "disable";
5788             /* disable */
5789             signal: "e,state,disable";
5790             source: "e";
5791             action: STATE_SET "disabled" 0.0;
5792             target: "clip";
5793          }
5794       }
5795    }
5796    /* this is the actual text label for the menu item */
5797    group {
5798       name: "e/widgets/menu/default/label";
5799       parts {
5800          part {
5801             name: "e.text.label";
5802             /* e sets the text of this */
5803             type: TEXT;
5804             effect: SOFT_SHADOW;
5805             mouse_events: 0;
5806             scale: 1;
5807             description {
5808                state: "default" 0.0;
5809                rel1 {
5810                   relative: 0.0 0.0;
5811                   offset: 1 -1;
5812                }
5813                rel2 {
5814                   relative: 1.0 1.0;
5815                   offset: -1 1;
5816                }
5817                color_class: "menu_item";
5818                text {
5819                   font: "Sans";
5820                   size: 10;
5821                   min: 1 1;
5822                   align: 0.0 0.5;
5823                   text_class: "menu_item";
5824                }
5825             }
5826             description {
5827                state: "selected" 0.0;
5828                inherit: "default" 0.0;
5829                color_class: "menu_item_active";
5830             }
5831             description {
5832                state: "disabled" 0.0;
5833                inherit: "default" 0.0;
5834                color_class: "menu_item_disabled";
5835             }
5836          }
5837       }
5838       programs {
5839          program {
5840             name: "sel";
5841             /* when the menu item is actually selected */
5842             signal: "e,state,selected";
5843             source: "e";
5844             action: STATE_SET "selected" 0.0;
5845             transition: LINEAR 0.2;
5846             target: "e.text.label";
5847          }
5848          program {
5849             name: "unsel";
5850             /* on de-select */
5851             signal: "e,state,unselected";
5852             source: "e";
5853             action: STATE_SET "default" 0.0;
5854             transition: LINEAR 0.3;
5855             target: "e.text.label";
5856          }
5857          program {
5858             name: "enable";
5859             /* enable */
5860             signal: "e,state,enable";
5861             source: "e";
5862             action: STATE_SET "default" 0.0;
5863             transition: LINEAR 0.3;
5864             target: "e.text.label";
5865          }
5866          program {
5867             name: "disable";
5868             /* disable */
5869             signal: "e,state,disable";
5870             source: "e";
5871             action: STATE_SET "disabled" 0.0;
5872             //transition: LINEAR 0.3;
5873             target: "e.text.label";
5874          }
5875       }
5876    }
5877    /* this is a small arrow on the right of the menu item to indicate that it
5878     * has a submenu after it */
5879    group {
5880       name: "e/widgets/menu/default/submenu";
5881       images {
5882          image: "menu_arrow_normal.png" COMP;
5883          image: "menu_arrow_sel.png" COMP;
5884       }
5885       parts {
5886          part {
5887             name: "arrow";
5888             mouse_events: 0;
5889             description {
5890                state: "default" 0.0;
5891                min: 9 12;
5892                max: 9 12;
5893                rel1 {
5894                   relative: 0.0 0.0;
5895                   offset: 4 1;
5896                }
5897                rel2 {
5898                   relative: 1.0 1.0;
5899                   offset: -3 -1;
5900                }
5901                image.normal: "menu_arrow_normal.png";
5902             }
5903             description {
5904                state: "selected" 0.0;
5905                inherit: "default" 0.0;
5906                image.normal: "menu_arrow_sel.png";
5907             }
5908          }
5909       }
5910       programs {
5911          program {
5912             name: "sel";
5913             signal: "e,state,selected";
5914             source: "e";
5915             action: STATE_SET "selected" 0.0;
5916             target: "arrow";
5917          }
5918          program {
5919             name: "unsel";
5920             signal: "e,state,unselected";
5921             source: "e";
5922             action: STATE_SET "default" 0.0;
5923             target: "arrow";
5924          }
5925       }
5926    }
5927    /* this is placed left of the icon in a menu item (if any icon) or left
5928     * of the label if no icon is present. this is a checkbox to indicate if
5929     * the menu item is enabled or disabled */
5930    group {
5931       name: "e/widgets/menu/default/check";
5932       images {
5933          image: "check_base.png" COMP;
5934          image: "check_on.png" COMP;
5935          image: "check_sel.png" COMP;
5936       }
5937       parts {
5938          part {
5939             name: "base";
5940             mouse_events: 0;
5941             scale: 1;
5942             description {
5943                state: "default" 0.0;
5944                min: 16 16;
5945                max: 16 16;
5946                image.normal: "check_base.png";
5947             }
5948          }
5949          part {
5950             name: "mark";
5951             mouse_events: 0;
5952             clip_to: "mark_hold";
5953             description {
5954                state: "default" 0.0;
5955                rel1.to: "mark_hold";
5956                rel2.to: "mark_hold";
5957                image.normal: "check_on.png";
5958             }
5959             description {
5960                state: "selected" 0.0;
5961                inherit: "default" 0.0;
5962                image.normal: "check_sel.png";
5963             }
5964          }
5965          part {
5966             name: "mark_hold";
5967             type: RECT;
5968             mouse_events: 0;
5969             description {
5970                state: "default" 0.0;
5971                visible: 0;
5972                color: 255 255 255 0;
5973                rel1 {
5974                   to: "base";
5975                   offset: -5 -5;
5976                }
5977                rel2 {
5978                   to: "base";
5979                   offset: 4 4;
5980                }
5981             }
5982             description {
5983                state: "on" 0.0;
5984                inherit: "default" 0.0;
5985                visible: 1;
5986                color: 255 255 255 255;
5987                rel1.offset: 0 0;
5988                rel2.offset: -1 -1;
5989             }
5990          }
5991       }
5992       programs {
5993          program {
5994             name: "sel";
5995             /* on selection of the menu item */
5996             signal: "e,state,selected";
5997             source: "e";
5998             action: STATE_SET "selected" 0.0;
5999             target: "mark";
6000          }
6001          program {
6002             name: "unsel";
6003             /* de-select */
6004             signal: "e,state,unselected";
6005             source: "e";
6006             action: STATE_SET "default" 0.0;
6007             target: "mark";
6008          }
6009          program {
6010             name: "on";
6011             /* if the checkmark is to be displayed */
6012             signal: "e,state,on";
6013             source: "e";
6014             action: STATE_SET "on" 0.0;
6015             transition: LINEAR 0.15;
6016             target: "mark_hold";
6017          }
6018          program {
6019             name: "off";
6020             /* check mark is not to be displayed */
6021             signal: "e,state,off";
6022             source: "e";
6023             action: STATE_SET "default" 0.0;
6024             transition: LINEAR 0.2;
6025             target: "mark_hold";
6026          }
6027       }
6028    }
6029    /* for a radio menu item - same as check, but only one of a group of radio
6030     * menu item can be selected at any one time */
6031    group {
6032       name: "e/widgets/menu/default/radio";
6033       images {
6034          image: "radio_base.png" COMP;
6035          image: "radio_on.png" COMP;
6036          image: "radio_sel.png" COMP;
6037       }
6038       parts {
6039          part {
6040             name: "base";
6041             mouse_events: 0;
6042             scale: 1;
6043             description {
6044                state: "default" 0.0;
6045                min: 16 16;
6046                max: 16 16;
6047                image.normal: "radio_base.png";
6048             }
6049             description {
6050                state: "selected" 0.0;
6051                inherit: "default" 0.0;
6052                image.normal: "menu_arrow_sel.png";
6053             }
6054          }
6055          part {
6056             name: "mark";
6057             mouse_events: 0;
6058             clip_to: "mark_hold";
6059             description {
6060                state: "default" 0.0;
6061                rel1.to: "mark_hold";
6062                rel2.to: "mark_hold";
6063                image.normal: "radio_on.png";
6064             }
6065             description {
6066                state: "selected" 0.0;
6067                inherit: "default" 0.0;
6068                image.normal: "radio_sel.png";
6069             }
6070          }
6071          part {
6072             name: "mark_hold";
6073             type: RECT;
6074             mouse_events: 0;
6075             description {
6076                state: "default" 0.0;
6077                visible: 0;
6078                color: 255 255 255 0;
6079                rel1 {
6080                   to: "base";
6081                   offset: -5 -5;
6082                }
6083                rel2 {
6084                   to: "base";
6085                   offset: 4 4;
6086                }
6087             }
6088             description {
6089                state: "on" 0.0;
6090                inherit: "default" 0.0;
6091                visible: 1;
6092                color: 255 255 255 255;
6093                rel1.offset: 0 0;
6094                rel2.offset: -1 -1;
6095             }
6096          }
6097       }
6098       programs {
6099          program {
6100             name: "sel";
6101             signal: "e,state,selected";
6102             source: "e";
6103             action: STATE_SET "selected" 0.0;
6104             target: "mark";
6105          }
6106          program {
6107             name: "unsel";
6108             signal: "e,state,unselected";
6109             source: "e";
6110             action: STATE_SET "default" 0.0;
6111             target: "mark";
6112          }
6113          program {
6114             name: "on";
6115             signal: "e,state,on";
6116             source: "e";
6117             action: STATE_SET "on" 0.0;
6118             transition: LINEAR 0.15;
6119             target: "mark_hold";
6120          }
6121          program {
6122             name: "off";
6123             signal: "e,state,off";
6124             source: "e";
6125             action: STATE_SET "default" 0.0;
6126             transition: LINEAR 0.2;
6127             target: "mark_hold";
6128          }
6129       }
6130    }
6131
6132
6133 /////////////////////////////////////////////////////////////////////////////
6134 /*** SHELF ***/
6135
6136    /* Shelves are "panels" that  are placed around the edges of the screen
6137     * to hold useful gadgets to control things - like switch desktops
6138     * (the pager module and its gadget), launch programs, and anything else
6139     * someone wants to put in there. The way to add gadgets to a shelf is to
6140     * write a module that places a gadget there. This means that it might end
6141     * up containing all sorts of things and the artist needs to be aware of
6142     * that and make sure the shelf border and background etc. won't interfere
6143     * with all manner of things that may get placed there */
6144
6145    group {
6146       name: "e/shelf/default/base";
6147       data {
6148          /* this tells e the shelf is shaped, not rectangular */
6149          //    item: "shaped" "1";
6150          /* this tells e the number of pixels of the shelf to leave "exposed"
6151           * when auto-hiding the shelf */
6152          item: "hidden_state_size" "1";
6153          /* This makes the border hide instantly after the given amount of
6154           * seconds - in this case 3 seconds. This means there will be no
6155           * visible part of the shelf after this time at all as it will be
6156           * totally hidden */
6157          //    item: "instant_delay" "3.0";
6158       }
6159       images {
6160          image: "base_bg.png" COMP;
6161       }
6162       parts {
6163          part {
6164             name: "base";
6165             mouse_events: 0;
6166             description {
6167                state: "default" 0.0;
6168                color_class: "shelf_base";
6169                image.normal: "base_bg.png";
6170                image.border: 2 2 2 2;
6171                fill.smooth: 0;
6172             }
6173          }
6174          part {
6175             name: "e.swallow.content";
6176             type: SWALLOW;
6177             description {
6178                state: "default" 0.0;
6179                rel1 {
6180                   relative: 0.0 0.0;
6181                   offset: 3 3;
6182                }
6183                rel2 {
6184                   relative: 1.0 1.0;
6185                   offset: -4 -4;
6186                }
6187             }
6188          }
6189       }
6190       programs {
6191          // tell us what oriantation we are in. not used here
6192          //      program { name: "xx";
6193          //    signal: "e,state,orientation,top";
6194          //    source: "e";
6195          //      }
6196          // tell us what oriantation we are in. not used here
6197          //      program { name: "xx";
6198          //    signal: "e,state,orientation,top_left";
6199          //    source: "e";
6200          //      }
6201          // tell us what oriantation we are in. not used here
6202          //      program { name: "xx";
6203          //    signal: "e,state,orientation,top_right";
6204          //    source: "e";
6205          //      }
6206          // tell us what oriantation we are in. not used here
6207          //      program { name: "xx";
6208          //    signal: "e,state,orientation,bottom";
6209          //    source: "e";
6210          //      }
6211          // tell us what oriantation we are in. not used here
6212          //      program { name: "xx";
6213          //    signal: "e,state,orientation,bottom_left";
6214          //    source: "e";
6215          //      }
6216          // tell us what oriantation we are in. not used here
6217          //      program { name: "xx";
6218          //    signal: "e,state,orientation,bottom_right";
6219          //    source: "e";
6220          //      }
6221          // tell us what oriantation we are in. not used here
6222          //      program { name: "xx";
6223          //    signal: "e,state,orientation,left";
6224          //    source: "e";
6225          //      }
6226          // tell us what oriantation we are in. not used here
6227          //      program { name: "xx";
6228          //    signal: "e,state,orientation,left_top";
6229          //    source: "e";
6230          //      }
6231          // tell us what oriantation we are in. not used here
6232          //      program { name: "xx";
6233          //    signal: "e,state,orientation,left_bottom";
6234          //    source: "e";
6235          //      }
6236          // tell us what oriantation we are in. not used here
6237          //      program { name: "xx";
6238          //    signal: "e,state,orientation,right";
6239          //    source: "e";
6240          //      }
6241          // tell us what oriantation we are in. not used here
6242          //      program { name: "xx";
6243          //    signal: "e,state,orientation,right_top";
6244          //    source: "e";
6245          //      }
6246          // tell us what oriantation we are in. not used here
6247          //      program { name: "xx";
6248          //    signal: "e,state,orientation,right_bottom";
6249          //    source: "e";
6250          //      }
6251          // tell us we became a visible shelf. not used here
6252          //      program { name: "xx";
6253          //    signal: "e,state,visible";
6254          //    source: "e";
6255          //      }
6256          // tell us we became a hidden shelf. not used here
6257          //      program { name: "xx";
6258          //    signal: "e,state,hidden";
6259          //    source: "e";
6260          //      }
6261       }
6262    }
6263    /* This is put around gadgets in the shelf if they ask for an "inset" style
6264     * framing. This puts some sort of bordering around them to make them look
6265     * "inset" into the shelf or screen. this is meant to go with the default
6266     * shelf style as implied in the group name */
6267    group {
6268       name: "e/shelf/default/inset";
6269       images {
6270          image: "inset_sunk.png" COMP;
6271       }
6272       parts {
6273          part {
6274             name: "base";
6275             type: RECT;
6276             description {
6277                state: "default" 0.0;
6278                rel1 {
6279                   to: "inset";
6280                   offset: 1 1;
6281                }
6282                rel2 {
6283                   to: "inset";
6284                   offset: -2 -2;
6285                }
6286                color: 255 255 255 255;
6287             }
6288          }
6289          part {
6290             name: "clip";
6291             type: RECT;
6292             description {
6293                state: "default" 0.0;
6294                rel1.to: "base";
6295                rel2.to: "base";
6296                color: 255 255 255 255;
6297             }
6298          }
6299          part {
6300             name: "e.swallow.content";
6301             type: SWALLOW;
6302             clip_to: "clip";
6303             description {
6304                state: "default" 0.0;
6305                rel1 {
6306                   to: "base";
6307                   offset: 1 1;
6308                }
6309                rel2 {
6310                   to: "base";
6311                   offset: -2 -2;
6312                }
6313             }
6314          }
6315          part {
6316             name: "inset";
6317             mouse_events: 0;
6318             description {
6319                state: "default" 0.0;
6320                rel1.offset: 1 1;
6321                rel2.offset: -2 -2;
6322                image.normal: "inset_sunk.png";
6323                image.middle: 0;
6324                /* here we say the "middle" part of the image
6325                 * between the borders is not filled - it's
6326                 * empty, so don't draw it - ignore it */
6327                image.border: 7 7 7 7;
6328                fill.smooth: 0;
6329             }
6330          }
6331       }
6332       programs {
6333          // tell us what oriantation we are in. not used here
6334          //      program { name: "xx";
6335          //    signal: "e,state,orientation,top";
6336          //    source: "e";
6337          //      }
6338          // tell us what oriantation we are in. not used here
6339          //      program { name: "xx";
6340          //    signal: "e,state,orientation,top_left";
6341          //    source: "e";
6342          //      }
6343          // tell us what oriantation we are in. not used here
6344          //      program { name: "xx";
6345          //    signal: "e,state,orientation,top_right";
6346          //    source: "e";
6347          //      }
6348          // tell us what oriantation we are in. not used here
6349          //      program { name: "xx";
6350          //    signal: "e,state,orientation,bottom";
6351          //    source: "e";
6352          //      }
6353          // tell us what oriantation we are in. not used here
6354          //      program { name: "xx";
6355          //    signal: "e,state,orientation,bottom_left";
6356          //    source: "e";
6357          //      }
6358          // tell us what oriantation we are in. not used here
6359          //      program { name: "xx";
6360          //    signal: "e,state,orientation,bottom_right";
6361          //    source: "e";
6362          //      }
6363          // tell us what oriantation we are in. not used here
6364          //      program { name: "xx";
6365          //    signal: "e,state,orientation,left";
6366          //    source: "e";
6367          //      }
6368          // tell us what oriantation we are in. not used here
6369          //      program { name: "xx";
6370          //    signal: "e,state,orientation,left_top";
6371          //    source: "e";
6372          //      }
6373          // tell us what oriantation we are in. not used here
6374          //      program { name: "xx";
6375          //    signal: "e,state,orientation,left_bottom";
6376          //    source: "e";
6377          //      }
6378          // tell us what oriantation we are in. not used here
6379          //      program { name: "xx";
6380          //    signal: "e,state,orientation,right";
6381          //    source: "e";
6382          //      }
6383          // tell us what oriantation we are in. not used here
6384          //      program { name: "xx";
6385          //    signal: "e,state,orientation,right_top";
6386          //    source: "e";
6387          //      }
6388          // tell us what oriantation we are in. not used here
6389          //      program { name: "xx";
6390          //    signal: "e,state,orientation,right_bottom";
6391          //    source: "e";
6392          //      }
6393       }
6394    }
6395    /* Same as inset, but meant to be with no decorations that are visible. here
6396     * we simply make the content swallow inset a bit from the edges to align
6397     * with any plain style inset boxes */
6398    group {
6399       name: "e/shelf/default/plain";
6400       parts {
6401          part {
6402             name: "clip";
6403             type: RECT;
6404             description {
6405                state: "default" 0.0;
6406                color: 255 255 255 255;
6407             }
6408          }
6409          part {
6410             name: "e.swallow.content";
6411             type: SWALLOW;
6412             clip_to: "clip";
6413             description {
6414                state: "default" 0.0;
6415                rel1.offset: 1 1;
6416                rel2.offset: -2 -2;
6417             }
6418          }
6419       }
6420    }
6421    /* This is the "invisible" shelf. Yes. Even it has visual config in edje.
6422     * The idea is that it will remain invisible, BUT will allow the designer
6423     * to do some layout and padding. This gets the same signals as the
6424     * default shelf and can provide the same data items */
6425    group {
6426       name: "e/shelf/invisible/base";
6427       data.item: "shaped" "1";
6428       parts {
6429          part {
6430             name: "e.swallow.content";
6431             type: SWALLOW;
6432             description {
6433                state: "default" 0.0;
6434                rel1 {
6435                   relative: 0.0 0.0;
6436                   offset: 0 0;
6437                }
6438                rel2 {
6439                   relative: 1.0 1.0;
6440                   offset: -1 -1;
6441                }
6442             }
6443          }
6444       }
6445    }
6446    group {
6447       name: "e/shelf/invisible/inset";
6448       images {
6449          image: "inset_sunk_dark.png" COMP;
6450       }
6451       parts {
6452          part {
6453             name: "base";
6454             type: RECT;
6455             description {
6456                state: "default" 0.0;
6457                rel1 {
6458                   to: "inset";
6459                   offset: 1 1;
6460                }
6461                rel2 {
6462                   to: "inset";
6463                   offset: -2 -2;
6464                }
6465                color: 0 0 0 32;
6466             }
6467          }
6468          part {
6469             name: "clip";
6470             type: RECT;
6471             description {
6472                state: "default" 0.0;
6473                rel1.to: "base";
6474                rel2.to: "base";
6475                color: 255 255 255 255;
6476             }
6477          }
6478          part {
6479             name: "e.swallow.content";
6480             type: SWALLOW;
6481             clip_to: "clip";
6482             description {
6483                state: "default" 0.0;
6484                rel1 {
6485                   to: "base";
6486                   offset: 1 1;
6487                }
6488                rel2 {
6489                   to: "base";
6490                   offset: -2 -2;
6491                }
6492             }
6493          }
6494          part {
6495             name: "inset";
6496             mouse_events: 0;
6497             description {
6498                state: "default" 0.0;
6499                rel1.offset: 1 1;
6500                rel2.offset: -2 -2;
6501                image.normal: "inset_sunk_dark.png";
6502                image.middle: 0;
6503                image.border: 7 7 7 7;
6504                fill.smooth: 0;
6505             }
6506          }
6507       }
6508    }
6509    group {
6510       name: "e/shelf/invisible/plain";
6511       parts {
6512          part {
6513             name: "clip";
6514             type: RECT;
6515             description {
6516                state: "default" 0.0;
6517                color: 255 255 255 255;
6518             }
6519          }
6520          part {
6521             name: "e.swallow.content";
6522             type: SWALLOW;
6523             clip_to: "clip";
6524             description {
6525                state: "default" 0.0;
6526                rel1.offset: 1 1;
6527                rel2.offset: -2 -2;
6528             }
6529          }
6530       }
6531    }
6532    /* This is the alternate shelf. It provides a stylistic alternative to
6533     * make the shelf more dynamic to your tastes and wallpaper. It is
6534     * selected in the Shelf Configuration. More alternative shelfs can
6535     * be provided by using more group names. eg, "e/shelf/black/base" */
6536    group {
6537       name: "e/shelf/alternate/base";
6538       images {
6539          image: "shelf_alt_bg.png" COMP;
6540          //     image: "shelf_alt_bg_left.png" COMP;
6541          //     image: "shelf_alt_bg_right.png" COMP;
6542          image: "shelf_alt_over.png" COMP;
6543          //     image: "shelf_alt_over_left.png" COMP;
6544          //     image: "shelf_alt_over_right.png" COMP;
6545          image: "shelf_alt_shine.png" COMP;
6546       }
6547       parts {
6548          part {
6549             name: "base";
6550             mouse_events: 0;
6551             description {
6552                state: "default" 0.0;
6553                color_class: "shelf_base";
6554                image.normal: "shelf_alt_bg.png";
6555                fill.smooth: 0;
6556             }
6557             //        description { state: "left" 0.0;
6558             //           image.normal: "shelf_alt_bg_left.png";
6559             //           fill.smooth: 0;
6560             //        }
6561             //        description { state: "right" 0.0;
6562             //           image.normal: "shelf_alt_bg_right.png";
6563             //           fill.smooth: 0;
6564             //        }
6565          }
6566          part {
6567             name: "e.swallow.content";
6568             type: SWALLOW;
6569             description {
6570                state: "default" 0.0;
6571                rel1 {
6572                   relative: 0.0 0.0;
6573                   offset: 3 3;
6574                }
6575                rel2 {
6576                   relative: 1.0 1.0;
6577                   offset: -4 -4;
6578                }
6579             }
6580          }
6581          part {
6582             name: "shine";
6583             mouse_events: 0;
6584             description {
6585                state: "default" 0.0;
6586                image.normal: "shelf_alt_shine.png";
6587                rel2.relative: 1.0 0.5;
6588                fill.smooth: 0;
6589             }
6590             //        description { state: "left" 0.0;
6591             //           inherit: "default" 0.0;
6592             //           color: 255 255 255 0;
6593             //        }
6594             //        description { state: "right" 0.0;
6595             //           inherit: "default" 0.0;
6596             //           color: 255 255 255 0;
6597             //        }
6598          }
6599          part {
6600             name: "over";
6601             mouse_events: 0;
6602             description {
6603                state: "default" 0.0;
6604                image.normal: "shelf_alt_over.png";
6605                image.border: 5 5 5 5;
6606                image.middle: 0;
6607                fill.smooth: 0;
6608             }
6609             //        description { state: "left" 0.0;
6610             //           image.normal: "shelf_alt_over_left.png";
6611             //           image.border: 5 5 5 5;
6612             //           image.middle: 0;
6613             //           fill.smooth: 0;
6614             //        }
6615             //        description { state: "right" 0.0;
6616             //           image.normal: "shelf_alt_over_right.png";
6617             //           image.border: 5 5 5 5;
6618             //           image.middle: 0;
6619             //           fill.smooth: 0;
6620             //        }
6621          }
6622       }
6623       /* Because programs can not respond to 2 different types of signals,
6624        * the programs are split into individual programs that point towards
6625        * the base program for its orientation. */
6626       programs {
6627          /* Left orientation */
6628          //     program { name: "left";
6629          //        signal: "e,state,orientation,left";
6630          //        source: "e";
6631          //        action: STATE_SET "left" 0.0;
6632          //        target: "base";
6633          //        target: "over";
6634          //        target: "shine";
6635          //     }
6636          //     program { name: "left_top";
6637          //        signal: "e,state,orientation,left_top";
6638          //        source: "e";
6639          //        after: "left";
6640          //     }
6641          //     program { name: "left_bottom";
6642          //        signal: "e,state,orientation,left_bottom";
6643          //        source: "e";
6644          //        after: "left";
6645          //     }
6646          //     /* Right orientation */
6647          //     program { name: "right";
6648          //        signal: "e,state,orientation,right";
6649          //        source: "e";
6650          //        action: STATE_SET "right" 0.0;
6651          //        target: "base";
6652          //        target: "over";
6653          //        target: "shine";
6654          //     }
6655          //     program { name: "right_top";
6656          //        signal: "e,state,orientation,right_top";
6657          //        source: "e";
6658          //        after: "right";
6659          //     }
6660          //     program { name: "right_bottom";
6661          //        signal: "e,state,orientation,right_bottom";
6662          //        source: "e";
6663          //        after: "right";
6664          //     }
6665       }
6666    }
6667    /* This is the alternate shelf. It provides a stylistic alternative to
6668     * make the shelf more dynamic to your tastes and wallpaper. It is
6669     * selected in the Shelf Configuration. More alternative shelfs can
6670     * be provided by using more group names. eg, "e/shelf/black/base" */
6671    group { name: "e/shelf/alternate_vertical/base";
6672       images {
6673          image: "shelf_alt_vert_bg.png" COMP;
6674 //       image: "shelf_alt_bg_left.png" COMP;
6675 //       image: "shelf_alt_bg_right.png" COMP;
6676          image: "shelf_alt_over.png" COMP;
6677 //       image: "shelf_alt_over_left.png" COMP;
6678 //       image: "shelf_alt_over_right.png" COMP;
6679       }
6680       parts {
6681          part { name: "base";
6682             mouse_events: 0;
6683             description { state: "default" 0.0;
6684                color_class: "shelf_base";
6685                image.normal: "shelf_alt_vert_bg.png";
6686                fill.smooth: 0;
6687             }
6688 //          description { state: "left" 0.0;
6689 //             image.normal: "shelf_alt_bg_left.png";
6690 //             fill.smooth: 0;
6691 //          }
6692 //          description { state: "right" 0.0;
6693 //             image.normal: "shelf_alt_bg_right.png";
6694 //             fill.smooth: 0;
6695 //          }
6696          }
6697          part { name: "e.swallow.content";
6698             type: SWALLOW;
6699             description { state: "default" 0.0;
6700                rel1 {
6701                   relative: 0.0 0.0;
6702                   offset: 3 3;
6703                }
6704                rel2 {
6705                   relative: 1.0 1.0;
6706                   offset: -4 -4;
6707                }
6708             }
6709          }
6710          part { name: "over";
6711             mouse_events: 0;
6712             description { state: "default" 0.0;
6713                image.normal: "shelf_alt_over.png";
6714                image.border: 5 5 5 5;
6715                image.middle: 0;
6716                fill.smooth: 0;
6717             }
6718 //          description { state: "left" 0.0;
6719 //             image.normal: "shelf_alt_over_left.png";
6720 //             image.border: 5 5 5 5;
6721 //             image.middle: 0;
6722 //             fill.smooth: 0;
6723 //          }
6724 //          description { state: "right" 0.0;
6725 //             image.normal: "shelf_alt_over_right.png";
6726 //             image.border: 5 5 5 5;
6727 //             image.middle: 0;
6728 //             fill.smooth: 0;
6729 //          }
6730          }
6731       }
6732       /* Because programs can not respond to 2 different types of signals,
6733        * the programs are split into individual programs that point towards
6734        * the base program for its orientation. */
6735       programs {
6736          /* Left orientation */
6737 //       program { name: "left";
6738 //          signal: "e,state,orientation,left";
6739 //          source: "e";
6740 //          action: STATE_SET "left" 0.0;
6741 //          target: "base";
6742 //          target: "over";
6743 //          target: "shine";
6744 //       }
6745 //       program { name: "left_top";
6746 //          signal: "e,state,orientation,left_top";
6747 //          source: "e";
6748 //          after: "left";
6749 //       }
6750 //       program { name: "left_bottom";
6751 //          signal: "e,state,orientation,left_bottom";
6752 //          source: "e";
6753 //          after: "left";
6754 //       }
6755 //       /* Right orientation */
6756 //       program { name: "right";
6757 //          signal: "e,state,orientation,right";
6758 //          source: "e";
6759 //          action: STATE_SET "right" 0.0;
6760 //          target: "base";
6761 //          target: "over";
6762 //          target: "shine";
6763 //       }
6764 //       program { name: "right_top";
6765 //          signal: "e,state,orientation,right_top";
6766 //          source: "e";
6767 //          after: "right";
6768 //       }
6769 //       program { name: "right_bottom";
6770 //          signal: "e,state,orientation,right_bottom";
6771 //          source: "e";
6772 //          after: "right";
6773 //       }
6774       }
6775    }
6776    group {
6777       name: "e/shelf/alternate/inset";
6778       images {
6779          image: "inset_raised.png" COMP;
6780       }
6781       parts {
6782          part {
6783             name: "base";
6784             type: RECT;
6785             description {
6786                state: "default" 0.0;
6787                rel1 {
6788                   to: "inset";
6789                   offset: 4 4;
6790                }
6791                rel2 {
6792                   to: "inset";
6793                   offset: -5 -5;
6794                }
6795                color: 0 0 0 0;
6796             }
6797          }
6798          part {
6799             name: "clip";
6800             type: RECT;
6801             description {
6802                state: "default" 0.0;
6803                rel1.to: "base";
6804                rel2.to: "base";
6805                color: 255 255 255 255;
6806             }
6807          }
6808          part {
6809             name: "e.swallow.content";
6810             type: SWALLOW;
6811             clip_to: "clip";
6812             description {
6813                state: "default" 0.0;
6814                rel1 {
6815                   to: "base";
6816                   offset: 0 0;
6817                }
6818                rel2 {
6819                   to: "base";
6820                   offset: -1 -1;
6821                }
6822             }
6823          }
6824          part {
6825             name: "inset";
6826             mouse_events: 0;
6827             description {
6828                state: "default" 0.0;
6829                rel1.offset: -1 -1;
6830                rel2.offset: 0 0;
6831                image.normal: "inset_raised.png";
6832                image.middle: 0;
6833                image.border: 7 7 7 7;
6834                fill.smooth: 0;
6835             }
6836          }
6837       }
6838    }
6839    group {
6840       name: "e/shelf/alternate/plain";
6841       parts {
6842          part {
6843             name: "clip";
6844             type: RECT;
6845             description {
6846                state: "default" 0.0;
6847                color: 255 255 255 255;
6848             }
6849          }
6850          part {
6851             name: "e.swallow.content";
6852             type: SWALLOW;
6853             clip_to: "clip";
6854             description {
6855                state: "default" 0.0;
6856                rel1.offset: 1 1;
6857                rel2.offset: -2 -2;
6858             }
6859          }
6860       }
6861    }
6862
6863 /////////////////////////////////////////////////////////////////////////////
6864 /*** MOD: CLOCK ***/
6865
6866 images {
6867    image: "clock/DM_Clock_time.png" COMP;
6868    image: "clock/DM_Clock_time_0.png" COMP;
6869    image: "clock/DM_Clock_time_1.png" COMP;
6870    image: "clock/DM_Clock_time_2.png" COMP;
6871    image: "clock/DM_Clock_time_3.png" COMP;
6872    image: "clock/DM_Clock_time_4.png" COMP;
6873    image: "clock/DM_Clock_time_5.png" COMP;
6874    image: "clock/DM_Clock_time_6.png" COMP;
6875    image: "clock/DM_Clock_time_7.png" COMP;
6876    image: "clock/DM_Clock_time_8.png" COMP;
6877    image: "clock/DM_Clock_time_9.png" COMP;
6878    image: "clock/DM_Clock_time_AM.png" COMP;
6879    image: "clock/DM_Clock_time_PM.png" COMP;
6880    image: "clock/DM_Clock_time_center.png" COMP;
6881 }
6882
6883 #define DIGIT_WIDTH  0.25
6884 #define DIGIT_10_WIDTH  0.1
6885 #define DIGIT_Y      0.2
6886 #define DIGIT_HEIGHT 0.8
6887 #define HOUR_10_XOFF 0.0
6888 #define WEEKDAY_XOFF 0.0
6889 #define DAY_XOFF     0.15
6890 #define DAY_HEIGHT   0.2
6891 #define MONTH_XOFF   0.25
6892 #define HOUR_1_XOFF  0.1
6893 #define COLON_XOFF   0.32
6894 #define COLON_WIDTH  0.05
6895 #define MIN_10_XOFF  0.34
6896 #define MIN_1_XOFF   0.54
6897 #define AM_PM_XOFF   0.78
6898 #define AM_PM_WIDTH  0.15
6899
6900 #define BASE_DESCR(XOFF)                 \
6901 description { state: "default" 0.0;             \
6902    image.normal: "clock/DM_Clock_time_0.png";   \
6903    visible: 1;                                  \
6904    rel1 {                                       \
6905       to: "whole";                              \
6906       relative: XOFF DIGIT_Y;                       \
6907       offset: 0 0;                              \
6908    }                                            \
6909    rel2 {                                       \
6910       to: "whole";                              \
6911       relative: (XOFF+DIGIT_WIDTH) (DIGIT_Y+DIGIT_HEIGHT);         \
6912       offset: -1 -1;                            \
6913    }                                            \
6914    color: 255 255 255 0;                        \
6915 }                                               \
6916 description { state: "reset" 0.0;               \
6917    inherit: "default" 0.0;                      \
6918    color: 255 255 255 255;                      \
6919 }
6920
6921 #define DIGIT_DESCR_10HOUR(IDX,NUM, X)          \
6922 description { state: "default" 0.0;             \
6923    image.normal: "clock/DM_Clock_time.png";     \
6924    visible: 0;                                  \
6925    rel1 {                                       \
6926       to: "whole";                              \
6927       relative: HOUR_10_XOFF DIGIT_Y;           \
6928       offset: 0 0;                              \
6929    }                                            \
6930    rel2 {                                       \
6931       to: "whole";                              \
6932       relative: (HOUR_10_XOFF+DIGIT_10_WIDTH) (DIGIT_Y+DIGIT_HEIGHT);         \
6933       offset: -1 -1;                            \
6934    }                                            \
6935    color: 255 255 255 0;                        \
6936 }                                               \
6937 description { state: "digit" 0.0;               \
6938    inherit: "default" 0.0;                      \
6939    visible: 0;                                  \
6940    color: 255 255 255 255;                      \
6941 }                                               \
6942 description { state: "digit" 0.1;               \
6943    inherit: "default" 0.0;                      \
6944    visible: 1;                                  \
6945    color: 255 255 255 255;                      \
6946 }
6947
6948 #define DIGIT_DESCR(IDX,NUM, X)                         \
6949 description { state: "digit" IDX;                       \
6950    inherit: "default" 0.0;                              \
6951    image.normal: "clock/DM_Clock_time_"NUM".png";       \
6952    rel1 {                                               \
6953       relative: X DIGIT_Y;                              \
6954       offset: 0 0;                                      \
6955    }                                                    \
6956    rel2 {                                               \
6957       relative: (X+DIGIT_WIDTH) (DIGIT_Y+DIGIT_HEIGHT); \
6958       offset: 0 0;                                      \
6959    }                                                    \
6960    color: 255 255 255 255;                              \
6961 }
6962 #define BASE_DESCR_AM_PM(XOFF)                  \
6963 description { state: "default" 0.0;             \
6964    image.normal: "clock/DM_Clock_time_0.png";   \
6965    visible: 1;                                  \
6966    rel1 {                                       \
6967       to: "whole";                              \
6968       relative: XOFF 0.0;                       \
6969       offset: 0 0;                              \
6970    }                                            \
6971    rel2 {                                       \
6972       to: "whole";                              \
6973       relative: (XOFF+AM_PM_WIDTH) 1.0;         \
6974       offset: -1 -1;                            \
6975    }                                            \
6976    color: 255 255 255 0;                        \
6977 }                                               \
6978 description { state: "reset" 0.0;               \
6979    inherit: "default" 0.0;                      \
6980    color: 255 255 255 255;                      \
6981 }
6982
6983 #define DIGIT_DESCR_AM_PM(IDX,NUM, X)                   \
6984 description { state: "digit" IDX;                       \
6985    inherit: "default" 0.0;                              \
6986    image.normal: "clock/DM_Clock_time_"NUM".png";       \
6987    rel1 {                                               \
6988       relative: X 0.6;                                  \
6989       offset: 0 0;                                      \
6990    }                                                    \
6991    rel2 {                                               \
6992       relative: (X+AM_PM_WIDTH) 0.9;                    \
6993       offset: 0 0;                                      \
6994    }                                                    \
6995    color: 255 255 255 255;                              \
6996 }
6997
6998 #define BASE_DESCR_WD_MD(XOFF)                  \
6999 description { state: "default" 0.0;             \
7000    visible: 1;                                  \
7001    rel1 {                                       \
7002       to: "whole";                              \
7003       relative: XOFF 0.0;                       \
7004       offset: 0 0;                              \
7005    }                                            \
7006    rel2 {                                       \
7007       to: "whole";                              \
7008       relative: (XOFF+0.5) 0.3;                 \
7009       offset: -1 -1;                            \
7010    }                                            \
7011    color: 255 255 255 255;                      \
7012    text {                                       \
7013                text: "";                        \
7014                font: "Helvetica";               \
7015                size: 16;                        \
7016                min: 1 1;                        \
7017                align: 0.5 0.5;                  \
7018                text_class: "configure";         \
7019             }                                   \
7020 }                                               \
7021 description { state: "reset" 0.0;               \
7022    inherit: "default" 0.0;                      \
7023    color: 255 255 255 255;                      \
7024 }
7025
7026
7027 #define DIGIT_DESCR_WD_MD(IDX,DAY, X)                   \
7028 description { state: "digit" IDX;                       \
7029    inherit: "default" 0.0;                              \
7030    rel1 {                                               \
7031       relative: X 0.0;                                  \
7032       offset: 0 0;                                      \
7033    }                                                    \
7034    rel2 {                                               \
7035       relative: (X+0.5) DAY_HEIGHT;                     \
7036       offset: -1 -1;                                    \
7037    }                                                    \
7038    color: 255 255 255 255;                              \
7039    color2: 110 133 140 192;                                                 \
7040    color3: 0 0 0 192;                                                           \
7041    text {                                               \
7042                text: DAY;                               \
7043                font: "Helvetica";                       \
7044                size: 20;                                \
7045                min: 1 1;                                \
7046                align: 0.0 0.0;                          \
7047                text_class: "configure";                 \
7048             }                                           \
7049 }
7050
7051 #define BASE_DESCR_DAY(XOFF)                    \
7052 description { state: "default" 0.0;             \
7053    visible: 1;                                  \
7054    rel1 {                                       \
7055       to: "whole";                              \
7056       relative: XOFF 0.0;                       \
7057       offset: 0 0;                              \
7058    }                                            \
7059    rel2 {                                       \
7060       to: "whole";                              \
7061       relative: (XOFF+0.5) DAY_HEIGHT;          \
7062       offset: -1 -1;                            \
7063    }                                            \
7064    color: 255 255 255 255;                      \
7065     color2: 110 133 140 192;                                    \
7066     color3: 0 0 0 192;                                                  \
7067    text {                                       \
7068                text: "??";                      \
7069                font: "Helvetica";               \
7070                size: 20;                        \
7071                min: 1 1;                        \
7072                align: 0.0 0.0;                  \
7073                text_class: "configure";         \
7074             }                                   \
7075 }                                               \
7076 description { state: "reset" 0.0;               \
7077    inherit: "default" 0.0;                      \
7078    color: 255 255 255 255;                      \
7079 }
7080
7081 // This sets the digit transition type and length
7082 #define DIGITRANS SINUSOIDAL 0
7083
7084 #define CELL_TRANS(NAME,IDX,TARGET)             \
7085    program { name: NAME;                        \
7086    action: STATE_SET "digit" IDX;               \
7087    transition: DIGITRANS;                       \
7088    target: TARGET;                              \
7089 }
7090 #define HOUR_10_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"hour_10")
7091 #define HOUR_1_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"hour_1")
7092 #define MINUTE_10_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"min_10")
7093 #define MINUTE_1_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"min_1")
7094 #define WEEKDAY_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"weekday")
7095 #define MONTH_TRANS(NAME,IDX) CELL_TRANS(NAME,IDX,"month")
7096
7097 styles
7098 {
7099    style {
7100       name: "text_style";
7101       base: "font=Helvetica font_size=50 align=left color=#000 style=shadow shadow_color=#ffffff80 wrap=word";
7102
7103       tag: "br" "\n";
7104       tag: "hilight" "+ font=Sans:style=Bold style=glow color=#fff glow2_color=#fe87 glow_color=#fa14";
7105       tag: "title" "+ font_size=12 font=Sans:style=Bold style=soft_shadow color=#fff shadow_color=#00000020";
7106       tag: "/title" "- \n \n";
7107    }
7108 }
7109
7110 group { name: "e/modules/clock/main";
7111
7112    script {
7113       public cur_hour_;
7114       public m_10_;
7115       public clock_cb(unused) {
7116          new year, month, day, yearday, weekday, hour, minute;
7117          new Float:second;
7118          new h;
7119          new m_mod, m_tmp;
7120          new pm;
7121          new text[5];
7122
7123          date(year, month, day, yearday, weekday, hour, minute, second);
7124
7125          // It is my preference not to have a second hand so the
7126          // the timer is set to go off at the top of the minute.
7127          timer(61.0 - second, "clock_cb", 1);
7128          snprintf(text, 5, "%d%d", day/10,day%10);
7129
7130          set_text(PART:"day", text);
7131          h = get_int(cur_hour_)
7132          if (hour != h) {
7133             set_int(cur_hour_, hour);
7134
7135             if (hour > 12) pm = 1;
7136             else if (hour == 12) pm = 0;
7137
7138              if(pm == 1)        run_program(PROGRAM:"pm");
7139              else if(pm == 0)   run_program(PROGRAM:"am");
7140
7141 #ifndef HOURS24
7142             if (hour > 12) hour = hour - 12;
7143             if (hour == 0) hour = 12;
7144 #endif
7145             new htmp = hour / 10;
7146             if (htmp == 0)      run_program(PROGRAM:"hour_10_0");
7147             else if (htmp == 1) run_program(PROGRAM:"hour_10_1");
7148             else if (htmp == 2) run_program(PROGRAM:"hour_10_2");
7149
7150             //
7151             htmp = hour % 10;
7152             if (htmp == 0)      run_program(PROGRAM:"hour_1_0");
7153             else if (htmp == 1) run_program(PROGRAM:"hour_1_1");
7154             else if (htmp == 2) run_program(PROGRAM:"hour_1_2");
7155             else if (htmp == 3) run_program(PROGRAM:"hour_1_3");
7156             else if (htmp == 4) run_program(PROGRAM:"hour_1_4");
7157             else if (htmp == 5) run_program(PROGRAM:"hour_1_5");
7158             else if (htmp == 6) run_program(PROGRAM:"hour_1_6");
7159             else if (htmp == 7) run_program(PROGRAM:"hour_1_7");
7160             else if (htmp == 8) run_program(PROGRAM:"hour_1_8");
7161             else if (htmp == 9) run_program(PROGRAM:"hour_1_9");
7162          }
7163
7164          m_mod = minute % 10;
7165          m_tmp = (minute - m_mod) / 10;
7166          if (m_10_ != m_tmp) {
7167             m_10_ = m_tmp;
7168             // value from 0-5
7169             if (m_10_ == 0)      run_program(PROGRAM:"min_10_0");
7170             else if (m_10_ == 1) run_program(PROGRAM:"min_10_1");
7171             else if (m_10_ == 2) run_program(PROGRAM:"min_10_2");
7172             else if (m_10_ == 3) run_program(PROGRAM:"min_10_3");
7173             else if (m_10_ == 4) run_program(PROGRAM:"min_10_4");
7174             else if (m_10_ == 5) run_program(PROGRAM:"min_10_5");
7175          }
7176          // minutes digit is 0 .. 9
7177          if (m_mod == 0)      run_program(PROGRAM:"min_1_0");
7178          else if (m_mod == 1) run_program(PROGRAM:"min_1_1");
7179          else if (m_mod == 2) run_program(PROGRAM:"min_1_2");
7180          else if (m_mod == 3) run_program(PROGRAM:"min_1_3");
7181          else if (m_mod == 4) run_program(PROGRAM:"min_1_4");
7182          else if (m_mod == 5) run_program(PROGRAM:"min_1_5");
7183          else if (m_mod == 6) run_program(PROGRAM:"min_1_6");
7184          else if (m_mod == 7) run_program(PROGRAM:"min_1_7");
7185          else if (m_mod == 8) run_program(PROGRAM:"min_1_8");
7186          else if (m_mod == 9) run_program(PROGRAM:"min_1_9");
7187
7188          if(weekday == 0)           run_program(PROGRAM:"weekday_0");
7189          else if(weekday == 1)      run_program(PROGRAM:"weekday_1");
7190          else if(weekday == 2)      run_program(PROGRAM:"weekday_2");
7191          else if(weekday == 3)      run_program(PROGRAM:"weekday_3");
7192          else if(weekday == 4)      run_program(PROGRAM:"weekday_4");
7193          else if(weekday == 5)      run_program(PROGRAM:"weekday_5");
7194          else if(weekday == 6)      run_program(PROGRAM:"weekday_6");
7195
7196          if(month == 1)           run_program(PROGRAM:"month_1");
7197          else if(month == 2)      run_program(PROGRAM:"month_2");
7198          else if(month == 3)      run_program(PROGRAM:"month_3");
7199          else if(month == 4)      run_program(PROGRAM:"month_4");
7200          else if(month == 5)      run_program(PROGRAM:"month_5");
7201          else if(month == 6)      run_program(PROGRAM:"month_6");
7202          else if(month == 7)      run_program(PROGRAM:"month_7");
7203          else if(month == 8)      run_program(PROGRAM:"month_8");
7204          else if(month == 9)      run_program(PROGRAM:"month_9");
7205          else if(month == 10)      run_program(PROGRAM:"month_10");
7206          else if(month == 11)      run_program(PROGRAM:"month_11");
7207          else if(month == 12)      run_program(PROGRAM:"month_12");
7208       }
7209    }
7210    parts {
7211       part { name: "whole";
7212          type: RECT;
7213          mouse_events: 1;
7214          description {
7215             state: "default" 0.0;
7216             color: 255 255 255 0;
7217             rel1 {
7218                relative: 0.0 0.1;
7219                offset: 0 0;
7220             }
7221             rel2 {
7222                relative: 1.0 0.9;
7223                offset: -1 -1;
7224             }
7225          }
7226       }
7227       part { name: "clipper";
7228          type: RECT;
7229          mouse_events: 0;
7230          description {
7231             rel1 {
7232                to: "whole";
7233                relative: 0.0 0.0;
7234                offset: 0 0;
7235             }
7236             rel2 {
7237                to: "whole";
7238                relative: 1.0 1.0;
7239                offset: -1 -1;
7240             }
7241          }
7242       }
7243       part { name: "hour_10";
7244          type: IMAGE;
7245          clip_to: "clipper";
7246          DIGIT_DESCR_10HOUR(0.0,0, HOUR_10_XOFF);
7247          DIGIT_DESCR_10HOUR(0.1,1, HOUR_10_XOFF);
7248          DIGIT_DESCR_10HOUR(0.2,2, HOUR_10_XOFF); /* only used in 24-hour clock */
7249       }
7250       part { name: "hour_1";
7251          type: IMAGE;
7252          clip_to: "clipper";
7253          BASE_DESCR(HOUR_1_XOFF);
7254          DIGIT_DESCR(0.0,0, HOUR_1_XOFF);
7255          DIGIT_DESCR(0.1,1, HOUR_1_XOFF);
7256          DIGIT_DESCR(0.2,2, HOUR_1_XOFF);
7257          DIGIT_DESCR(0.3,3, HOUR_1_XOFF);
7258          DIGIT_DESCR(0.4,4, HOUR_1_XOFF);
7259          DIGIT_DESCR(0.5,5, HOUR_1_XOFF);
7260          DIGIT_DESCR(0.6,6, HOUR_1_XOFF);
7261          DIGIT_DESCR(0.7,7, HOUR_1_XOFF);
7262          DIGIT_DESCR(0.8,8, HOUR_1_XOFF);
7263          DIGIT_DESCR(0.9,9, HOUR_1_XOFF);
7264       }
7265       part { name: "colon";
7266          type: IMAGE;
7267          clip_to: "clipper";
7268          description {
7269             state: "default" 0.0;
7270             image.normal: "clock/DM_Clock_time_center.png";
7271             visible: 1;
7272             rel1 {
7273                to: "whole";
7274                relative: COLON_XOFF DIGIT_Y;
7275                offset: 0 0;
7276             }
7277             rel2 {
7278                to: "whole";
7279                relative: (COLON_XOFF+COLON_WIDTH) (DIGIT_Y+DIGIT_HEIGHT);
7280                offset: 0 0;
7281             }
7282             color: 255 255 255 255;
7283          }
7284       }
7285       part { name: "min_10";
7286          type: IMAGE;
7287          clip_to: "clipper";
7288          BASE_DESCR(MIN_10_XOFF);
7289          DIGIT_DESCR(0.0,0, MIN_10_XOFF);
7290          DIGIT_DESCR(0.1,1, MIN_10_XOFF);
7291          DIGIT_DESCR(0.2,2, MIN_10_XOFF);
7292          DIGIT_DESCR(0.3,3, MIN_10_XOFF);
7293          DIGIT_DESCR(0.4,4, MIN_10_XOFF);
7294          DIGIT_DESCR(0.5,5, MIN_10_XOFF);
7295       }
7296
7297       part { name: "min_1";
7298          type: IMAGE;
7299          clip_to: "clipper";
7300          BASE_DESCR(MIN_1_XOFF);
7301          DIGIT_DESCR(0.0,0, MIN_1_XOFF);
7302          DIGIT_DESCR(0.1,1, MIN_1_XOFF);
7303          DIGIT_DESCR(0.2,2, MIN_1_XOFF);
7304          DIGIT_DESCR(0.3,3, MIN_1_XOFF);
7305          DIGIT_DESCR(0.4,4, MIN_1_XOFF);
7306          DIGIT_DESCR(0.5,5, MIN_1_XOFF);
7307          DIGIT_DESCR(0.6,6, MIN_1_XOFF);
7308          DIGIT_DESCR(0.7,7, MIN_1_XOFF);
7309          DIGIT_DESCR(0.8,8, MIN_1_XOFF);
7310          DIGIT_DESCR(0.9,9, MIN_1_XOFF);
7311       }
7312       part { name: "am_pm";
7313          type: IMAGE;
7314          clip_to: "clipper";
7315          BASE_DESCR_AM_PM(AM_PM_XOFF);
7316          DIGIT_DESCR_AM_PM(0.0,AM, AM_PM_XOFF);
7317          DIGIT_DESCR_AM_PM(0.1,PM, AM_PM_XOFF);
7318       }
7319       part { name: "weekday";
7320          type: TEXT;
7321          effect: OUTLINE_SOFT_SHADOW;
7322          BASE_DESCR_WD_MD(WEEKDAY_XOFF);
7323          DIGIT_DESCR_WD_MD(0.0,Mon., WEEKDAY_XOFF);
7324          DIGIT_DESCR_WD_MD(0.1,Tue., WEEKDAY_XOFF);
7325          DIGIT_DESCR_WD_MD(0.2,Wed., WEEKDAY_XOFF);
7326          DIGIT_DESCR_WD_MD(0.3,Tur., WEEKDAY_XOFF);
7327          DIGIT_DESCR_WD_MD(0.4,Fri., WEEKDAY_XOFF);
7328          DIGIT_DESCR_WD_MD(0.5,Sat., WEEKDAY_XOFF);
7329          DIGIT_DESCR_WD_MD(0.6,Sun., WEEKDAY_XOFF);
7330       }
7331       part { name: "day";
7332          type: TEXT;
7333          effect: OUTLINE_SOFT_SHADOW;
7334          BASE_DESCR_DAY(DAY_XOFF);
7335       }
7336
7337       part { name: "month";
7338          type: TEXT;
7339          effect: OUTLINE_SOFT_SHADOW;
7340          BASE_DESCR_WD_MD(MONTH_XOFF);
7341          DIGIT_DESCR_WD_MD(0.01,Jan, MONTH_XOFF);
7342          DIGIT_DESCR_WD_MD(0.02,Feb, MONTH_XOFF);
7343          DIGIT_DESCR_WD_MD(0.03,Mar, MONTH_XOFF);
7344          DIGIT_DESCR_WD_MD(0.04,Apr, MONTH_XOFF);
7345          DIGIT_DESCR_WD_MD(0.05,May, MONTH_XOFF);
7346          DIGIT_DESCR_WD_MD(0.06,Jun, MONTH_XOFF);
7347          DIGIT_DESCR_WD_MD(0.07,Jul, MONTH_XOFF);
7348          DIGIT_DESCR_WD_MD(0.08,Aug, MONTH_XOFF);
7349          DIGIT_DESCR_WD_MD(0.09,Sep, MONTH_XOFF);
7350          DIGIT_DESCR_WD_MD(0.10,Oct, MONTH_XOFF);
7351          DIGIT_DESCR_WD_MD(0.11,Nov, MONTH_XOFF);
7352          DIGIT_DESCR_WD_MD(0.12,Dec, MONTH_XOFF);
7353       }
7354
7355       part { name: "main";
7356          type: RECT;
7357          mouse_events: 1;
7358          description {
7359             state: "default" 0.0;
7360             rel1 {
7361                to: "whole";
7362                relative: 0.0 0.0;
7363                offset: 0 2;
7364             }
7365             rel2 {
7366                to: "whole";
7367                relative: 1.0 1.0;
7368                offset: -1 -2;
7369             }
7370             color: 255 255 255 0;
7371          }
7372       }
7373    }
7374
7375    programs {
7376       program { name: "init";
7377          signal: "load";
7378          source: "";
7379          script {
7380             set_int(cur_hour_,-1);
7381             set_int(m_10_,-1);
7382             clock_cb(0);
7383          }
7384       }
7385
7386       /* Each transition happens in a similar manner. The only quirk
7387        * is that on a transition to 0 a transition to "reset" is made
7388        * before the actual change so that rolling always goes the same
7389        * direction. (It would be simpler and still work if I didn't do
7390        * this, but it looks odd on minute transitions like 19->20
7391        * where '1' would roll one way to '2' and '9' would roll
7392        * backwards to '0'.)
7393        */
7394
7395       /* The tens of hours transitions */
7396           program { name: "am";
7397          action: STATE_SET "digit" 0.0;
7398          target: "am_pm";
7399       }
7400       program { name: "pm";
7401          action: STATE_SET "digit" 0.1;
7402          target: "am_pm";
7403       }
7404       program { name: "hour_10_0";
7405          action: STATE_SET "reset" 0.0;
7406          target: "hour_10";
7407          after: "hour_10_to_zero";
7408       }
7409       program { name: "hour_10_to_zero";
7410          action: STATE_SET "digit" 0.0;
7411          transition: DIGITRANS;
7412          target: "hour_10";
7413       }
7414       HOUR_10_TRANS("hour_10_1", 0.1);
7415       HOUR_10_TRANS("hour_10_2", 0.2); /* only used in 24-hour clock */
7416
7417       /* The hours transitions */
7418       program { name: "hour_1_0";
7419          action: STATE_SET "reset" 0.0;
7420          target: "hour_1";
7421          after: "hour_1_to_zero";
7422       }
7423       program { name: "hour_1_to_zero";
7424          action: STATE_SET "digit" 0.0;
7425          transition: DIGITRANS;
7426          target: "hour_1";
7427       }
7428       HOUR_1_TRANS("hour_1_1", 0.1);
7429       HOUR_1_TRANS("hour_1_2", 0.2);
7430       HOUR_1_TRANS("hour_1_3", 0.3);
7431       HOUR_1_TRANS("hour_1_4", 0.4);
7432       HOUR_1_TRANS("hour_1_5", 0.5);
7433       HOUR_1_TRANS("hour_1_6", 0.6);
7434       HOUR_1_TRANS("hour_1_7", 0.7);
7435       HOUR_1_TRANS("hour_1_8", 0.8);
7436       HOUR_1_TRANS("hour_1_9", 0.9);
7437
7438       /* The tens of minutes transitions */
7439       program { name: "min_10_0";
7440          action: STATE_SET "reset" 0.0;
7441          target: "min_10";
7442          after: "min_10_to_zero";
7443       }
7444       program { name: "min_10_to_zero";
7445          action: STATE_SET "digit" 0.0;
7446          transition: DIGITRANS;
7447          target: "min_10";
7448       }
7449       MINUTE_10_TRANS("min_10_1", 0.1);
7450       MINUTE_10_TRANS("min_10_2", 0.2);
7451       MINUTE_10_TRANS("min_10_3", 0.3);
7452       MINUTE_10_TRANS("min_10_4", 0.4);
7453       MINUTE_10_TRANS("min_10_5", 0.5);
7454
7455       /* The minute transitions */
7456       program { name: "min_1_0";
7457          action: STATE_SET "reset" 0.0;
7458          target: "min_1";
7459          after: "min_1_to_zero";
7460       }
7461       program { name: "min_1_to_zero";
7462          action: STATE_SET "digit" 0.0;
7463          transition: DIGITRANS;
7464          target: "min_1";
7465       }
7466       MINUTE_1_TRANS("min_1_1", 0.1);
7467       MINUTE_1_TRANS("min_1_2", 0.2);
7468       MINUTE_1_TRANS("min_1_3", 0.3);
7469       MINUTE_1_TRANS("min_1_4", 0.4);
7470       MINUTE_1_TRANS("min_1_5", 0.5);
7471       MINUTE_1_TRANS("min_1_6", 0.6);
7472       MINUTE_1_TRANS("min_1_7", 0.7);
7473       MINUTE_1_TRANS("min_1_8", 0.8);
7474       MINUTE_1_TRANS("min_1_9", 0.9);
7475
7476       WEEKDAY_TRANS("weekday_0",0.0);
7477       WEEKDAY_TRANS("weekday_1",0.1);
7478       WEEKDAY_TRANS("weekday_2",0.2);
7479       WEEKDAY_TRANS("weekday_3",0.3);
7480       WEEKDAY_TRANS("weekday_4",0.4);
7481       WEEKDAY_TRANS("weekday_5",0.5);
7482       WEEKDAY_TRANS("weekday_6",0.6);
7483
7484       MONTH_TRANS("month_1",0.01);
7485       MONTH_TRANS("month_2",0.02);
7486       MONTH_TRANS("month_3",0.03);
7487       MONTH_TRANS("month_4",0.04);
7488       MONTH_TRANS("month_5",0.05);
7489       MONTH_TRANS("month_6",0.06);
7490       MONTH_TRANS("month_7",0.07);
7491       MONTH_TRANS("month_8",0.08);
7492       MONTH_TRANS("month_9",0.09);
7493       MONTH_TRANS("month_10",0.10);
7494       MONTH_TRANS("month_11",0.11);
7495       MONTH_TRANS("month_12",0.12);
7496
7497      }
7498 }
7499 group { name: "e/modules/clock/digital";
7500
7501    script {
7502       public cur_hour_;
7503       public m_10_;
7504       public clock_cb(unused) {
7505          new year, month, day, yearday, weekday, hour, minute;
7506          new Float:second;
7507          new h;
7508          new m_mod, m_tmp;
7509          new pm;
7510          new text[5];
7511
7512          date(year, month, day, yearday, weekday, hour, minute, second);
7513
7514          // It is my preference not to have a second hand so the
7515          // the timer is set to go off at the top of the minute.
7516          timer(61.0 - second, "clock_cb", 1);
7517          snprintf(text, 5, "%d%d", day/10,day%10);
7518
7519          set_text(PART:"day", text);
7520          h = get_int(cur_hour_)
7521          if (hour != h) {
7522             set_int(cur_hour_, hour);
7523
7524             if (hour > 12) pm = 1;
7525             else if (hour == 12) pm = 0;
7526
7527              if(pm == 1)        run_program(PROGRAM:"pm");
7528              else if(pm == 0)   run_program(PROGRAM:"am");
7529
7530 #ifndef HOURS24
7531             if (hour > 12) hour = hour - 12;
7532             if (hour == 0) hour = 12;
7533 #endif
7534             new htmp = hour / 10;
7535             if (htmp == 0)      run_program(PROGRAM:"hour_10_0");
7536             else if (htmp == 1) run_program(PROGRAM:"hour_10_1");
7537             else if (htmp == 2) run_program(PROGRAM:"hour_10_2");
7538
7539             //
7540             htmp = hour % 10;
7541             if (htmp == 0)      run_program(PROGRAM:"hour_1_0");
7542             else if (htmp == 1) run_program(PROGRAM:"hour_1_1");
7543             else if (htmp == 2) run_program(PROGRAM:"hour_1_2");
7544             else if (htmp == 3) run_program(PROGRAM:"hour_1_3");
7545             else if (htmp == 4) run_program(PROGRAM:"hour_1_4");
7546             else if (htmp == 5) run_program(PROGRAM:"hour_1_5");
7547             else if (htmp == 6) run_program(PROGRAM:"hour_1_6");
7548             else if (htmp == 7) run_program(PROGRAM:"hour_1_7");
7549             else if (htmp == 8) run_program(PROGRAM:"hour_1_8");
7550             else if (htmp == 9) run_program(PROGRAM:"hour_1_9");
7551          }
7552
7553          m_mod = minute % 10;
7554          m_tmp = (minute - m_mod) / 10;
7555          if (m_10_ != m_tmp) {
7556             m_10_ = m_tmp;
7557             // value from 0-5
7558             if (m_10_ == 0)      run_program(PROGRAM:"min_10_0");
7559             else if (m_10_ == 1) run_program(PROGRAM:"min_10_1");
7560             else if (m_10_ == 2) run_program(PROGRAM:"min_10_2");
7561             else if (m_10_ == 3) run_program(PROGRAM:"min_10_3");
7562             else if (m_10_ == 4) run_program(PROGRAM:"min_10_4");
7563             else if (m_10_ == 5) run_program(PROGRAM:"min_10_5");
7564          }
7565          // minutes digit is 0 .. 9
7566          if (m_mod == 0)      run_program(PROGRAM:"min_1_0");
7567          else if (m_mod == 1) run_program(PROGRAM:"min_1_1");
7568          else if (m_mod == 2) run_program(PROGRAM:"min_1_2");
7569          else if (m_mod == 3) run_program(PROGRAM:"min_1_3");
7570          else if (m_mod == 4) run_program(PROGRAM:"min_1_4");
7571          else if (m_mod == 5) run_program(PROGRAM:"min_1_5");
7572          else if (m_mod == 6) run_program(PROGRAM:"min_1_6");
7573          else if (m_mod == 7) run_program(PROGRAM:"min_1_7");
7574          else if (m_mod == 8) run_program(PROGRAM:"min_1_8");
7575          else if (m_mod == 9) run_program(PROGRAM:"min_1_9");
7576
7577          if(weekday == 0)           run_program(PROGRAM:"weekday_0");
7578          else if(weekday == 1)      run_program(PROGRAM:"weekday_1");
7579          else if(weekday == 2)      run_program(PROGRAM:"weekday_2");
7580          else if(weekday == 3)      run_program(PROGRAM:"weekday_3");
7581          else if(weekday == 4)      run_program(PROGRAM:"weekday_4");
7582          else if(weekday == 5)      run_program(PROGRAM:"weekday_5");
7583          else if(weekday == 6)      run_program(PROGRAM:"weekday_6");
7584
7585          if(month == 1)           run_program(PROGRAM:"month_1");
7586          else if(month == 2)      run_program(PROGRAM:"month_2");
7587          else if(month == 3)      run_program(PROGRAM:"month_3");
7588          else if(month == 4)      run_program(PROGRAM:"month_4");
7589          else if(month == 5)      run_program(PROGRAM:"month_5");
7590          else if(month == 6)      run_program(PROGRAM:"month_6");
7591          else if(month == 7)      run_program(PROGRAM:"month_7");
7592          else if(month == 8)      run_program(PROGRAM:"month_8");
7593          else if(month == 9)      run_program(PROGRAM:"month_9");
7594          else if(month == 10)      run_program(PROGRAM:"month_10");
7595          else if(month == 11)      run_program(PROGRAM:"month_11");
7596          else if(month == 12)      run_program(PROGRAM:"month_12");
7597       }
7598    }
7599    parts {
7600       part { name: "whole";
7601          type: RECT;
7602          mouse_events: 1;
7603          description {
7604             state: "default" 0.0;
7605             color: 255 255 255 0;
7606             rel1 {
7607                relative: 0.0 0.1;
7608                offset: 0 0;
7609             }
7610             rel2 {
7611                relative: 1.0 0.9;
7612                offset: -1 -1;
7613             }
7614          }
7615       }
7616       part { name: "clipper";
7617          type: RECT;
7618          mouse_events: 0;
7619          description {
7620             rel1 {
7621                to: "whole";
7622                relative: 0.0 0.0;
7623                offset: 0 0;
7624             }
7625             rel2 {
7626                to: "whole";
7627                relative: 1.0 1.0;
7628                offset: -1 -1;
7629             }
7630          }
7631       }
7632       part { name: "hour_10";
7633          type: IMAGE;
7634          clip_to: "clipper";
7635          BASE_DESCR(HOUR_10_XOFF);
7636          DIGIT_DESCR(0.0,0, HOUR_10_XOFF);
7637          DIGIT_DESCR(0.1,1, HOUR_10_XOFF);
7638          DIGIT_DESCR(0.2,2, HOUR_10_XOFF); /* only used in 24-hour clock */
7639       }
7640       part { name: "hour_1";
7641          type: IMAGE;
7642          clip_to: "clipper";
7643          BASE_DESCR(HOUR_1_XOFF);
7644          DIGIT_DESCR(0.0,0, HOUR_1_XOFF);
7645          DIGIT_DESCR(0.1,1, HOUR_1_XOFF);
7646          DIGIT_DESCR(0.2,2, HOUR_1_XOFF);
7647          DIGIT_DESCR(0.3,3, HOUR_1_XOFF);
7648          DIGIT_DESCR(0.4,4, HOUR_1_XOFF);
7649          DIGIT_DESCR(0.5,5, HOUR_1_XOFF);
7650          DIGIT_DESCR(0.6,6, HOUR_1_XOFF);
7651          DIGIT_DESCR(0.7,7, HOUR_1_XOFF);
7652          DIGIT_DESCR(0.8,8, HOUR_1_XOFF);
7653          DIGIT_DESCR(0.9,9, HOUR_1_XOFF);
7654       }
7655       part { name: "colon";
7656          type: IMAGE;
7657          clip_to: "clipper";
7658          description {
7659             state: "default" 0.0;
7660             image.normal: "clock/DM_Clock_time_center.png";
7661             visible: 1;
7662             rel1 {
7663                to: "whole";
7664                relative: COLON_XOFF DIGIT_Y;
7665                offset: 0 0;
7666             }
7667             rel2 {
7668                to: "whole";
7669                relative: (COLON_XOFF+.1) 1.0;
7670                offset: 0 0;
7671             }
7672             color: 255 255 255 255;
7673          }
7674       }
7675       part { name: "min_10";
7676          type: IMAGE;
7677          clip_to: "clipper";
7678          BASE_DESCR(MIN_10_XOFF);
7679          DIGIT_DESCR(0.0,0, MIN_10_XOFF);
7680          DIGIT_DESCR(0.1,1, MIN_10_XOFF);
7681          DIGIT_DESCR(0.2,2, MIN_10_XOFF);
7682          DIGIT_DESCR(0.3,3, MIN_10_XOFF);
7683          DIGIT_DESCR(0.4,4, MIN_10_XOFF);
7684          DIGIT_DESCR(0.5,5, MIN_10_XOFF);
7685       }
7686
7687       part { name: "min_1";
7688          type: IMAGE;
7689          clip_to: "clipper";
7690          BASE_DESCR(MIN_1_XOFF);
7691          DIGIT_DESCR(0.0,0, MIN_1_XOFF);
7692          DIGIT_DESCR(0.1,1, MIN_1_XOFF);
7693          DIGIT_DESCR(0.2,2, MIN_1_XOFF);
7694          DIGIT_DESCR(0.3,3, MIN_1_XOFF);
7695          DIGIT_DESCR(0.4,4, MIN_1_XOFF);
7696          DIGIT_DESCR(0.5,5, MIN_1_XOFF);
7697          DIGIT_DESCR(0.6,6, MIN_1_XOFF);
7698          DIGIT_DESCR(0.7,7, MIN_1_XOFF);
7699          DIGIT_DESCR(0.8,8, MIN_1_XOFF);
7700          DIGIT_DESCR(0.9,9, MIN_1_XOFF);
7701       }
7702       part { name: "am_pm";
7703          type: IMAGE;
7704          clip_to: "clipper";
7705          BASE_DESCR_AM_PM(AM_PM_XOFF);
7706          DIGIT_DESCR_AM_PM(0.0,AM, AM_PM_XOFF);
7707          DIGIT_DESCR_AM_PM(0.1,PM, AM_PM_XOFF);
7708       }
7709       part { name: "weekday";
7710          type: TEXT;
7711          effect: OUTLINE_SOFT_SHADOW;
7712          BASE_DESCR_WD_MD(WEEKDAY_XOFF);
7713          DIGIT_DESCR_WD_MD(0.0,Mon., WEEKDAY_XOFF);
7714          DIGIT_DESCR_WD_MD(0.1,Tue., WEEKDAY_XOFF);
7715          DIGIT_DESCR_WD_MD(0.2,Wed., WEEKDAY_XOFF);
7716          DIGIT_DESCR_WD_MD(0.3,Tur., WEEKDAY_XOFF);
7717          DIGIT_DESCR_WD_MD(0.4,Fri., WEEKDAY_XOFF);
7718          DIGIT_DESCR_WD_MD(0.5,Sat., WEEKDAY_XOFF);
7719          DIGIT_DESCR_WD_MD(0.6,Sun., WEEKDAY_XOFF);
7720       }
7721       part { name: "day";
7722          type: TEXT;
7723          effect: OUTLINE_SOFT_SHADOW;
7724          scale: 1;
7725          BASE_DESCR_DAY(DAY_XOFF);
7726       }
7727
7728       part { name: "month";
7729          type: TEXT;
7730          effect: OUTLINE_SOFT_SHADOW;
7731          BASE_DESCR_WD_MD(MONTH_XOFF);
7732          DIGIT_DESCR_WD_MD(0.01,Jan, MONTH_XOFF);
7733          DIGIT_DESCR_WD_MD(0.02,Feb, MONTH_XOFF);
7734          DIGIT_DESCR_WD_MD(0.03,Mar, MONTH_XOFF);
7735          DIGIT_DESCR_WD_MD(0.04,Apr, MONTH_XOFF);
7736          DIGIT_DESCR_WD_MD(0.05,May, MONTH_XOFF);
7737          DIGIT_DESCR_WD_MD(0.06,Jun, MONTH_XOFF);
7738          DIGIT_DESCR_WD_MD(0.07,Jul, MONTH_XOFF);
7739          DIGIT_DESCR_WD_MD(0.08,Aug, MONTH_XOFF);
7740          DIGIT_DESCR_WD_MD(0.09,Sep, MONTH_XOFF);
7741          DIGIT_DESCR_WD_MD(0.10,Oct, MONTH_XOFF);
7742          DIGIT_DESCR_WD_MD(0.11,Nov, MONTH_XOFF);
7743          DIGIT_DESCR_WD_MD(0.12,Dec, MONTH_XOFF);
7744       }
7745
7746       part { name: "main";
7747          type: RECT;
7748          mouse_events: 1;
7749          description {
7750             state: "default" 0.0;
7751             rel1 {
7752                to: "whole";
7753                relative: 0.0 0.0;
7754                offset: 0 2;
7755             }
7756             rel2 {
7757                to: "whole";
7758                relative: 1.0 1.0;
7759                offset: -1 -2;
7760             }
7761             color: 255 255 255 0;
7762          }
7763       }
7764    }
7765
7766    programs {
7767       program { name: "init";
7768          signal: "load";
7769          source: "";
7770          script {
7771             set_int(cur_hour_,-1);
7772             set_int(m_10_,-1);
7773             clock_cb(0);
7774          }
7775       }
7776
7777       /* Each transition happens in a similar manner. The only quirk
7778        * is that on a transition to 0 a transition to "reset" is made
7779        * before the actual change so that rolling always goes the same
7780        * direction. (It would be simpler and still work if I didn't do
7781        * this, but it looks odd on minute transitions like 19->20
7782        * where '1' would roll one way to '2' and '9' would roll
7783        * backwards to '0'.)
7784        */
7785
7786       /* The tens of hours transitions */
7787           program { name: "am";
7788          action: STATE_SET "digit" 0.0;
7789          target: "am_pm";
7790       }
7791       program { name: "pm";
7792          action: STATE_SET "digit" 0.1;
7793          target: "am_pm";
7794       }
7795       program { name: "hour_10_0";
7796          action: STATE_SET "reset" 0.0;
7797          target: "hour_10";
7798          after: "hour_10_to_zero";
7799       }
7800       program { name: "hour_10_to_zero";
7801          action: STATE_SET "digit" 0.0;
7802          transition: DIGITRANS;
7803          target: "hour_10";
7804       }
7805       HOUR_10_TRANS("hour_10_1", 0.1);
7806       HOUR_10_TRANS("hour_10_2", 0.2); /* only used in 24-hour clock */
7807
7808       /* The hours transitions */
7809
7810       program { name: "hour_1_0";
7811          action: STATE_SET "reset" 0.0;
7812          target: "hour_1";
7813          after: "hour_1_to_zero";
7814       }
7815       program { name: "hour_1_to_zero";
7816          action: STATE_SET "digit" 0.0;
7817          transition: DIGITRANS;
7818          target: "hour_1";
7819       }
7820       HOUR_1_TRANS("hour_1_1", 0.1);
7821       HOUR_1_TRANS("hour_1_2", 0.2);
7822       HOUR_1_TRANS("hour_1_3", 0.3);
7823       HOUR_1_TRANS("hour_1_4", 0.4);
7824       HOUR_1_TRANS("hour_1_5", 0.5);
7825       HOUR_1_TRANS("hour_1_6", 0.6);
7826       HOUR_1_TRANS("hour_1_7", 0.7);
7827       HOUR_1_TRANS("hour_1_8", 0.8);
7828       HOUR_1_TRANS("hour_1_9", 0.9);
7829
7830       /* The tens of minutes transitions */
7831
7832       program { name: "min_10_0";
7833          action: STATE_SET "reset" 0.0;
7834          target: "min_10";
7835          after: "min_10_to_zero";
7836       }
7837       program { name: "min_10_to_zero";
7838          action: STATE_SET "digit" 0.0;
7839          transition: DIGITRANS;
7840          target: "min_10";
7841       }
7842       MINUTE_10_TRANS("min_10_1", 0.1);
7843       MINUTE_10_TRANS("min_10_2", 0.2);
7844       MINUTE_10_TRANS("min_10_3", 0.3);
7845       MINUTE_10_TRANS("min_10_4", 0.4);
7846       MINUTE_10_TRANS("min_10_5", 0.5);
7847
7848       /* The minute transitions */
7849
7850       program { name: "min_1_0";
7851          action: STATE_SET "reset" 0.0;
7852          target: "min_1";
7853          after: "min_1_to_zero";
7854       }
7855       program { name: "min_1_to_zero";
7856          action: STATE_SET "digit" 0.0;
7857          transition: DIGITRANS;
7858          target: "min_1";
7859       }
7860       /* */
7861       MINUTE_1_TRANS("min_1_1", 0.1);
7862       MINUTE_1_TRANS("min_1_2", 0.2);
7863       MINUTE_1_TRANS("min_1_3", 0.3);
7864       MINUTE_1_TRANS("min_1_4", 0.4);
7865       MINUTE_1_TRANS("min_1_5", 0.5);
7866       MINUTE_1_TRANS("min_1_6", 0.6);
7867       MINUTE_1_TRANS("min_1_7", 0.7);
7868       MINUTE_1_TRANS("min_1_8", 0.8);
7869       MINUTE_1_TRANS("min_1_9", 0.9);
7870
7871       WEEKDAY_TRANS("weekday_0",0.0);
7872       WEEKDAY_TRANS("weekday_1",0.1);
7873       WEEKDAY_TRANS("weekday_2",0.2);
7874       WEEKDAY_TRANS("weekday_3",0.3);
7875       WEEKDAY_TRANS("weekday_4",0.4);
7876       WEEKDAY_TRANS("weekday_5",0.5);
7877       WEEKDAY_TRANS("weekday_6",0.6);
7878
7879       MONTH_TRANS("month_1",0.01);
7880       MONTH_TRANS("month_2",0.02);
7881       MONTH_TRANS("month_3",0.03);
7882       MONTH_TRANS("month_4",0.04);
7883       MONTH_TRANS("month_5",0.05);
7884       MONTH_TRANS("month_6",0.06);
7885       MONTH_TRANS("month_7",0.07);
7886       MONTH_TRANS("month_8",0.08);
7887       MONTH_TRANS("month_9",0.09);
7888       MONTH_TRANS("month_10",0.10);
7889       MONTH_TRANS("month_11",0.11);
7890       MONTH_TRANS("month_12",0.12);
7891
7892      }
7893 }
7894
7895 /////////////////////////////////////////////////////////////////////////////
7896 /*** MOD: IBOX / IBAR ***/
7897
7898    group {
7899       name: "e/modules/ibox/icon";
7900       alias: "e/modules/ibar/icon";
7901       data {
7902       // This didn't seem to work ...
7903       item: "raise_on_hilight" "0"; // 1 or 0 if u want an icon holder
7904                                     // to raise when the mouse (or
7905                                     // keyboard) hilights it
7906          // item: "item_list" "item item2 item3";
7907       }
7908       parts {
7909          part {
7910             name: "item_clip";
7911             type: RECT;
7912             mouse_events: 0;
7913             description {
7914                state: "default" 0.0;
7915                color: 255 255 255 255;
7916             }
7917          }
7918          part {
7919             name: "e.swallow.content";
7920             type: SWALLOW;
7921             clip_to: "item_clip";
7922             description {
7923                state: "default" 0.0;
7924             rel1 {
7925                relative: 0.35 0.25;
7926                offset: 2 2;
7927             }
7928             rel2 {
7929                relative: 0.65 0.55;
7930                offset: -2 -2;
7931             }
7932          }
7933             description {
7934                state: "smaller" 0.0;
7935                inherit: "default" 0.0;
7936                rel1 {
7937                   offset: 5 5;
7938                }
7939                rel2 {
7940                   offset: -5 -5;
7941                }
7942             }
7943          }
7944          part {
7945             name: "over";
7946             type: RECT;
7947             repeat_events: 0;
7948             description {
7949                state: "default" 0.0;
7950                color: 0 0 0 0;
7951             }
7952          }
7953       }
7954       programs {
7955          program {
7956             name: "hover_down";
7957             signal: "mouse,down,1";
7958             source: "over";
7959             action: STATE_SET "smaller" 0.0;
7960             transition: LINEAR 0.2;
7961             target: "e.swallow.content";
7962          }
7963          program {
7964             name: "hover_up";
7965             signal: "mouse,up,1";
7966             source: "over";
7967             action: STATE_SET "default" 0.0;
7968             transition: LINEAR 0.2;
7969             target: "e.swallow.content";
7970          }
7971          program {
7972             name: "exec_start";
7973             signal: "e,action,start";
7974             source: "e";
7975             action: STATE_SET "faded" 0.0;
7976             transition: LINEAR 0.5;
7977             target: "item_clip";
7978          }
7979          program {
7980             name: "exec_exec";
7981             signal: "e,action,exec";
7982             source: "e";
7983             action: STATE_SET "faded" 0.0;
7984             transition: LINEAR 0.5;
7985             target: "item_clip";
7986             after: "exec_stop";
7987          }
7988          program {
7989             name: "exec_stop";
7990             signal: "e,action,stop";
7991             source: "e";
7992             action: STATE_SET "default" 0.0;
7993             target: "item_clip";
7994          }
7995       }
7996    }
7997    group {
7998       name: "e/modules/ibox/icon_overlay";
7999       alias: "e/modules/ibar/icon_overlay";
8000       data {
8001          // item: "item_list", "item item2 item3";
8002       }
8003       parts {
8004          part {
8005             name: "base";
8006             type: RECT;
8007             mouse_events: 0;
8008             description {
8009                state: "default" 0.0;
8010                color: 255 255 255 0;
8011             }
8012          }
8013          part {
8014             name: "background";
8015             type: RECT;
8016             mouse_events: 0;
8017             description {
8018                state: "default" 0.0;
8019                visible: 0;
8020             rel1 {
8021                to: "base";
8022             }
8023             rel2 {
8024                to: "base";
8025             }
8026                color: 255 255 255 0;
8027             }
8028             description {
8029                state: "visible" 0.0;
8030                visible: 1;
8031             rel1 {
8032                to: "base";
8033                offset: 0 -5;
8034             }
8035             rel2 {
8036                to: "base";
8037                offset: 0 -5;
8038             }
8039                color: 255 255 255 255;
8040             }
8041             description {
8042                state: "hidden" 0.0;
8043                visible: 1;
8044                rel1 {
8045                   relative: -0.3 -0.3;
8046                   offset: 0 -5;
8047                   to: "base";
8048                }
8049                rel2 {
8050                   relative: 1.3 1.3;
8051                   offset: 0 -5;
8052                   to: "base";
8053                }
8054                color: 255 255 255 0;
8055             }
8056             description {
8057                state: "huge" 0.0;
8058                visible: 1;
8059                rel1 {
8060                   relative: -2.0  -2.0;
8061                   to: "base";
8062                }
8063                rel2 {
8064                   relative: 3.0  3.0;
8065                   to: "base";
8066                }
8067                color: 255 255 255 0;
8068             }
8069          }
8070          part {
8071             name: "e.swallow.content";
8072             type: SWALLOW;
8073             clip_to: "background";
8074             description {
8075                state: "default" 0.0;
8076             rel1 {
8077                to: "background";
8078             }
8079             rel2 {
8080                to: "background";
8081             }
8082          }
8083          }
8084       // Smoke ibar text doesn't "fade away" it rolls up
8085          part {
8086             name: "text_clip";
8087             type: RECT;
8088             mouse_events: 0;
8089             description {
8090                state: "default" 0.0;
8091                rel1 {
8092                   to: "base";
8093                   offset: 0 0;
8094                }
8095                rel2 {
8096                   to: "base";
8097                   offset: 0 0;
8098                }
8099                color: 255 255 255 255;
8100             }
8101          }
8102          part {
8103             name: "e.text.label";
8104             type: TEXT;
8105             effect: SOFT_SHADOW;
8106             mouse_events: 0;
8107             clip_to: "text_clip";
8108             description {
8109                state: "default" 0.0;
8110                align: 0.5 0.5;
8111                rel1 {
8112                   relative: 0.0 0.45;
8113                   offset: 0 0;
8114                }
8115                rel2 {
8116                   relative: 1.0  0.9;
8117                   offset: 0 0;
8118                }
8119                color: 255 255 255 255;
8120                color3: 0 0 0 42;
8121                color_class: "module_label";
8122                text {
8123                   text: "";
8124                   font: "Sans";
8125                   size: 14;
8126                   min: 0 0;
8127                   align: 0.5 0.5;
8128                   elipsis: 0.0;
8129                   text_class: "module_normal";
8130                }
8131             }
8132          }
8133       }
8134       programs {
8135          program {
8136             name: "go_active";
8137             signal: "e,state,focused";
8138             source: "e";
8139             action: STATE_SET "visible" 0.0;
8140             target: "background";
8141             after: "go_active2";
8142          }
8143          program {
8144             name: "go_activeB";
8145             signal: "e,action,show,label";
8146             source: "e";
8147             action: STATE_SET "default" 0.0;
8148             target: "e.text.label";
8149             after: "go_activeB2";
8150          }
8151              program {
8152                 name: "go_activeB2";
8153                 signal: "";
8154                 source: "";
8155                 action: STATE_SET "visible" 0.0;
8156                 target: "e.text.label";
8157              }
8158          program {
8159             name: "go_active2";
8160             signal: "";
8161             source: "";
8162             action: STATE_SET "hidden" 0.0;
8163             target: "background";
8164             after: "go_active";
8165          }
8166          program {
8167             name: "go_passive";
8168             signal: "e,state,unfocused";
8169             source: "e";
8170             action: ACTION_STOP;
8171             target: "go_active";
8172             target: "go_active2";
8173             after: "go_passive2";
8174          }
8175          program {
8176             name: "go_passiveB";
8177             signal: "e,action,hide,label";
8178             source: "e";
8179             action: STATE_SET "visible" 0.0;
8180             target: "e.text.label";
8181             after: "go_passiveB2";
8182          }
8183          program {
8184             name: "go_passiveB2";
8185             signal: "";
8186             source: "";
8187             action: STATE_SET "default" 0.0;
8188             target: "e.text.label";
8189          }
8190          program {
8191             name: "go_passive2";
8192             signal: "";
8193             source: "";
8194             action: STATE_SET "default" 0.0;
8195             target: "background";
8196          }
8197          program {
8198             name: "go_big";
8199             action: STATE_SET "visible" 0.0;
8200             target: "background";
8201             after: "go_big2";
8202          }
8203          program {
8204             name: "go_big2";
8205             action: STATE_SET "huge" 0.0;
8206             target: "background";
8207          }
8208          program {
8209             name: "exec_start";
8210             signal: "e,action,start";
8211             source: "e";
8212             action: ACTION_STOP;
8213             target: "go_active";
8214             target: "go_active2";
8215             target: "go_passive";
8216             target: "go_passive2";
8217             target: "go_big";
8218             target: "go_big2";
8219             after: "go_big";
8220          }
8221          program {
8222             name: "exec_exec";
8223             signal: "e,action,exec";
8224             source: "e";
8225             after: "exec_start";
8226          }
8227          program {
8228             name: "exec_stop";
8229             signal: "e,action,stop";
8230             source: "e";
8231          }
8232       }
8233    }
8234    group {
8235       name: "e/modules/ibox/drop";
8236       alias: "e/modules/ibar/drop";
8237       images.image: "inset_raised.png" COMP;
8238       parts {
8239          part {
8240             name: "bg";
8241             mouse_events: 0;
8242             description {
8243                state: "default" 0.0;
8244                image {
8245                   normal: "inset_raised.png";
8246                   border: 7 7 7 7;
8247                   middle: 0;
8248                }
8249             }
8250          }
8251       }
8252    }
8253    group {
8254       name: "e/modules/ibox/drop_overlay";
8255       alias: "e/modules/ibar/drop_overlay";
8256       images {
8257          image: "gadman_top.png" COMP;
8258          image: "gadman_bottom.png" COMP;
8259          image: "gadman_left.png" COMP;
8260          image: "gadman_right.png" COMP;
8261       }
8262       parts {
8263          part {
8264             name: "left_arrow1";
8265             description {
8266                state: "default" 0.0;
8267                aspect: 1.0 1.0;
8268                aspect_preference: VERTICAL;
8269                rel1.relative: -1.0 0.5;
8270                rel2.relative: -1.0 0.5;
8271                image.normal: "gadman_right.png";
8272             }
8273             description {
8274                state: "1" 0.0;
8275                inherit: "default" 0.0;
8276                rel1.relative: -0.8 0.2;
8277                rel2.relative: -0.7 0.8;
8278             }
8279             description {
8280                state: "2" 0.0;
8281                inherit: "default" 0.0;
8282                rel1.relative: 0.2 0.5;
8283                rel2.relative: 0.2 0.5;
8284             }
8285          }
8286          part {
8287             name: "left_arrow2";
8288             description {
8289                state: "default" 0.0;
8290                aspect: 1.0 1.0;
8291                aspect_preference: VERTICAL;
8292                rel1.relative: -1.0 0.5;
8293                rel2.relative: -1.0 0.5;
8294                image.normal: "gadman_right.png";
8295             }
8296             description {
8297                state: "1" 0.0;
8298                inherit: "default" 0.0;
8299                rel1.relative: -0.8 0.2;
8300                rel2.relative: -0.7 0.8;
8301             }
8302             description {
8303                state: "2" 0.0;
8304                inherit: "default" 0.0;
8305                rel1.relative: 0.2 0.5;
8306                rel2.relative: 0.2 0.5;
8307             }
8308          }
8309          part {
8310             name: "right_arrow1";
8311             description {
8312                state: "default" 0.0;
8313                aspect: 1.0 1.0;
8314                aspect_preference: VERTICAL;
8315                rel1.relative: 2.0 0.5;
8316                rel2.relative: 2.0 0.5;
8317                image.normal: "gadman_left.png";
8318             }
8319             description {
8320                state: "1" 0.0;
8321                inherit: "default" 0.0;
8322                rel1.relative: 1.8 0.2;
8323                rel2.relative: 1.7 0.8;
8324             }
8325             description {
8326                state: "2" 0.0;
8327                inherit: "default" 0.0;
8328                rel1.relative: 0.8 0.5;
8329                rel2.relative: 0.8 0.5;
8330             }
8331          }
8332          part {
8333             name: "right_arrow2";
8334             description {
8335                state: "default" 0.0;
8336                aspect: 1.0 1.0;
8337                aspect_preference: VERTICAL;
8338                rel1.relative: 2.0 0.5;
8339                rel2.relative: 2.0 0.5;
8340                image.normal: "gadman_left.png";
8341             }
8342             description {
8343                state: "1" 0.0;
8344                inherit: "default" 0.0;
8345                rel1.relative: 1.8 0.2;
8346                rel2.relative: 1.7 0.8;
8347             }
8348             description {
8349                state: "2" 0.0;
8350                inherit: "default" 0.0;
8351                rel1.relative: 0.8 0.5;
8352                rel2.relative: 0.8 0.5;
8353             }
8354          }
8355          part {
8356             name: "top_arrow1";
8357             description {
8358                state: "default" 0.0;
8359                aspect: 1.0 1.0;
8360                aspect_preference: HORIZONTAL;
8361                rel1.relative: 0.5 -1.0;
8362                rel2.relative: 0.5 -1.0;
8363                image.normal: "gadman_bottom.png";
8364             }
8365             description {
8366                state: "1" 0.0;
8367                inherit: "default" 0.0;
8368                rel1.relative: 0.2 -0.8;
8369                rel2.relative: 0.8 -0.7;
8370             }
8371             description {
8372                state: "2" 0.0;
8373                inherit: "default" 0.0;
8374                rel1.relative: 0.5 0.2;
8375                rel2.relative: 0.5 0.2;
8376             }
8377          }
8378          part {
8379             name: "top_arrow2";
8380             description {
8381                state: "default" 0.0;
8382                aspect: 1.0 1.0;
8383                aspect_preference: HORIZONTAL;
8384                rel1.relative: 0.5 -1.0;
8385                rel2.relative: 0.5 -1.0;
8386                image.normal: "gadman_bottom.png";
8387             }
8388             description {
8389                state: "1" 0.0;
8390                inherit: "default" 0.0;
8391                rel1.relative: 0.2 -0.8;
8392                rel2.relative: 0.8 -0.7;
8393             }
8394             description {
8395                state: "2" 0.0;
8396                inherit: "default" 0.0;
8397                rel1.relative: 0.5 0.2;
8398                rel2.relative: 0.5 0.2;
8399             }
8400          }
8401          part {
8402             name: "bottom_arrow1";
8403             description {
8404                state: "default" 0.0;
8405                aspect: 1.0 1.0;
8406                aspect_preference: HORIZONTAL;
8407                rel1.relative: 0.5 2.0;
8408                rel2.relative: 0.5 2.0;
8409                image.normal: "gadman_top.png";
8410             }
8411             description {
8412                state: "1" 0.0;
8413                inherit: "default" 0.0;
8414                rel1.relative: 0.2 1.7;
8415                rel2.relative: 0.8 1.8;
8416             }
8417             description {
8418                state: "2" 0.0;
8419                inherit: "default" 0.0;
8420                rel1.relative: 0.5 0.8;
8421                rel2.relative: 0.5 0.8;
8422             }
8423          }
8424          part {
8425             name: "bottom_arrow2";
8426             description {
8427                state: "default" 0.0;
8428                aspect: 1.0 1.0;
8429                aspect_preference: HORIZONTAL;
8430                rel1.relative: 0.5 2.0;
8431                rel2.relative: 0.5 2.0;
8432                image.normal: "gadman_top.png";
8433             }
8434             description {
8435                state: "1" 0.0;
8436                inherit: "default" 0.0;
8437                rel1.relative: 0.2 1.7;
8438                rel2.relative: 0.8 1.8;
8439             }
8440             description {
8441                state: "2" 0.0;
8442                inherit: "default" 0.0;
8443                rel1.relative: 0.5 0.8;
8444                rel2.relative: 0.5 0.8;
8445             }
8446          }
8447       }
8448       programs {
8449          program {
8450             name: "start1";
8451             signal: "show";
8452             source: "";
8453             after: "left1_1";
8454             after: "right1_1";
8455             after: "top1_1";
8456             after: "bottom1_1";
8457          }
8458          program {
8459             name: "start2";
8460             signal: "show";
8461             source: "";
8462             in: 0.4 0.0;
8463             after: "left2_1";
8464             after: "right2_1";
8465             after: "top2_1";
8466             after: "bottom2_1";
8467          }
8468          // LEFT ARROW
8469          program {
8470             name: "left1_1";
8471             action: STATE_SET "1" 0.0;
8472             target: "left_arrow1";
8473             transition: LINEAR 0.4;
8474             after: "left1_2";
8475          }
8476          program {
8477             name: "left1_2";
8478             action: STATE_SET "2" 0.0;
8479             target: "left_arrow1";
8480             transition: LINEAR 0.4;
8481             after: "left1_r";
8482          }
8483          program {
8484             name: "left1_r";
8485             action: STATE_SET "default" 0.0;
8486             target: "left_arrow1";
8487             after: "left1_1";
8488          }
8489          program {
8490             name: "left2_1";
8491             action: STATE_SET "1" 0.0;
8492             target: "left_arrow2";
8493             transition: LINEAR 0.4;
8494             after: "left2_2";
8495          }
8496          program {
8497             name: "left2_2";
8498             action: STATE_SET "2" 0.0;
8499             target: "left_arrow2";
8500             transition: LINEAR 0.4;
8501             after: "left2_r";
8502          }
8503          program {
8504             name: "left2_r";
8505             action: STATE_SET "default" 0.0;
8506             target: "left_arrow2";
8507             after: "left2_1";
8508          }
8509          // RIGHT ARROW
8510          program {
8511             name: "right1_1";
8512             action: STATE_SET "1" 0.0;
8513             target: "right_arrow1";
8514             transition: LINEAR 0.4;
8515             after: "right1_2";
8516          }
8517          program {
8518             name: "right1_2";
8519             action: STATE_SET "2" 0.0;
8520             target: "right_arrow1";
8521             transition: LINEAR 0.4;
8522             after: "right1_r";
8523          }
8524          program {
8525             name: "right1_r";
8526             action: STATE_SET "default" 0.0;
8527             target: "right_arrow1";
8528             after: "right1_1";
8529          }
8530          program {
8531             name: "right2_1";
8532             action: STATE_SET "1" 0.0;
8533             target: "right_arrow2";
8534             transition: LINEAR 0.4;
8535             after: "right2_2";
8536          }
8537          program {
8538             name: "right2_2";
8539             action: STATE_SET "2" 0.0;
8540             target: "right_arrow2";
8541             transition: LINEAR 0.4;
8542             after: "right2_r";
8543          }
8544          program {
8545             name: "right2_r";
8546             action: STATE_SET "default" 0.0;
8547             target: "right_arrow2";
8548             after: "right2_1";
8549          }
8550          // TOP ARROW
8551          program {
8552             name: "top1_1";
8553             action: STATE_SET "1" 0.0;
8554             target: "top_arrow1";
8555             transition: LINEAR 0.4;
8556             after: "top1_2";
8557          }
8558          program {
8559             name: "top1_2";
8560             action: STATE_SET "2" 0.0;
8561             target: "top_arrow1";
8562             transition: LINEAR 0.4;
8563             after: "top1_r";
8564          }
8565          program {
8566             name: "top1_r";
8567             action: STATE_SET "default" 0.0;
8568             target: "top_arrow1";
8569             after: "top1_1";
8570          }
8571          program {
8572             name: "top2_1";
8573             action: STATE_SET "1" 0.0;
8574             target: "top_arrow2";
8575             transition: LINEAR 0.4;
8576             after: "top2_2";
8577          }
8578          program {
8579             name: "top2_2";
8580             action: STATE_SET "2" 0.0;
8581             target: "top_arrow2";
8582             transition: LINEAR 0.4;
8583             after: "top2_r";
8584          }
8585          program {
8586             name: "top2_r";
8587             action: STATE_SET "default" 0.0;
8588             target: "top_arrow2";
8589             after: "top2_1";
8590          }
8591          // BOTTOM ARROW
8592          program {
8593             name: "bottom1_1";
8594             action: STATE_SET "1" 0.0;
8595             target: "bottom_arrow1";
8596             transition: LINEAR 0.4;
8597             after: "bottom1_2";
8598          }
8599          program {
8600             name: "bottom1_2";
8601             action: STATE_SET "2" 0.0;
8602             target: "bottom_arrow1";
8603             transition: LINEAR 0.4;
8604             after: "bottom1_r";
8605          }
8606          program {
8607             name: "bottom1_r";
8608             action: STATE_SET "default" 0.0;
8609             target: "bottom_arrow1";
8610             after: "bottom1_1";
8611          }
8612          program {
8613             name: "bottom2_1";
8614             action: STATE_SET "1" 0.0;
8615             target: "bottom_arrow2";
8616             transition: LINEAR 0.4;
8617             after: "bottom2_2";
8618          }
8619          program {
8620             name: "bottom2_2";
8621             action: STATE_SET "2" 0.0;
8622             target: "bottom_arrow2";
8623             transition: LINEAR 0.4;
8624             after: "bottom2_r";
8625          }
8626          program {
8627             name: "bottom2_r";
8628             action: STATE_SET "default" 0.0;
8629             target: "bottom_arrow2";
8630             after: "bottom2_1";
8631          }
8632       }
8633    }
8634
8635 /////////////////////////////////////////////////////////////////////////////
8636 /*** DIALOG ***/
8637 /* Used in all dialogs eg; Wallpaper selector */
8638
8639    group {
8640       name: "e/widgets/dialog/main";
8641       images {
8642          image: "dia_grad.png" COMP;
8643          image: "dia_topshad.png" COMP;
8644          image: "dia_botshad.png" COMP;
8645          image: "menu_sep.png" COMP;
8646       }
8647       parts {
8648          part {
8649             name: "base";
8650             mouse_events: 0;
8651             description {
8652                state: "default" 0.0;
8653                color_class: "dialog_base";
8654                image.normal: "dia_grad.png";
8655                fill {
8656                   smooth: 0;
8657                   size {
8658                      relative: 0.0 1.0;
8659                      offset: 64 0;
8660                   }
8661                }
8662             }
8663          }
8664          part {
8665             name: "shadow";
8666             mouse_events: 0;
8667             description {
8668                state: "default" 0.0;
8669                rel2.relative: 1.0 0.0;
8670                rel2.offset: -1 31;
8671                image.normal: "dia_topshad.png";
8672                fill {
8673                   smooth: 0;
8674                   size {
8675                      relative: 0.0 1.0;
8676                      offset: 64 0;
8677                   }
8678                }
8679             }
8680          }
8681          part {
8682             name: "shadow2";
8683             mouse_events: 0;
8684             description {
8685                state: "default" 0.0;
8686                rel1.relative: 0.0 1.0;
8687                rel1.offset: 0 -4;
8688                image.normal: "dia_botshad.png";
8689                fill {
8690                   smooth: 0;
8691                   size {
8692                      relative: 0.0 1.0;
8693                      offset: 64 0;
8694                   }
8695                }
8696             }
8697          }
8698          part {
8699             name: "e.swallow.icon";
8700             type: SWALLOW;
8701             description {
8702                state: "default" 0.0;
8703                align: 0.0 0.5;
8704                fixed: 1 0;
8705                rel1 {
8706                   relative: 0.0 0.0;
8707                   offset: 2  2;
8708                }
8709                rel2 {
8710                   relative: 0.0 0.0;
8711                   offset: 2  -5;
8712                   to_y: "e.swallow.buttons";
8713                }
8714             }
8715          }
8716          part {
8717             name: "e.swallow.content";
8718             type: SWALLOW;
8719             description {
8720                state: "default" 0.0;
8721                rel1 {
8722                   relative: 1.0 0.0;
8723                   offset: 2   2;
8724                   to_x: "e.swallow.icon";
8725                }
8726                rel2 {
8727                   relative: 1.0 0.0;
8728                   offset: -3  -5;
8729                   to_y: "e.swallow.buttons";
8730                }
8731             }
8732          }
8733          part {
8734             name: "separator";
8735             mouse_events: 0;
8736             description {
8737                state: "default" 0.0;
8738                min: 16 2;
8739                rel1 {
8740                   relative: 0.0  1.0;
8741                   offset: 4    -1;
8742                   to_y: "e.swallow.content";
8743                }
8744                rel2 {
8745                   relative: 1.0  1.0;
8746                   offset: -5   0;
8747                   to_y: "e.swallow.content";
8748                }
8749                image {
8750                   normal: "menu_sep.png";
8751                   border: 2 2 0 0;
8752                }
8753                fill.smooth: 0;
8754             }
8755          }
8756          part {
8757             name: "e.swallow.buttons";
8758             type: SWALLOW;
8759             description {
8760                state: "default" 0.0;
8761                align: 0.5 1.0;
8762                fixed: 0 1;
8763                rel1 {
8764                   relative: 0.0 1.0;
8765                   offset: 4   -5;
8766                }
8767                rel2 {
8768                   relative: 1.0 1.0;
8769                   offset: -5  -5;
8770                }
8771             }
8772          }
8773       }
8774    }
8775    group {
8776       name: "e/widgets/dialog/text";
8777       styles {
8778          style {
8779             name: "dialog_style";
8780             base: "font=Sans font_size=10 text_class=tb_plain align=center color=#000 style=shadow shadow_color=#ffffff80 wrap=word";
8781             tag: "br" "\n";
8782             tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light";
8783          }
8784       }
8785       parts {
8786          part {
8787             name: "e.textblock.message";
8788             type: TEXTBLOCK;
8789             mouse_events: 0;
8790             scale: 1;
8791             description {
8792                state: "default" 0.0;
8793                rel1.offset: 4 4;
8794                rel2.offset: -5 -5;
8795                text {
8796                   style: "dialog_style";
8797                   min: 1 1;
8798                }
8799             }
8800          }
8801       }
8802    }
8803
8804
8805 /////////////////////////////////////////////////////////////////////////////
8806 /*** CONFIGURATION PANEL ***/
8807
8808    group {
8809       name: "e/widgets/configure/main";
8810       images {
8811          image: "dia_grad.png" COMP;
8812          image: "dia_topshad.png" COMP;
8813          image: "dia_botshad.png" COMP;
8814          image: "menu_sep.png" COMP;
8815       }
8816       parts {
8817          part {
8818             name: "base";
8819             mouse_events: 0;
8820             description {
8821                state: "default" 0.0;
8822                color_class: "dialog_base";
8823                image.normal: "dia_grad.png";
8824                fill {
8825                   smooth: 0;
8826                   size {
8827                      relative: 0.0 1.0;
8828                      offset: 64 0;
8829                   }
8830                }
8831             }
8832          }
8833          part {
8834             name: "shadow";
8835             mouse_events: 0;
8836             description {
8837                state: "default" 0.0;
8838                rel2.relative: 1.0 0.0;
8839                rel2.offset: -1 31;
8840                image.normal: "dia_topshad.png";
8841                fill {
8842                   smooth: 0;
8843                   size {
8844                      relative: 0.0 1.0;
8845                      offset: 64 0;
8846                   }
8847                }
8848             }
8849          }
8850          part {
8851             name: "shadow2";
8852             mouse_events: 0;
8853             description {
8854                state: "default" 0.0;
8855                rel1.relative: 0.0 1.0;
8856                rel1.offset: 0 -4;
8857                image.normal: "dia_botshad.png";
8858                fill {
8859                   smooth: 0;
8860                   size {
8861                      relative: 0.0 1.0;
8862                      offset: 64 0;
8863                   }
8864                }
8865             }
8866          }
8867          part {
8868             name: "separator";
8869             mouse_events: 0;
8870             description {
8871                state: "default" 0.0;
8872                min: 16 2;
8873                rel1 {
8874                   relative: 0.0  1.0;
8875                   offset: 4    -1;
8876                   to_y: "e.swallow.content";
8877                }
8878                rel2 {
8879                   relative: 1.0  1.0;
8880                   offset: -5   0;
8881                   to_y: "e.swallow.content";
8882                }
8883                image {
8884                   normal: "menu_sep.png";
8885                   border: 2 2 0 0;
8886                }
8887                fill.smooth: 0;
8888             }
8889          }
8890          part {
8891             name: "e.swallow.content";
8892             type: SWALLOW;
8893             description {
8894                state: "default" 0.0;
8895                align: 0.5 0.5;
8896                min: 100 200;
8897                rel1.offset: 2 2;
8898                rel2 {
8899                   relative: 1.0 0.0;
8900                   offset: -3 -5;
8901                   to_y: "e.swallow.button";
8902                }
8903             }
8904          }
8905          part {
8906             name: "e.swallow.button";
8907             type: SWALLOW;
8908             description {
8909                state: "default" 0.0;
8910                align: 0.5 1.0;
8911                fixed: 1 1;
8912                rel1.relative: 0.5 1.0;
8913                rel2.relative: 0.5 1.0;
8914             }
8915          }
8916       }
8917    }
8918
8919
8920 /////////////////////////////////////////////////////////////////////////////
8921 /*** MOVE/RESIZE BOX ***/
8922
8923    group {
8924       name: "e/widgets/border/default/move";
8925       images {
8926          image: "base_bg.png" COMP;
8927          image: "icon_win_move.png" COMP;
8928       }
8929       parts {
8930          part {
8931             name: "base";
8932             mouse_events: 0;
8933             description {
8934                state: "default" 0.0;
8935                image {
8936                   normal: "base_bg.png";
8937                   border: 2 2 2 2;
8938                }
8939                fill.smooth: 0;
8940             }
8941          }
8942          part {
8943             name: "icon";
8944             mouse_events: 0;
8945             description {
8946                state: "default" 0.0;
8947                align: 0.0 0.5;
8948                min: 21 21;
8949                max: 21 21;
8950                fixed: 1 1;
8951                rel1.offset: 2 2;
8952                rel2.relative: 0.0 1.0;
8953                rel2.offset: 2 -3;
8954                image.normal: "icon_win_move.png";
8955             }
8956          }
8957          part {
8958             name: "e.text.label";
8959             type: TEXT;
8960             scale: 1;
8961             description {
8962                state: "default" 0.0;
8963                rel1.to_x: "icon";
8964                rel1.offset: 2 4;
8965                rel1.relative: 1.0 0.0;
8966                rel2.offset: -5 -5;
8967                color_class: "move_text";
8968                text {
8969                   text: "X Y";
8970                   font: "Sans";
8971                   size: 10;
8972                   align: 0.5 0.5;
8973                   min: 1 1;
8974                   text_class: "move_text";
8975                }
8976             }
8977          }
8978       }
8979    }
8980    group {
8981       name: "e/widgets/border/default/resize";
8982       images {
8983          image: "base_bg.png" COMP;
8984          image: "icon_win_resize.png" COMP;
8985       }
8986       parts {
8987          part {
8988             name: "base";
8989             mouse_events: 0;
8990             description {
8991                state: "default" 0.0;
8992                align: 0.5 0.0;
8993                image {
8994                   normal: "base_bg.png";
8995                   border: 2 2 2 2;
8996                }
8997                fill.smooth: 0;
8998             }
8999          }
9000          part {
9001             name: "icon";
9002             mouse_events: 0;
9003             description {
9004                state: "default" 0.0;
9005                align: 0.0 0.5;
9006                min: 21 21;
9007                max: 21 21;
9008                fixed: 1 1;
9009                rel1.offset: 2 2;
9010                rel2.relative: 0.0 1.0;
9011                rel2.offset: 2 -3;
9012                image.normal: "icon_win_resize.png";
9013             }
9014          }
9015          part {
9016             name: "e.text.label";
9017             type: TEXT;
9018             scale: 1;
9019             description {
9020                state: "default" 0.0;
9021                rel1.to_x: "icon";
9022                rel1.offset: 2 4;
9023                rel1.relative: 1.0 0.0;
9024                rel2.offset: -5 -5;
9025                color_class: "resize_text";
9026                text {
9027                   text: "WxH";
9028                   font: "Sans";
9029                   size: 10;
9030                   align: 0.5 0.5;
9031                   min: 1 1;
9032                   text_class: "resize_text";
9033                }
9034             }
9035          }
9036       }
9037    }
9038
9039
9040 /////////////////////////////////////////////////////////////////////////////
9041 /*** WIDGETS ***/
9042
9043    group {
9044       name: "e/widgets/check";
9045       images {
9046          image: "check_base.png" COMP;
9047          image: "check_on.png" COMP;
9048          image: "check_sel.png" COMP;
9049       }
9050       parts {
9051          part {
9052             name: "base";
9053             mouse_events: 0;
9054             scale: 1;
9055             description {
9056                state: "default" 0.0;
9057                min: 16 16;
9058                max: 16 16;
9059                align: 0.0 0.5;
9060                fixed: 1 1;
9061                rel1 {
9062                   relative: 0.0  0.0;
9063                   offset: 2    2;
9064                }
9065                rel2 {
9066                   relative: 0.0  1.0;
9067                   offset: 2   -3;
9068                }
9069                image.normal: "check_base.png";
9070             }
9071          }
9072          part {
9073             name: "mark";
9074             mouse_events: 0;
9075             clip_to: "mark_hold";
9076             description {
9077                state: "default" 0.0;
9078                rel1.to: "mark_hold";
9079                rel2.to: "mark_hold";
9080                image.normal: "check_on.png";
9081             }
9082             description {
9083                state: "selected" 0.0;
9084                inherit: "default" 0.0;
9085                image.normal: "check_sel.png";
9086             }
9087             description {
9088                state: "disabled" 0.0;
9089                inherit: "default" 0.0;
9090                color: 255 255 255 128;
9091             }
9092          }
9093          part {
9094             name: "mark_hold";
9095             type: RECT;
9096             mouse_events: 0;
9097             description {
9098                state: "default" 0.0;
9099                visible: 0;
9100                color: 255 255 255 0;
9101                rel1 {
9102                   to: "base";
9103                   offset: -5 -5;
9104                }
9105                rel2 {
9106                   to: "base";
9107                   offset: 4 4;
9108                }
9109             }
9110             description {
9111                state: "on" 0.0;
9112                inherit: "default" 0.0;
9113                visible: 1;
9114                color: 255 255 255 255;
9115                rel1.offset: 0 0;
9116                rel2.offset: -1 -1;
9117             }
9118          }
9119          part {
9120             name: "e.text.label";
9121             type: TEXT;
9122             mouse_events: 0;
9123             scale: 1;
9124             description {
9125                state: "default" 0.0;
9126                min: 16 16;
9127                rel1 {
9128                   to_x: "base";
9129                   relative: 1.0  0.0;
9130                   offset: 2 2;
9131                }
9132                rel2 {
9133                   relative: 1.0  1.0;
9134                   offset: -2 -2;
9135                }
9136                color_class: "check_text";
9137                text {
9138                   font: "Sans";
9139                   size: 10;
9140                   min: 1 1;
9141                   align: 0.0 0.5;
9142                   text_class: "check_button";
9143                }
9144             }
9145             description {
9146                state: "disabled" 0.0;
9147                inherit: "default" 0.0;
9148                color_class: "check_text_disabled";
9149             }
9150          }
9151          part {
9152             name: "event";
9153             type: RECT;
9154             ignore_flags: ON_HOLD;
9155             description {
9156                state: "default" 0.0;
9157                color: 0 0 0 0;
9158             }
9159             description {
9160                state: "disabled" 0.0;
9161                inherit: "default" 0.0;
9162                visible: 0;
9163             }
9164          }
9165       }
9166       programs {
9167          program {
9168             name: "on";
9169             /* if the checkmark is to be displayed */
9170             signal: "e,state,checked";
9171             source: "e";
9172             action: STATE_SET "on" 0.0;
9173             transition: LINEAR 0.15;
9174             target: "mark_hold";
9175          }
9176          program {
9177             name: "off";
9178             /* check mark is not to be displayed */
9179             signal: "e,state,unchecked";
9180             source: "e";
9181             action: STATE_SET "default" 0.0;
9182             transition: LINEAR 0.2;
9183             target: "mark_hold";
9184          }
9185          program {
9186             name: "click";
9187             signal: "mouse,up,1";
9188             source: "event";
9189             action: SIGNAL_EMIT "e,action,toggle" "";
9190          }
9191          program {
9192             name: "disable";
9193             signal: "e,state,disabled";
9194             source: "e";
9195             action: STATE_SET "disabled" 0.0;
9196             target: "mark";
9197             target: "event";
9198             target: "e.text.label";
9199          }
9200          program {
9201             name: "enable";
9202             signal: "e,state,enabled";
9203             source: "e";
9204             action: STATE_SET "default" 0.0;
9205             target: "mark";
9206             target: "event";
9207             target: "e.text.label";
9208          }
9209       }
9210    }
9211    group {
9212       name: "e/widgets/check_icon";
9213       images {
9214          image: "check_base.png" COMP;
9215          image: "check_on.png" COMP;
9216          image: "check_sel.png" COMP;
9217       }
9218       parts {
9219          part {
9220             name: "base";
9221             mouse_events: 0;
9222             scale: 1;
9223             description {
9224                state: "default" 0.0;
9225                min: 16 16;
9226                max: 16 16;
9227                align: 0.0 0.5;
9228                fixed: 1 1;
9229                rel1 {
9230                   relative: 0.0  0.0;
9231                   offset: 2    2;
9232                }
9233                rel2 {
9234                   relative: 0.0  1.0;
9235                   offset: 2   -3;
9236                }
9237                image.normal: "check_base.png";
9238             }
9239          }
9240          part {
9241             name: "mark";
9242             mouse_events: 0;
9243             clip_to: "mark_hold";
9244             description {
9245                state: "default" 0.0;
9246                rel1.to: "mark_hold";
9247                rel2.to: "mark_hold";
9248                image.normal: "check_on.png";
9249             }
9250             description {
9251                state: "selected" 0.0;
9252                inherit: "default" 0.0;
9253                image.normal: "check_sel.png";
9254             }
9255             description {
9256                state: "disabled" 0.0;
9257                inherit: "default" 0.0;
9258                color: 255 255 255 128;
9259             }
9260          }
9261          part {
9262             name: "mark_hold";
9263             type: RECT;
9264             mouse_events: 0;
9265             description {
9266                state: "default" 0.0;
9267                visible: 0;
9268                color: 255 255 255 0;
9269                rel1 {
9270                   to: "base";
9271                   offset: -5 -5;
9272                }
9273                rel2 {
9274                   to: "base";
9275                   offset: 4 4;
9276                }
9277             }
9278             description {
9279                state: "on" 0.0;
9280                inherit: "default" 0.0;
9281                visible: 1;
9282                color: 255 255 255 255;
9283                rel1.offset: 0 0;
9284                rel2.offset: -1 -1;
9285             }
9286          }
9287          part {
9288             name: "e.swallow.icon";
9289             type: SWALLOW;
9290             clip_to: "icon_clip";
9291             description {
9292                state: "default" 0.0;
9293                min: 16 16;
9294                rel1 {
9295                   to_x: "base";
9296                   relative: 1.0  0.0;
9297                   offset: 2 2;
9298                }
9299                rel2 {
9300                   relative: 1.0  1.0;
9301                   offset: -2 -2;
9302                }
9303             }
9304             description {
9305                state: "label_visible" 0.0;
9306                inherit: "default" 0.0;
9307                min: 16 16;
9308                rel2 {
9309                   to_y: "base";
9310                   relative: 1.0  0.0;
9311                   offset: -2 -2;
9312                }
9313             }
9314          }
9315          part {
9316             name: "icon_clip";
9317             type: RECT;
9318             mouse_events: 0;
9319             description {
9320                state: "default" 0.0;
9321                color: 255 255 255 255;
9322             }
9323          }
9324          part {
9325             name: "label_clip";
9326             type: RECT;
9327             mouse_events: 0;
9328             description {
9329                state: "default" 0.0;
9330                visible: 0;
9331             }
9332             description {
9333                state: "label_visible" 0.0;
9334                visible: 1;
9335             }
9336          }
9337          part {
9338             name: "e.text.label";
9339             type: TEXT;
9340             mouse_events: 0;
9341             scale: 1;
9342             clip_to: "label_clip";
9343             description {
9344                state: "default" 0.0;
9345                min: 16 16;
9346                rel1 {
9347                   to_x: "base";
9348                   relative: 1.0  0.0;
9349                   offset: 2 2;
9350                }
9351                rel2 {
9352                   relative: 1.0  1.0;
9353                   offset: -2 -2;
9354                }
9355                color_class: "check_text";
9356                text {
9357                   font: "Sans";
9358                   size: 10;
9359                   min: 1 1;
9360                   align: 0.5 0.5;
9361                   text_class: "check_button";
9362                }
9363             }
9364             description {
9365                state: "disabled" 0.0;
9366                inherit: "default" 0.0;
9367                color_class: "check_text_disabled";
9368             }
9369          }
9370          part {
9371             name: "event";
9372             type: RECT;
9373             ignore_flags: ON_HOLD;
9374             description {
9375                state: "default" 0.0;
9376                color: 0 0 0 0;
9377             }
9378             description {
9379                state: "disabled" 0.0;
9380                inherit: "default" 0.0;
9381                visible: 0;
9382             }
9383          }
9384       }
9385       programs {
9386          program {
9387             name: "on";
9388             /* if the checkmark is to be displayed */
9389             signal: "e,state,checked";
9390             source: "e";
9391             action: STATE_SET "on" 0.0;
9392             transition: LINEAR 0.15;
9393             target: "mark_hold";
9394          }
9395          program {
9396             name: "off";
9397             /* check mark is not to be displayed */
9398             signal: "e,state,unchecked";
9399             source: "e";
9400             action: STATE_SET "default" 0.0;
9401             transition: LINEAR 0.2;
9402             target: "mark_hold";
9403          }
9404          program {
9405             name: "click";
9406             signal: "mouse,up,1";
9407             source: "event";
9408             action: SIGNAL_EMIT "e,action,toggle" "";
9409          }
9410          program {
9411             name: "label_on";
9412             signal: "e,state,labeled";
9413             source: "e";
9414             action: STATE_SET "label_visible" 0.0;
9415             target: "e.swallow.icon";
9416             target: "label_clip";
9417          }
9418          program {
9419             name: "disable";
9420             signal: "e,state,disabled";
9421             source: "e";
9422             action: STATE_SET "disabled" 0.0;
9423             target: "mark";
9424             target: "event";
9425             target: "e.text.label";
9426          }
9427          program {
9428             name: "enable";
9429             signal: "e,state,enabled";
9430             source: "e";
9431             action: STATE_SET "default" 0.0;
9432             target: "mark";
9433             target: "event";
9434             target: "e.text.label";
9435          }
9436       }
9437    }
9438    /* for a radio menu item - same as check, but only one of a group of radio
9439     * menu item can be selected at any one time */
9440    group {
9441       name: "e/widgets/radio";
9442       images {
9443          image: "radio_base.png" COMP;
9444          image: "radio_on.png" COMP;
9445          image: "radio_sel.png" COMP;
9446       }
9447       parts {
9448          part {
9449             name: "base";
9450             mouse_events: 0;
9451             scale: 1;
9452             description {
9453                state: "default" 0.0;
9454                min: 16 16;
9455                max: 16 16;
9456                align: 0.0 0.5;
9457                fixed: 1 1;
9458                rel1 {
9459                   relative: 0.0  0.0;
9460                   offset: 2    2;
9461                }
9462                rel2 {
9463                   relative: 0.0  1.0;
9464                   offset: 2   -3;
9465                }
9466                image.normal: "radio_base.png";
9467             }
9468          }
9469          part {
9470             name: "mark";
9471             mouse_events: 0;
9472             clip_to: "mark_hold";
9473             description {
9474                state: "default" 0.0;
9475                rel1.to: "mark_hold";
9476                rel2.to: "mark_hold";
9477                image.normal: "radio_on.png";
9478             }
9479             description {
9480                state: "selected" 0.0;
9481                inherit: "default" 0.0;
9482                image.normal: "radio_sel.png";
9483             }
9484             description {
9485                state: "disabled" 0.0;
9486                inherit: "default" 0.0;
9487                color: 255 255 255 128;
9488             }
9489          }
9490          part {
9491             name: "mark_hold";
9492             type: RECT;
9493             mouse_events: 0;
9494             description {
9495                state: "default" 0.0;
9496                visible: 0;
9497                color: 255 255 255 0;
9498                rel1 {
9499                   to: "base";
9500                   offset: -5 -5;
9501                }
9502                rel2 {
9503                   to: "base";
9504                   offset: 4 4;
9505                }
9506             }
9507             description {
9508                state: "on" 0.0;
9509                inherit: "default" 0.0;
9510                visible: 1;
9511                color: 255 255 255 255;
9512                rel1.offset: 0 0;
9513                rel2.offset: -1 -1;
9514             }
9515          }
9516          part {
9517             name: "e.text.label";
9518             type: TEXT;
9519             mouse_events: 0;
9520             scale: 1;
9521             description {
9522                state: "default" 0.0;
9523                min: 16 16;
9524                rel1 {
9525                   to_x: "base";
9526                   relative: 1.0  0.0;
9527                   offset: 2 2;
9528                }
9529                rel2 {
9530                   relative: 1.0  1.0;
9531                   offset: -2 -2;
9532                }
9533                color_class: "radio_text";
9534                text {
9535                   font: "Sans";
9536                   size: 10;
9537                   min: 1 1;
9538                   align: 0.0 0.5;
9539                   text_class: "radio_button";
9540                }
9541             }
9542             description {
9543                state: "disabled" 0.0;
9544                inherit: "default" 0.0;
9545                color_class: "radio_text_disabled";
9546             }
9547          }
9548          part {
9549             name: "event";
9550             type: RECT;
9551             ignore_flags: ON_HOLD;
9552             description {
9553                state: "default" 0.0;
9554                color: 0 0 0 0;
9555             }
9556             description {
9557                state: "disabled" 0.0;
9558                inherit: "default" 0.0;
9559                visible: 0;
9560             }
9561          }
9562       }
9563       programs {
9564          program {
9565             name: "on";
9566             /* if the checkmark is to be displayed */
9567             signal: "e,state,on";
9568             source: "e";
9569             action: STATE_SET "on" 0.0;
9570             transition: LINEAR 0.15;
9571             target: "mark_hold";
9572          }
9573          program {
9574             name: "off";
9575             /* check mark is not to be displayed */
9576             signal: "e,state,off";
9577             source: "e";
9578             action: STATE_SET "default" 0.0;
9579             transition: LINEAR 0.2;
9580             target: "mark_hold";
9581          }
9582          program {
9583             name: "click";
9584             signal: "mouse,up,1";
9585             source: "event";
9586             action: SIGNAL_EMIT "e,action,toggle" "";
9587          }
9588          program {
9589             name: "disable";
9590             signal: "e,state,disabled";
9591             source: "e";
9592             action: STATE_SET "disabled" 0.0;
9593             target: "mark";
9594             target: "event";
9595             target: "e.text.label";
9596          }
9597          program {
9598             name: "enable";
9599             signal: "e,state,enabled";
9600             source: "e";
9601             action: STATE_SET "default" 0.0;
9602             target: "mark";
9603             target: "event";
9604             target: "e.text.label";
9605          }
9606       }
9607    }
9608    group {
9609       name: "e/widgets/radio_icon";
9610       images {
9611          image: "radio_base.png" COMP;
9612          image: "radio_on.png" COMP;
9613          image: "radio_sel.png" COMP;
9614       }
9615       parts {
9616          part {
9617             name: "base";
9618             mouse_events: 0;
9619             scale: 1;
9620             description {
9621                state: "default" 0.0;
9622                min: 16 16;
9623                max: 16 16;
9624                align: 0.0 0.5;
9625                fixed: 1 1;
9626                rel1 {
9627                   relative: 0.0  0.0;
9628                   offset: 2    2;
9629                }
9630                rel2 {
9631                   relative: 0.0  1.0;
9632                   offset: 2   -3;
9633                }
9634                image.normal: "radio_base.png";
9635             }
9636          }
9637          part {
9638             name: "mark";
9639             mouse_events: 0;
9640             clip_to: "mark_hold";
9641             description {
9642                state: "default" 0.0;
9643                rel1.to: "mark_hold";
9644                rel2.to: "mark_hold";
9645                image.normal: "radio_on.png";
9646             }
9647             description {
9648                state: "selected" 0.0;
9649                inherit: "default" 0.0;
9650                image.normal: "radio_sel.png";
9651             }
9652             description {
9653                state: "disabled" 0.0;
9654                inherit: "default" 0.0;
9655                color: 255 255 255 128;
9656             }
9657          }
9658          part {
9659             name: "mark_hold";
9660             type: RECT;
9661             mouse_events: 0;
9662             description {
9663                state: "default" 0.0;
9664                visible: 0;
9665                color: 255 255 255 0;
9666                rel1 {
9667                   to: "base";
9668                   offset: -5 -5;
9669                }
9670                rel2 {
9671                   to: "base";
9672                   offset: 4 4;
9673                }
9674             }
9675             description {
9676                state: "on" 0.0;
9677                inherit: "default" 0.0;
9678                visible: 1;
9679                color: 255 255 255 255;
9680                rel1.offset: 0 0;
9681                rel2.offset: -1 -1;
9682             }
9683          }
9684          part {
9685             name: "e.swallow.icon";
9686             type: SWALLOW;
9687             clip_to: "icon_clip";
9688             description {
9689                state: "default" 0.0;
9690                min: 16 16;
9691                rel1 {
9692                   to_x: "base";
9693                   relative: 1.0  0.0;
9694                   offset: 2 2;
9695                }
9696                rel2 {
9697                   relative: 1.0  1.0;
9698                   offset: -2 -2;
9699                }
9700             }
9701             description {
9702                state: "label_visible" 0.0;
9703                inherit: "default" 0.0;
9704                min: 16 16;
9705                rel2 {
9706                   to_y: "e.text.label";
9707                   relative: 1.0  0.0;
9708                   offset: -2 -2;
9709                }
9710             }
9711          }
9712          part {
9713             name: "icon_clip";
9714             type: RECT;
9715             mouse_events: 0;
9716             description {
9717                state: "default" 0.0;
9718                color: 255 255 255 255;
9719             }
9720          }
9721          part {
9722             name: "label_clip";
9723             type: RECT;
9724             mouse_events: 0;
9725             description {
9726                state: "default" 0.0;
9727                visible: 0;
9728             }
9729             description {
9730                state: "label_visible" 0.0;
9731                visible: 1;
9732             }
9733          }
9734          part {
9735             name: "e.text.label";
9736             type: TEXT;
9737             mouse_events: 0;
9738             scale: 1;
9739             clip_to: "label_clip";
9740             description {
9741                state: "default" 0.0;
9742                min: 16 16;
9743                rel1 {
9744                   to_x: "base";
9745                   relative: 1.0  0.5;
9746                   offset: 2 1;
9747                }
9748                rel2 {
9749                   relative: 1.0  1.0;
9750                   offset: -2 -2;
9751                }
9752                color_class: "radio_text";
9753                text {
9754                   font: "Sans";
9755                   size: 10;
9756                   min: 1 1;
9757                   align: 0.5 0.5;
9758                   text_class: "radio_button";
9759                }
9760             }
9761             description {
9762                state: "disabled" 0.0;
9763                inherit: "default" 0.0;
9764                color_class: "radio_text_disabled";
9765             }
9766          }
9767          part {
9768             name: "event";
9769             type: RECT;
9770             ignore_flags: ON_HOLD;
9771             description {
9772                state: "default" 0.0;
9773                color: 0 0 0 0;
9774             }
9775             description {
9776                state: "disabled" 0.0;
9777                inherit: "default" 0.0;
9778                visible: 0;
9779             }
9780          }
9781       }
9782       programs {
9783          program {
9784             name: "on";
9785             /* if the radiomark is to be displayed */
9786             signal: "e,state,on";
9787             source: "e";
9788             action: STATE_SET "on" 0.0;
9789             transition: LINEAR 0.15;
9790             target: "mark_hold";
9791          }
9792          program {
9793             name: "off";
9794             /* radio mark is not to be displayed */
9795             signal: "e,state,off";
9796             source: "e";
9797             action: STATE_SET "default" 0.0;
9798             transition: LINEAR 0.2;
9799             target: "mark_hold";
9800          }
9801          program {
9802             name: "click";
9803             signal: "mouse,up,1";
9804             source: "event";
9805             action: SIGNAL_EMIT "e,action,toggle" "";
9806          }
9807          program {
9808             name: "label_on";
9809             signal: "e,state,labeled";
9810             source: "e";
9811             action: STATE_SET "label_visible" 0.0;
9812             target: "e.swallow.icon";
9813             target: "label_clip";
9814          }
9815          program {
9816             name: "disable";
9817             signal: "e,state,disabled";
9818             source: "e";
9819             action: STATE_SET "disabled" 0.0;
9820             target: "mark";
9821             target: "event";
9822             target: "e.text.label";
9823          }
9824          program {
9825             name: "enable";
9826             signal: "e,state,enabled";
9827             source: "e";
9828             action: STATE_SET "default" 0.0;
9829             target: "mark";
9830             target: "event";
9831             target: "e.text.label";
9832          }
9833       }
9834    }
9835    group {
9836       name: "e/widgets/button";
9837       images {
9838          image: "bt_base1.png" COMP;
9839          image: "bt_base2.png" COMP;
9840          image: "bt_hilight.png" COMP;
9841          image: "bt_shine.png" COMP;
9842          image: "bt_glow.png" COMP;
9843          image: "bt_dis_base.png" COMP;
9844          image: "bt_dis_hilight.png" COMP;
9845       }
9846       parts {
9847          part {
9848             name: "button_image";
9849             mouse_events: 1;
9850             description {
9851                state: "default" 0.0;
9852                min: 32 16;
9853                image {
9854                   normal: "bt_base2.png";
9855                   border: 7 7 7 7;
9856                }
9857             }
9858             description {
9859                state: "clicked" 0.0;
9860                inherit: "default" 0.0;
9861                image.normal: "bt_base1.png";
9862             }
9863             description {
9864                state: "disabled" 0.0;
9865                inherit: "default" 0.0;
9866                image {
9867                   normal: "bt_dis_base.png";
9868                   border: 4 4 4 4;
9869                }
9870             }
9871          }
9872          part {
9873             name: "e.swallow.icon";
9874             type: SWALLOW;
9875             mouse_events: 0;
9876             description {
9877                state: "default" 0.0;
9878                align: 0.0 0.5;
9879                rel1 {
9880                   relative: 0.0 0.0;
9881                   offset: 3   3;
9882                   to: "button_image";
9883                }
9884                rel2 {
9885                   relative: 0.0 1.0;
9886                   offset: 3  -4;
9887                   to: "button_image";
9888                }
9889             }
9890             description {
9891                state: "combo" 0.0;
9892                inherit: "default" 0.0;
9893                aspect: 1.0 1.0;
9894                aspect_preference: VERTICAL;
9895                align: 0.0 0.5;
9896                rel1 {
9897                   relative: 0.0 0.0;
9898                   offset: 3  3;
9899                   to: "button_image";
9900                }
9901                rel2 {
9902                   relative: 0.0 1.0;
9903                   offset: 3   -4;
9904                   to: "button_image";
9905                }
9906             }
9907             description {
9908                state: "icon" 0.0;
9909                inherit: "default" 0.0;
9910                aspect: 1.0 1.0;
9911                aspect_preference: BOTH;
9912                align: 0.5 0.5;
9913                rel1 {
9914                   relative: 0.0 0.0;
9915                   offset: 3  3;
9916                   to: "button_image";
9917                }
9918                rel2 {
9919                   relative: 1.0 1.0;
9920                   offset: -4   -4;
9921                   to: "button_image";
9922                }
9923             }
9924          }
9925          part {
9926             name: "e.text.label";
9927             type: TEXT;
9928             effect: SOFT_SHADOW;
9929             mouse_events: 0;
9930             scale: 1;
9931             description {
9932                state: "default" 0.0;
9933                rel1 {
9934                   relative: 1.0  0.0;
9935                   offset: 2    3;
9936                   to_x: "e.swallow.icon";
9937                   to_y: "button_image";
9938                }
9939                rel2 {
9940                   relative: 1.0  1.0;
9941                   offset: -4   -4;
9942                   to: "button_image";
9943                }
9944                color_class: "button_text";
9945                text {
9946                   font: "Sans";
9947                   size: 10;
9948                   min: 1 1;
9949                   align: 0.5 0.5;
9950                   text_class: "button";
9951                }
9952             }
9953             description {
9954                state: "disabled" 0.0;
9955                inherit: "default" 0.0;
9956                color_class: "button_text_disabled";
9957             }
9958             description {
9959                state: "icon" 0.0;
9960                inherit: "default" 0.0;
9961                visible: 0;
9962             }
9963          }
9964          part {
9965             name: "over1";
9966             mouse_events: 0;
9967             description {
9968                state: "default" 0.0;
9969                rel2.relative: 1.0 0.5;
9970                image {
9971                   normal: "bt_hilight.png";
9972                   border: 7 7 7 0;
9973                }
9974             }
9975             description {
9976                state: "disabled" 0.0;
9977                inherit: "default" 0.0;
9978                image {
9979                   normal: "bt_dis_hilight.png";
9980                   border: 4 4 4 0;
9981                }
9982             }
9983          }
9984          part {
9985             name: "over2";
9986             mouse_events: 0;
9987             description {
9988                state: "default" 0.0;
9989                image {
9990                   normal: "bt_shine.png";
9991                   border: 7 7 7 7;
9992                }
9993             }
9994             description {
9995                state: "disabled" 0.0;
9996                inherit: "default" 0.0;
9997                visible: 0;
9998             }
9999          }
10000          part {
10001             name: "over3";
10002             mouse_events: 0;
10003             description {
10004                state: "default" 0.0;
10005                visible: 0;
10006                color: 255 255 255 0;
10007                image {
10008                   normal: "bt_glow.png";
10009                   border: 7 7 9 9;
10010                }
10011                fill.smooth : 0;
10012             }
10013             description {
10014                state: "clicked" 0.0;
10015                inherit: "default" 0.0;
10016                visible: 1;
10017                color: 255 255 255 255;
10018             }
10019          }
10020          part {
10021             name: "disabler";
10022             type: RECT;
10023             description {
10024                state: "default" 0.0;
10025                color: 0 0 0 0;
10026                visible: 0;
10027             }
10028             description {
10029                state: "disabled" 0.0;
10030                inherit: "default" 0.0;
10031                visible: 1;
10032             }
10033          }
10034       }
10035       programs {
10036          program {
10037             name: "button_click";
10038             signal: "mouse,down,1";
10039             source: "button_image";
10040             action: STATE_SET "clicked" 0.0;
10041             target: "button_image";
10042             target: "over3";
10043          }
10044          program {
10045             name: "button_unclick";
10046             signal: "mouse,up,1";
10047             source: "button_image";
10048             action: STATE_SET "default" 0.0;
10049             target: "button_image";
10050             target: "over3";
10051          }
10052          program {
10053             name: "button_unclick2";
10054             signal: "mouse,clicked,1";
10055             source: "button_image";
10056             action: SIGNAL_EMIT "e,action,click" "";
10057          }
10058          program {
10059             name: "text_state";
10060             signal: "e,state,text";
10061             source: "e";
10062             action: STATE_SET "default" 0.0;
10063             target: "e.swallow.icon";
10064             target: "e.text.label";
10065          }
10066          program {
10067             name: "icon_state";
10068             signal: "e,state,icon";
10069             source: "e";
10070             action: STATE_SET "icon" 0.0;
10071             target: "e.swallow.icon";
10072             target: "e.text.label";
10073          }
10074          program {
10075             name: "combo_state";
10076             signal: "e,state,combo";
10077             source: "e";
10078             action: STATE_SET "combo" 0.0;
10079             target: "e.swallow.icon";
10080             target: "e.text.label";
10081          }
10082          program {
10083             name: "disable";
10084             signal: "e,state,disabled";
10085             source: "e";
10086             action: STATE_SET "disabled" 0.0;
10087             target: "button_image";
10088             target: "over1";
10089             target: "e.text.label";
10090             target: "disabler";
10091          }
10092          program {
10093             name: "enable";
10094             signal: "e,state,enabled";
10095             source: "e";
10096             action: STATE_SET "default" 0.0;
10097             target: "button_image";
10098             target: "over1";
10099             target: "e.text.label";
10100             target: "disabler";
10101          }
10102       }
10103    }
10104    /* e/widgets/scrollframe is used in the Wallpaper selector dialog */
10105    group {
10106       name: "e/widgets/scrollframe";
10107       images {
10108          image: "added_images/e17_ibar_bg_v.png" COMP;
10109          image: "added_images/e17_ibar_over_v.png" COMP;
10110          image: "added_images/e17_scrollbar_hdrag_thumb.png" COMP;
10111          image: "added_images/e17_scrollbar_vdrag_thumb.png" COMP;
10112          image: "added_images/focus.png" COMP;
10113          image: "sb_thumb.png" COMP;
10114          image: "added_images/DM_Internet_Scroll_01.png" COMP;
10115          image: "added_images/DM_Internet_Scroll_h_01.png" COMP;
10116          image: "added_images/DM_Internet_Scroll_Up.png" COMP;
10117          image: "added_images/DM_Internet_Scroll_Middle.png" COMP;
10118          image: "added_images/DM_Internet_Scroll_Down.png" COMP;
10119          image: "added_images/DM_Internet_Scroll_Left_h.png" COMP;
10120          image: "added_images/DM_Internet_Scroll_Middle_h.png" COMP;
10121          image: "added_images/DM_Internet_Scroll_Right_h.png" COMP;
10122          image: "added_images/DM_Internet_Scroll_Increase.png" COMP;
10123       }
10124       parts {
10125          part {
10126             name: "bg";
10127             mouse_events:  0;
10128             description {
10129                state: "default" 0.0;
10130                image {
10131                   normal: "added_images/e17_ibar_bg_v.png";
10132                   border: 7 7 7 7;
10133                }
10134                fill {
10135                   smooth : 0;
10136                }
10137             }
10138          }
10139          part {
10140             name: "clipper";
10141             type: RECT;
10142             mouse_events: 0;
10143             description {
10144                state: "default" 0.0;
10145                rel1 {
10146                   to: "bg";
10147                   offset: 4 4;
10148                }
10149                rel2 {
10150                   to: "bg";
10151                   offset: -5  -5;
10152                }
10153             }
10154          }
10155          part {
10156             name: "e.swallow.content";
10157             clip_to: "clipper";
10158             type: SWALLOW;
10159             description {
10160                state: "default" 0.0;
10161                rel1 {
10162                   offset: 4 4;
10163                }
10164               rel2 {
10165                   relative: 0.0  0.0;
10166                   offset: -1   -1;
10167                   to_x: "sb_vbar";
10168                   to_y: "sb_hbar";
10169               }
10170             }
10171          }
10172          part {
10173             name: "conf_over";
10174             mouse_events: 0;
10175             description {
10176                state: "default" 0.0;
10177                rel1 {
10178                   to: "bg";
10179                }
10180                rel2 {
10181                   to: "bg";
10182                }
10183                image {
10184                   normal: "added_images/e17_ibar_over_v.png";
10185                   border: 13 13 13 13;
10186                   middle: 0;
10187                }
10188                fill {
10189                   smooth : 0;
10190                }
10191             }
10192          }
10193          part {
10194             name: "sb_vbar";
10195             type: RECT;
10196             mouse_events: 0;
10197             description {
10198                state: "default" 0.0;
10199                min: 16 16;
10200                align: 1.0 0.0;
10201                rel1 {
10202                   to: "bg";
10203                   relative: 1.0 0.0;
10204                   offset: -5 4;
10205                }
10206                rel2 {
10207                   to: "bg";
10208                   relative: 1.0 0.0;
10209                   offset: -5 -1;
10210                   to_y: "sb_hbar";
10211                }
10212             }
10213             description {
10214                state: "hidden" 0.0;
10215                visible: 0;
10216                max: 0 99999;
10217                rel1 {
10218                   to: "bg";
10219                   relative: 1.0 0.0;
10220                   offset: -4 4;
10221                }
10222                rel2 {
10223                   to: "bg";
10224                   relative: 1.0 0.0;
10225                   offset: -4 -1;
10226                   to_y: "sb_hbar";
10227                }
10228             }
10229          }
10230          part {
10231             name: "sb_vbar_base";
10232             type: RECT;
10233             clip_to: "sb_vbar";
10234             mouse_events: 1;
10235             description {
10236                state: "default" 0.0;
10237                color: 0 0 0 0;
10238                rel1 {
10239                   relative: 0.0  1.0;
10240                   offset: 0    0;
10241                   to: "sb_vbar_a1";
10242                }
10243                rel2 {
10244                   relative: 1.0  0.0;
10245                   offset: -1   -1;
10246                   to: "sb_vbar_a2";
10247                }
10248             }
10249          }
10250          part {
10251             name: "sb_vbar_runner";
10252             clip_to: "sb_vbar";
10253             mouse_events: 0;
10254             description {
10255                state: "default" 0.0;
10256                rel1 {
10257                   to: "sb_vbar_base";
10258                }
10259                rel2 {
10260                   to: "sb_vbar_base";
10261                }
10262                image {
10263                   normal: "added_images/DM_Internet_Scroll_Middle.png";
10264                }
10265                fill {
10266                   smooth: 0;
10267                }
10268             }
10269          }
10270          part {
10271             name: "sb_vbar_p1";
10272             type: RECT;
10273             clip_to: "sb_vbar";
10274             mouse_events: 1;
10275             description {
10276                state: "default" 0.0;
10277                color: 0 0 0 0;
10278                rel1 {
10279                   relative: 0.0 1.0;
10280                   offset:   0   0;
10281                   to: "sb_vbar_a1";
10282                }
10283                rel2 {
10284                   relative: 1.0 0.0;
10285                   offset:   -1  -1;
10286                   to: "e.dragable.vbar";
10287                }
10288             }
10289          }
10290          part {
10291             name: "sb_vbar_p2";
10292             type: RECT;
10293             clip_to: "sb_vbar";
10294             mouse_events: 1;
10295             description {
10296                state: "default" 0.0;
10297                color: 0 0 0 0;
10298                rel1 {
10299                   relative: 0.0 1.0;
10300                   offset:   0   0;
10301                   to: "e.dragable.vbar";
10302                }
10303                rel2 {
10304                   relative: 1.0 0.0;
10305                   offset:   -1  -1;
10306                   to: "sb_vbar_a2";
10307                }
10308             }
10309          }
10310          part {
10311             name: "e.dragable.vbar";
10312             clip_to: "sb_vbar";
10313             mouse_events: 1;
10314             dragable {
10315                x: 0 0 0;
10316                y: 1 1 0;
10317                confine: "sb_vbar_base";
10318             }
10319             description {
10320                state: "default" 0.0;
10321                min: 16 16;
10322                rel1 {
10323                   relative: 0.5  0.5;
10324                   offset: 0    0;
10325                   to: "sb_vbar_base";
10326                }
10327                rel2 {
10328                   relative: 0.5  0.5;
10329                   offset: 0    0;
10330                   to: "sb_vbar_base";
10331                }
10332                image {
10333                   normal: "added_images/DM_Internet_Scroll_01.png";
10334                   border: 5 5 5 5;
10335                }
10336             }
10337             description {
10338                state: "clicked" 0.0;
10339                inherit: "default" 0.0;
10340                image {
10341                   normal: "added_images/DM_Internet_Scroll_01.png";
10342                }
10343             }
10344          }
10345          part {
10346             name: "vbar_bar_thumb";
10347             clip_to: "sb_vbar";
10348             mouse_events: 0;
10349             description {
10350                state: "default" 0.0;
10351                max: 8 8;
10352                min: 8 8;
10353                rel1 {
10354                   to: "e.dragable.vbar";
10355                }
10356                rel2 {
10357                   to: "e.dragable.vbar";
10358                }
10359                image {
10360                   normal: "added_images/e17_scrollbar_vdrag_thumb.png";
10361                }
10362             }
10363          }
10364          part {
10365             name: "sb_vbar_a1";
10366             type: IMAGE;
10367             mouse_events: 1;
10368             clip_to: "sb_vbar";
10369             description {
10370                state: "default" 0.0;
10371                align: 0.5 0.0;
10372                aspect: 1.0 1.0;
10373                aspect_preference: HORIZONTAL;
10374                rel1 {
10375                   to: "sb_vbar";
10376                   relative: 0.0  0.0;
10377                   offset: 0    0;
10378                }
10379                rel2 {
10380                   to: "sb_vbar";
10381                   relative: 1.0  0.0;
10382                   offset: -1   0;
10383                }
10384                image {
10385                   normal: "added_images/DM_Internet_Scroll_Up.png";
10386                }
10387             }
10388             description {
10389                state: "clicked" 0.0;
10390                inherit: "default" 0.0;
10391                image {
10392                   normal: "added_images/DM_Internet_Scroll_Up.png";
10393                }
10394             }
10395          }
10396          part {
10397             name: "sb_vbar_a2";
10398             type: IMAGE;
10399             mouse_events: 1;
10400             clip_to: "sb_vbar";
10401             description {
10402                state: "default" 0.0;
10403                align: 0.5 1.0;
10404                aspect: 1.0 1.0;
10405                aspect_preference: HORIZONTAL;
10406                rel1 {
10407                   to: "sb_vbar";
10408                   relative: 0.0  1.0;
10409                   offset:   0    -1;
10410                }
10411                rel2 {
10412                   to: "sb_vbar";
10413                   relative: 1.0  1.0;
10414                   offset:   -1   -1;
10415                }
10416                image {
10417                   normal: "added_images/DM_Internet_Scroll_Down.png";
10418                }
10419             }
10420             description {
10421                state: "clicked" 0.0;
10422                inherit: "default" 0.0;
10423                image {
10424                   normal: "added_images/DM_Internet_Scroll_Down.png";
10425                }
10426             }
10427          }
10428          part {
10429             name: "sb_increase";
10430             type: IMAGE;
10431             mouse_events: 1;
10432             description {
10433                state: "default" 0.0;
10434                align: 0.5 1.0;
10435                aspect: 1.0 1.0;
10436                aspect_preference: HORIZONTAL;
10437                rel1 {
10438                   to: "sb_hbar_a2";
10439                   relative: 1.0  0.0;
10440                   offset: 0 2;
10441                }
10442                rel2 {
10443                   to: "sb_vbar_a2";
10444                   relative: 1.0  2.0;
10445                   offset: -1 -1;
10446                }
10447                image {
10448                   normal: "added_images/DM_Internet_Scroll_Increase.png";
10449                }
10450             }
10451             description {
10452                state: "clicked" 0.0;
10453                inherit: "default" 0.0;
10454                image {
10455                   normal: "added_images/DM_Internet_Scroll_Increase.png";
10456                }
10457             }
10458             description {
10459                state: "hidden" 0.0;
10460                visible: 0;
10461                rel1 {
10462                   to: "sb_hbar_a2";
10463                   relative: 1.0  0.0;
10464                   offset: 0 2;
10465                }
10466                rel2 {
10467                   to: "sb_vbar_a2";
10468                   relative: 1.0  2.0;
10469                   offset: -1 -1;
10470                }
10471             }
10472          }
10473          part {
10474             name: "sb_hbar";
10475             type: RECT;
10476             mouse_events: 0;
10477             description {
10478                state: "default" 0.0;
10479                min: 16 16;
10480                align: 0.0 1.0;
10481                rel1 {
10482                   to: "bg";
10483                   relative: 0.0 1.0;
10484                   offset: 4 -5;
10485                }
10486                rel2 {
10487                   to: "bg";
10488                   relative: 0.0 1.0;
10489                   offset: -1 -5;
10490                   to_x: "sb_vbar";
10491                }
10492             }
10493             description {
10494                state: "hidden" 0.0;
10495                visible: 0;
10496                rel1 {
10497                   to: "bg";
10498                   relative: 0.0  1.0;
10499                   offset: 0    -4;
10500                }
10501                rel2 {
10502                   to: "bg";
10503                   relative: 0.0  1.0;
10504                   offset: -1   -4;
10505                   to_x: "sb_vbar";
10506                }
10507             }
10508          }
10509          part {
10510             name: "sb_hbar_base";
10511             type: RECT;
10512             clip_to: "sb_hbar";
10513             mouse_events: 1;
10514             description {
10515                state: "default" 0.0;
10516                color: 0 0 0 0;
10517                rel1 {
10518                   relative: 1.0  0.0;
10519                   offset: 0    0;
10520                   to: "sb_hbar_a1";
10521                }
10522                rel2 {
10523                   relative: 0.0  1.0;
10524                   offset: -1   -1;
10525                   to: "sb_hbar_a2";
10526                }
10527             }
10528          }
10529          part {
10530             name: "sb_hbar_runner";
10531             clip_to: "sb_hbar";
10532             mouse_events: 0;
10533             description {
10534                state: "default" 0.0;
10535                rel1 {
10536                   to: "sb_hbar_base";
10537                }
10538                rel2 {
10539                   to: "sb_hbar_base";
10540                }
10541                image {
10542                   normal: "added_images/DM_Internet_Scroll_Middle_h.png";
10543                }
10544                fill {
10545                   smooth: 0;
10546                }
10547             }
10548          }
10549          part {
10550             name: "sb_hbar_p1";
10551             type: RECT;
10552             clip_to: "sb_hbar";
10553             mouse_events: 1;
10554             description {
10555                state: "default" 0.0;
10556                color: 0 0 0 0;
10557                rel1 {
10558                   relative: 1.0 0.0;
10559                   offset:   0   0;
10560                   to: "sb_hbar_a1";
10561                }
10562                rel2 {
10563                   relative: 0.0 1.0;
10564                   offset:   -1  -1;
10565                   to: "e.dragable.hbar";
10566                }
10567             }
10568          }
10569          part {
10570             name: "sb_hbar_p2";
10571             type: RECT;
10572             clip_to: "sb_hbar";
10573             mouse_events: 1;
10574             description {
10575                state: "default" 0.0;
10576                color: 0 0 0 0;
10577                rel1 {
10578                   relative: 1.0 0.0;
10579                   offset:   0   0;
10580                   to: "e.dragable.hbar";
10581                }
10582                rel2 {
10583                   relative: 0.0 1.0;
10584                   offset:   -1  -1;
10585                   to: "sb_hbar_a2";
10586                }
10587             }
10588          }
10589          part {
10590             name: "e.dragable.hbar";
10591             clip_to: "sb_hbar";
10592             mouse_events: 1;
10593             dragable {
10594                x: 1 1 0;
10595                y: 0 0 0;
10596                confine: "sb_hbar_base";
10597             }
10598             description {
10599                state: "default" 0.0;
10600                min: 16 16;
10601                rel1 {
10602                   relative: 0.5  0.5;
10603                   offset: 0    0;
10604                   to: "sb_hbar_base";
10605                }
10606                rel2 {
10607                   relative: 0.5  0.5;
10608                   offset: 0    0;
10609                   to: "sb_hbar_base";
10610                }
10611                image {
10612                   normal: "added_images/DM_Internet_Scroll_h_01.png";
10613                   border: 5 5 5 5;
10614                }
10615             }
10616             description {
10617                state: "clicked" 0.0;
10618                inherit: "default" 0.0;
10619                image {
10620                   normal: "added_images/DM_Internet_Scroll_h_01.png";
10621                }
10622             }
10623          }
10624          part {
10625             name: "hbar_bar_thumb";
10626             clip_to: "sb_hbar";
10627             mouse_events: 0;
10628             description {
10629                state: "default" 0.0;
10630                max: 8 8;
10631                min: 8 8;
10632                rel1 {
10633                   to: "e.dragable.hbar";
10634                }
10635                rel2 {
10636                   to: "e.dragable.hbar";
10637                }
10638                image {
10639                   normal: "added_images/e17_scrollbar_hdrag_thumb.png";
10640                }
10641             }
10642          }
10643          part {
10644             name: "sb_hbar_a1";
10645             type: IMAGE;
10646             mouse_events: 1;
10647             clip_to: "sb_hbar";
10648             description {
10649                state: "default" 0.0;
10650                align: 0.0 0.5;
10651                aspect: 1.0 1.0;
10652                aspect_preference: VERTICAL;
10653                rel1 {
10654                   to: "sb_hbar";
10655                   relative: 0.0  0.0;
10656                   offset: 0    0;
10657                }
10658                rel2 {
10659                   to: "sb_hbar";
10660                   relative: 0.0  1.0;
10661                   offset: 0   -1;
10662                }
10663                image {
10664                   normal: "added_images/DM_Internet_Scroll_Left_h.png";
10665                }
10666             }
10667             description {
10668                state: "clicked" 0.0;
10669                inherit: "default" 0.0;
10670                image {
10671                   normal: "added_images/DM_Internet_Scroll_Left_h.png";
10672                }
10673             }
10674          }
10675          part {
10676             name: "sb_hbar_a2";
10677             type: IMAGE;
10678             mouse_events: 1;
10679             clip_to: "sb_hbar";
10680             description {
10681                state: "default" 0.0;
10682                align: 1.0 0.5;
10683                aspect: 1.0 1.0;
10684                aspect_preference: VERTICAL;
10685                rel1 {
10686                   to: "sb_hbar";
10687                   relative: 1.0  0.0;
10688                   offset: -1    0;
10689                }
10690                rel2 {
10691                   to: "sb_hbar";
10692                   relative: 1.0  1.0;
10693                   offset: -1   -1;
10694                }
10695                image {
10696                   normal: "added_images/DM_Internet_Scroll_Right_h.png";
10697                }
10698             }
10699             description {
10700                state: "clicked" 0.0;
10701                inherit: "default" 0.0;
10702                image {
10703                   normal: "added_images/DM_Internet_Scroll_Right_h.png";
10704                }
10705             }
10706          }
10707          part {
10708             name: "focus";
10709             mouse_events: 0;
10710             description {
10711                state: "default" 0.0;
10712                visible: 0;
10713                color: 255 255 255 0;
10714                image {
10715                   normal: "added_images/focus.png";
10716                   border: 7 7 7 7;
10717                   middle: 0;
10718                }
10719                fill {
10720                   smooth: 0;
10721                }
10722             }
10723             description {
10724                state: "focused" 0.0;
10725                inherit: "default" 0.0;
10726                visible: 0;
10727                color: 255 255 255 255;
10728             }
10729          }
10730       }
10731       programs {
10732          program {
10733             name: "sb_vbar_show";
10734             signal: "e,action,show,vbar";
10735             source: "e";
10736             action: STATE_SET "default" 0.0;
10737             target: "sb_vbar";
10738             target: "sb_increase";
10739          }
10740          program {
10741             name: "sb_vbar_hide";
10742             signal: "e,action,hide,vbar";
10743             source: "e";
10744             action: STATE_SET "hidden" 0.0;
10745             target: "sb_vbar";
10746             target: "sb_increase";
10747          }
10748          program {
10749             name: "sb_hbar_show";
10750             signal: "e,action,show,hbar";
10751             source: "e";
10752             action: STATE_SET "default" 0.0;
10753             target: "sb_hbar";
10754             target: "sb_increase";
10755          }
10756          program {
10757             name: "sb_hbar_hide";
10758             signal: "e,action,hide,hbar";
10759             source: "e";
10760             action: STATE_SET "hidden" 0.0;
10761             target: "sb_hbar";
10762             target: "sb_increase";
10763          }
10764          program {
10765             name: "sb_vbar_a1_down";
10766             signal: "mouse,down,1";
10767             source: "sb_vbar_a1";
10768             action: STATE_SET "clicked" 0.0;
10769             target: "sb_vbar_a1";
10770          }
10771          program {
10772             name: "sb_vbar_a1_down2";
10773             signal: "mouse,down,1";
10774             source: "sb_vbar_a1";
10775             action: DRAG_VAL_STEP 0.0 -1.0;
10776             target: "e.dragable.vbar";
10777          }
10778          program {
10779             name: "sb_vbar_a1_up";
10780             signal: "mouse,up,1";
10781             source: "sb_vbar_a1";
10782             action: STATE_SET "default" 0.0;
10783             target: "sb_vbar_a1";
10784          }
10785          program {
10786             name: "sb_vbar_a2_down";
10787             signal: "mouse,down,1";
10788             source: "sb_vbar_a2";
10789             action: STATE_SET "clicked" 0.0;
10790             target: "sb_vbar_a2";
10791          }
10792          program {
10793             name: "sb_vbar_a2_down2";
10794             signal: "mouse,down,1";
10795             source: "sb_vbar_a2";
10796             action: DRAG_VAL_STEP 0.0 1.0;
10797             target: "e.dragable.vbar";
10798          }
10799          program {
10800             name: "sb_vbar_a2_up";
10801             signal: "mouse,up,1";
10802             source: "sb_vbar_a2";
10803             action: STATE_SET "default" 0.0;
10804             target: "sb_vbar_a2";
10805          }
10806          program {
10807             name: "sb_vbar_p1_down";
10808             signal: "mouse,down,1";
10809             source: "sb_vbar_p1";
10810             action: DRAG_VAL_PAGE 0.0 -1.0;
10811             target: "e.dragable.vbar";
10812          }
10813          program {
10814             name: "sb_vbar_p2_down";
10815             signal: "mouse,down,1";
10816             source: "sb_vbar_p2";
10817             action: DRAG_VAL_PAGE  0.0 1.0;
10818             target: "e.dragable.vbar";
10819          }
10820          program {
10821             name: "sb_vbar_down";
10822             signal: "mouse,down,1";
10823             source: "e.dragable.vbar";
10824             action: STATE_SET "clicked" 0.0;
10825             target: "e.dragable.vbar";
10826          }
10827          program {
10828             name: "sb_vbar_up";
10829             signal: "mouse,up,1";
10830             source: "e.dragable.vbar";
10831             action: STATE_SET "default" 0.0;
10832             target: "e.dragable.vbar";
10833          }
10834          program {
10835             name: "sb_hbar_a1_down";
10836             signal: "mouse,down,1";
10837             source: "sb_hbar_a1";
10838             action: STATE_SET "clicked" 0.0;
10839             target: "sb_hbar_a1";
10840          }
10841          program {
10842             name: "sb_hbar_a1_down2";
10843             signal: "mouse,down,1";
10844             source: "sb_hbar_a1";
10845             action: DRAG_VAL_STEP -1.0 0.0;
10846             target: "e.dragable.hbar";
10847          }
10848          program {
10849             name: "sb_hbar_a1_up";
10850             signal: "mouse,up,1";
10851             source: "sb_hbar_a1";
10852             action: STATE_SET "default" 0.0;
10853             target: "sb_hbar_a1";
10854          }
10855          program {
10856             name: "sb_hbar_a2_down";
10857             signal: "mouse,down,1";
10858             source: "sb_hbar_a2";
10859             action: STATE_SET "clicked" 0.0;
10860             target: "sb_hbar_a2";
10861          }
10862          program {
10863             name: "sb_hbar_a2_down2";
10864             signal: "mouse,down,1";
10865             source: "sb_hbar_a2";
10866             action: DRAG_VAL_STEP 1.0 0.0;
10867             target: "e.dragable.hbar";
10868          }
10869          program {
10870             name: "sb_hbar_a2_up";
10871             signal: "mouse,up,1";
10872             source: "sb_hbar_a2";
10873             action: STATE_SET "default" 0.0;
10874             target: "sb_hbar_a2";
10875          }
10876          program {
10877             name: "sb_hbar_p1_down";
10878             signal: "mouse,down,1";
10879             source: "sb_hbar_p1";
10880             action: DRAG_VAL_PAGE -1.0 0.0;
10881             target: "e.dragable.hbar";
10882          }
10883          program {
10884             name: "sb_hbar_p2_down";
10885             signal: "mouse,down,1";
10886             source: "sb_hbar_p2";
10887             action: DRAG_VAL_PAGE  1.0 0.0;
10888             target: "e.dragable.hbar";
10889          }
10890          program {
10891             name: "sb_hbar_down";
10892             signal: "mouse,down,1";
10893             source: "e.dragable.hbar";
10894             action: STATE_SET "clicked" 0.0;
10895             target: "e.dragable.hbar";
10896          }
10897          program {
10898             name: "sb_hbar_up";
10899             signal: "mouse,up,1";
10900             source: "e.dragable.hbar";
10901             action: STATE_SET "default" 0.0;
10902             target: "e.dragable.hbar";
10903          }
10904          program {
10905             name: "focus_in";
10906             signal: "e,state,focused";
10907             source: "e";
10908             action: STATE_SET "focused" 0.0;
10909             transition: DECELERATE 0.2;
10910             target: "focus";
10911          }
10912          program {
10913             name: "focus_out";
10914             signal: "e,state,unfocused";
10915             source: "e";
10916             action: STATE_SET "default" 0.0;
10917             transition: ACCELERATE 0.5;
10918             target: "focus";
10919          }
10920       }
10921    }
10922    /* e/widgets/ilist is used in the Module Config Dialog for the module list */
10923    group {
10924       name: "e/widgets/ilist";
10925       data.item: "stacking" "above";
10926       data.item: "selectraise" "on";
10927       images {
10928          image: "bt_sm_base1.png" COMP;
10929          image: "bt_sm_shine.png" COMP;
10930          image: "bt_sm_hilight.png" COMP;
10931          image: "ilist_1.png" COMP;
10932          image: "ilist_item_shadow.png" COMP;
10933       }
10934       parts {
10935          part {
10936             name: "base_sh";
10937             mouse_events: 0;
10938             description {
10939                state: "default" 0.0;
10940                fixed: 1 1;
10941                align: 0.0 0.0;
10942                min: 0 10;
10943                rel1 {
10944                   to: "base";
10945                   relative: 0.0 1.0;
10946                   offset: 0 0;
10947                }
10948                rel2 {
10949                   to: "base";
10950                   relative: 1.0 1.0;
10951                   offset: -1 0;
10952                }
10953                image {
10954                   normal: "ilist_item_shadow.png";
10955                }
10956                fill.smooth: 0;
10957             }
10958          }
10959          part {
10960             name: "base";
10961             mouse_events: 0;
10962             description {
10963                state: "default" 0.0;
10964                color_class: "ilist_item_base";
10965                image {
10966                   normal: "ilist_1.png";
10967                   border: 2 2 2 2;
10968                }
10969                fill.smooth: 0;
10970             }
10971          }
10972          part {
10973             name: "bg";
10974             mouse_events: 0;
10975             description {
10976                state: "default" 0.0;
10977                visible: 0;
10978                color: 255 255 255 0;
10979                rel1 {
10980                   relative: 0.0 0.0;
10981                   offset: -5 -5;
10982                }
10983                rel2 {
10984                   relative: 1.0 1.0;
10985                   offset: 4 4;
10986                }
10987                image {
10988                   normal: "bt_sm_base1.png";
10989                   border: 6 6 6 6;
10990                }
10991             }
10992             description {
10993                state: "selected" 0.0;
10994                inherit: "default" 0.0;
10995                visible: 1;
10996                color: 255 255 255 255;
10997                rel1 {
10998                   relative: 0.0 0.0;
10999                   offset: -2 -2;
11000                }
11001                rel2 {
11002                   relative: 1.0 1.0;
11003                   offset: 1 1;
11004                }
11005             }
11006          }
11007          part {
11008             name: "e.swallow.icon";
11009             type: SWALLOW;
11010             description {
11011                state: "default" 0.0;
11012                align: 0.0 0.5;
11013                aspect: 1.0 1.0;
11014                aspect_preference: VERTICAL;
11015                rel1 {
11016                   relative: 0.0  0.0;
11017                   offset: 4    4;
11018                }
11019                rel2 {
11020                   relative: 0.0  1.0;
11021                   offset: 4   -5;
11022                }
11023             }
11024          }
11025          part {
11026             name: "e.text.label";
11027             type: TEXT;
11028             effect: SOFT_SHADOW;
11029             mouse_events: 0;
11030             scale: 1;
11031             description {
11032                state: "default" 0.0;
11033                min: 16 16;
11034                rel1 {
11035                   to_x: "e.swallow.icon";
11036                   relative: 1.0  0.0;
11037                   offset: 4 4;
11038                }
11039                rel2 {
11040                   relative: 1.0  1.0;
11041                   offset: -5 -5;
11042                }
11043                color_class: "ilist_item";
11044                text {
11045                   font: "Sans";
11046                   size: 10;
11047                   min: 1 1;
11048                   align: 0.0 0.5;
11049                   text_class: "ilist_item";
11050                }
11051             }
11052             description {
11053                state: "selected" 0.0;
11054                inherit: "default" 0.0;
11055                color_class: "ilist_item_selected";
11056             }
11057          }
11058          part {
11059             name: "e.swallow.end";
11060             type: SWALLOW;
11061             description {
11062                state: "default" 0.0;
11063                align: 1.0 0.5;
11064                aspect: 1.0 1.0;
11065                aspect_preference: VERTICAL;
11066                rel1 {
11067                   relative: 1.0  0.0;
11068                   offset: -5    4;
11069                }
11070                rel2 {
11071                   relative: 1.0  1.0;
11072                   offset: -5   -5;
11073                }
11074             }
11075          }
11076          part {
11077             name: "fg1";
11078             mouse_events: 0;
11079             description {
11080                state: "default" 0.0;
11081                visible: 0;
11082                color: 255 255 255 0;
11083                rel1.to: "bg";
11084                rel2.relative: 1.0 0.5;
11085                rel2.to: "bg";
11086                image {
11087                   normal: "bt_sm_hilight.png";
11088                   border: 6 6 6 0;
11089                }
11090             }
11091             description {
11092                state: "selected" 0.0;
11093                inherit: "default" 0.0;
11094                visible: 1;
11095                color: 255 255 255 255;
11096             }
11097          }
11098          part {
11099             name: "fg2";
11100             mouse_events: 0;
11101             description {
11102                state: "default" 0.0;
11103                visible: 0;
11104                color: 255 255 255 0;
11105                rel1.to: "bg";
11106                rel2.to: "bg";
11107                image {
11108                   normal: "bt_sm_shine.png";
11109                   border: 6 6 6 0;
11110                }
11111             }
11112             description {
11113                state: "selected" 0.0;
11114                inherit: "default" 0.0;
11115                visible: 1;
11116                color: 255 255 255 255;
11117             }
11118          }
11119          part {
11120             name: "event";
11121             type: RECT;
11122             description {
11123                state: "default" 0.0;
11124                color: 0 0 0 0;
11125             }
11126          }
11127       }
11128       programs {
11129          program {
11130             name: "go_active";
11131             signal: "e,state,selected";
11132             source: "e";
11133             action: STATE_SET "selected" 0.0;
11134             target: "bg";
11135             target: "fg1";
11136             target: "fg2";
11137             target: "e.text.label";
11138          }
11139          program {
11140             name: "go_passive";
11141             signal: "e,state,unselected";
11142             source: "e";
11143             action: STATE_SET "default" 0.0;
11144             target: "bg";
11145             target: "fg1";
11146             target: "fg2";
11147             target: "e.text.label";
11148             transition: LINEAR 0.1;
11149          }
11150       }
11151    }
11152    group {
11153       name: "e/widgets/ilist_odd";
11154       data.item: "stacking" "below";
11155       data.item: "selectraise" "on";
11156       images {
11157          image: "bt_sm_base1.png" COMP;
11158          image: "bt_sm_shine.png" COMP;
11159          image: "bt_sm_hilight.png" COMP;
11160          image: "ilist_2.png" COMP;
11161       }
11162       parts {
11163          part {
11164             name: "base";
11165             mouse_events: 0;
11166             description {
11167                state: "default" 0.0;
11168                color_class: "ilist_item_odd_base";
11169                image {
11170                   normal: "ilist_2.png";
11171                   border: 2 2 2 2;
11172                }
11173                fill.smooth: 0;
11174             }
11175          }
11176          part {
11177             name: "bg";
11178             mouse_events: 0;
11179             description {
11180                state: "default" 0.0;
11181                visible: 0;
11182                color: 255 255 255 0;
11183                rel1 {
11184                   relative: 0.0 0.0;
11185                   offset: -5 -5;
11186                }
11187                rel2 {
11188                   relative: 1.0 1.0;
11189                   offset: 4 4;
11190                }
11191                image {
11192                   normal: "bt_sm_base1.png";
11193                   border: 6 6 6 6;
11194                }
11195             }
11196             description {
11197                state: "selected" 0.0;
11198                inherit: "default" 0.0;
11199                visible: 1;
11200                color: 255 255 255 255;
11201                rel1 {
11202                   relative: 0.0 0.0;
11203                   offset: -2 -2;
11204                }
11205                rel2 {
11206                   relative: 1.0 1.0;
11207                   offset: 1 1;
11208                }
11209             }
11210          }
11211          part {
11212             name: "e.swallow.icon";
11213             type: SWALLOW;
11214             description {
11215                state: "default" 0.0;
11216                align: 0.0 0.5;
11217                aspect: 1.0 1.0;
11218                aspect_preference: VERTICAL;
11219                rel1 {
11220                   relative: 0.0  0.0;
11221                   offset: 4    4;
11222                }
11223                rel2 {
11224                   relative: 0.0  1.0;
11225                   offset: 4   -5;
11226                }
11227             }
11228          }
11229          part {
11230             name: "e.text.label";
11231             type: TEXT;
11232             effect: SOFT_SHADOW;
11233             mouse_events: 0;
11234             scale: 1;
11235             description {
11236                state: "default" 0.0;
11237                min: 16 16;
11238                rel1 {
11239                   to_x: "e.swallow.icon";
11240                   relative: 1.0  0.0;
11241                   offset: 4 4;
11242                }
11243                rel2 {
11244                   relative: 1.0  1.0;
11245                   offset: -5 -5;
11246                }
11247                color_class: "ilist_item_odd";
11248                text {
11249                   font: "Sans";
11250                   size: 10;
11251                   min: 1 1;
11252                   align: 0.0 0.5;
11253                   text_class: "ilist_item";
11254                }
11255             }
11256             description {
11257                state: "selected" 0.0;
11258                inherit: "default" 0.0;
11259                color_class: "ilist_item_selected";
11260             }
11261          }
11262          part {
11263             name: "e.swallow.end";
11264             type: SWALLOW;
11265             description {
11266                state: "default" 0.0;
11267                align: 1.0 0.5;
11268                aspect: 1.0 1.0;
11269                aspect_preference: VERTICAL;
11270                rel1 {
11271                   relative: 1.0  0.0;
11272                   offset: -5    4;
11273                }
11274                rel2 {
11275                   relative: 1.0  1.0;
11276                   offset: -5   -5;
11277                }
11278             }
11279          }
11280          part {
11281             name: "fg1";
11282             mouse_events: 0;
11283             description {
11284                state: "default" 0.0;
11285                visible: 0;
11286                color: 255 255 255 0;
11287                rel1.to: "bg";
11288                rel2.relative: 1.0 0.5;
11289                rel2.to: "bg";
11290                image {
11291                   normal: "bt_sm_hilight.png";
11292                   border: 6 6 6 0;
11293                }
11294             }
11295             description {
11296                state: "selected" 0.0;
11297                inherit: "default" 0.0;
11298                visible: 1;
11299                color: 255 255 255 255;
11300             }
11301          }
11302          part {
11303             name: "fg2";
11304             mouse_events: 0;
11305             description {
11306                state: "default" 0.0;
11307                visible: 0;
11308                color: 255 255 255 0;
11309                rel1.to: "bg";
11310                rel2.to: "bg";
11311                image {
11312                   normal: "bt_sm_shine.png";
11313                   border: 6 6 6 0;
11314                }
11315             }
11316             description {
11317                state: "selected" 0.0;
11318                inherit: "default" 0.0;
11319                visible: 1;
11320                color: 255 255 255 255;
11321             }
11322          }
11323          part {
11324             name: "event";
11325             type: RECT;
11326             description {
11327                state: "default" 0.0;
11328                color: 0 0 0 0;
11329             }
11330          }
11331       }
11332       programs {
11333          program {
11334             name: "go_active";
11335             signal: "e,state,selected";
11336             source: "e";
11337             action: STATE_SET "selected" 0.0;
11338             target: "bg";
11339             target: "fg1";
11340             target: "fg2";
11341             target: "e.text.label";
11342          }
11343          program {
11344             name: "go_passive";
11345             signal: "e,state,unselected";
11346             source: "e";
11347             action: STATE_SET "default" 0.0;
11348             target: "bg";
11349             target: "fg1";
11350             target: "fg2";
11351             target: "e.text.label";
11352             transition: LINEAR 0.1;
11353          }
11354       }
11355    }
11356    group {
11357       name: "e/widgets/ilist_header";
11358       data.item: "stacking" "above";
11359       data.item: "selectraise" "on";
11360       images {
11361          image: "bt_sm_base1.png" COMP;
11362          image: "bt_sm_shine.png" COMP;
11363          image: "bt_sm_hilight.png" COMP;
11364          image: "ilist_header_1.png" COMP;
11365          image: "ilist_item_shadow.png" COMP;
11366       }
11367       parts {
11368          part {
11369             name: "base_sh";
11370             mouse_events: 0;
11371             description {
11372                state: "default" 0.0;
11373                fixed: 1 1;
11374                align: 0.0 0.0;
11375                min: 0 10;
11376                rel1 {
11377                   to: "base";
11378                   relative: 0.0 1.0;
11379                   offset: 0 0;
11380                }
11381                rel2 {
11382                   to: "base";
11383                   relative: 1.0 1.0;
11384                   offset: -1 0;
11385                }
11386                image {
11387                   normal: "ilist_item_shadow.png";
11388                }
11389                fill.smooth: 0;
11390             }
11391          }
11392          part {
11393             name: "base";
11394             mouse_events: 0;
11395             description {
11396                state: "default" 0.0;
11397                color_class: "ilist_item_header_base";
11398                image {
11399                   normal: "ilist_header_1.png";
11400                   border: 2 2 2 2;
11401                }
11402             }
11403          }
11404          part {
11405             name: "bg";
11406             mouse_events: 0;
11407             description {
11408                state: "default" 0.0;
11409                visible: 0;
11410                color: 255 255 255 0;
11411                rel1 {
11412                   relative: 0.0 0.0;
11413                   offset: -5 -5;
11414                }
11415                rel2 {
11416                   relative: 1.0 1.0;
11417                   offset: 4 4;
11418                }
11419                image {
11420                   normal: "bt_sm_base1.png";
11421                   border: 6 6 6 6;
11422                }
11423             }
11424             description {
11425                state: "selected" 0.0;
11426                inherit: "default" 0.0;
11427                visible: 1;
11428                color: 255 255 255 255;
11429                rel1 {
11430                   relative: 0.0 0.0;
11431                   offset: -2 -2;
11432                }
11433                rel2 {
11434                   relative: 1.0 1.0;
11435                   offset: 1 1;
11436                }
11437             }
11438          }
11439          part {
11440             name: "e.swallow.icon";
11441             type: SWALLOW;
11442             description {
11443                state: "default" 0.0;
11444                align: 0.0 0.5;
11445                aspect: 1.0 1.0;
11446                aspect_preference: VERTICAL;
11447                rel1 {
11448                   relative: 0.0  0.0;
11449                   offset: 4    4;
11450                }
11451                rel2 {
11452                   relative: 0.0  1.0;
11453                   offset: 4   -5;
11454                }
11455             }
11456          }
11457          part {
11458             name: "e.text.label";
11459             type: TEXT;
11460             effect: SOFT_SHADOW;
11461             mouse_events: 0;
11462             scale: 1;
11463             description {
11464                state: "default" 0.0;
11465                min: 16 16;
11466                rel1 {
11467                   to_x: "e.swallow.icon";
11468                   relative: 1.0  0.0;
11469                   offset: 4 4;
11470                }
11471                rel2 {
11472                   relative: 1.0  1.0;
11473                   offset: -5 -5;
11474                }
11475                color_class: "ilist_item_header";
11476                text {
11477                   font: "Sans:style=Bold";
11478                   size: 16;
11479                   min: 1 1;
11480                   align: 0.0 0.5;
11481                   text_class: "ilist_item";
11482                }
11483             }
11484          }
11485          part {
11486             name: "fg1";
11487             mouse_events: 0;
11488             description {
11489                state: "default" 0.0;
11490                visible: 0;
11491                color: 255 255 255 0;
11492                rel1.to: "bg";
11493                rel2.relative: 1.0 0.5;
11494                rel2.to: "bg";
11495                image {
11496                   normal: "bt_sm_hilight.png";
11497                   border: 6 6 6 0;
11498                }
11499             }
11500             description {
11501                state: "selected" 0.0;
11502                inherit: "default" 0.0;
11503                visible: 1;
11504                color: 255 255 255 255;
11505             }
11506          }
11507          part {
11508             name: "fg2";
11509             mouse_events: 0;
11510             description {
11511                state: "default" 0.0;
11512                visible: 0;
11513                color: 255 255 255 0;
11514                rel1.to: "bg";
11515                rel2.to: "bg";
11516                image {
11517                   normal: "bt_sm_shine.png";
11518                   border: 6 6 6 0;
11519                }
11520             }
11521             description {
11522                state: "selected" 0.0;
11523                inherit: "default" 0.0;
11524                visible: 1;
11525                color: 255 255 255 255;
11526             }
11527          }
11528          part {
11529             name: "event";
11530             type: RECT;
11531             description {
11532                state: "default" 0.0;
11533                color: 0 0 0 0;
11534             }
11535          }
11536       }
11537       programs {
11538          program {
11539             name: "go_active";
11540             signal: "e,state,selected";
11541             source: "e";
11542             action: STATE_SET "selected" 0.0;
11543             target: "bg";
11544             target: "fg1";
11545             target: "fg2";
11546             target: "e.text.label";
11547          }
11548          program {
11549             name: "go_passive";
11550             signal: "e,state,unselected";
11551             source: "e";
11552             action: STATE_SET "default" 0.0;
11553             target: "bg";
11554             target: "fg1";
11555             target: "fg2";
11556             target: "e.text.label";
11557             transition: LINEAR 0.1;
11558          }
11559       }
11560    }
11561    group {
11562       name: "e/widgets/ilist_header_odd";
11563       data.item: "stacking" "below";
11564       data.item: "selectraise" "on";
11565       images {
11566          image: "bt_sm_base1.png" COMP;
11567          image: "bt_sm_shine.png" COMP;
11568          image: "bt_sm_hilight.png" COMP;
11569          image: "ilist_header_2.png" COMP;
11570       }
11571       parts {
11572          part {
11573             name: "base";
11574             mouse_events: 0;
11575             description {
11576                state: "default" 0.0;
11577                color_class: "ilist_item_header_odd_base";
11578                image {
11579                   normal: "ilist_header_2.png";
11580                   border: 2 2 2 2;
11581                }
11582             }
11583          }
11584          part {
11585             name: "bg";
11586             mouse_events: 0;
11587             description {
11588                state: "default" 0.0;
11589                visible: 0;
11590                color: 255 255 255 0;
11591                rel1 {
11592                   relative: 0.0 0.0;
11593                   offset: -5 -5;
11594                }
11595                rel2 {
11596                   relative: 1.0 1.0;
11597                   offset: 4 4;
11598                }
11599                image {
11600                   normal: "bt_sm_base1.png";
11601                   border: 6 6 6 6;
11602                }
11603             }
11604             description {
11605                state: "selected" 0.0;
11606                inherit: "default" 0.0;
11607                visible: 1;
11608                color: 255 255 255 255;
11609                rel1 {
11610                   relative: 0.0 0.0;
11611                   offset: -2 -2;
11612                }
11613                rel2 {
11614                   relative: 1.0 1.0;
11615                   offset: 1 1;
11616                }
11617             }
11618          }
11619          part {
11620             name: "e.swallow.icon";
11621             type: SWALLOW;
11622             description {
11623                state: "default" 0.0;
11624                align: 0.0 0.5;
11625                aspect: 1.0 1.0;
11626                aspect_preference: VERTICAL;
11627                rel1 {
11628                   relative: 0.0  0.0;
11629                   offset: 4    4;
11630                }
11631                rel2 {
11632                   relative: 0.0  1.0;
11633                   offset: 4   -5;
11634                }
11635             }
11636          }
11637          part {
11638             name: "e.text.label";
11639             type: TEXT;
11640             effect: SOFT_SHADOW;
11641             mouse_events: 0;
11642             scale: 1;
11643             description {
11644                state: "default" 0.0;
11645                min: 16 16;
11646                rel1 {
11647                   to_x: "e.swallow.icon";
11648                   relative: 1.0  0.0;
11649                   offset: 4 4;
11650                }
11651                rel2 {
11652                   relative: 1.0  1.0;
11653                   offset: -5 -5;
11654                }
11655                color_class: "ilist_item_header_odd";
11656                text {
11657                   font: "Sans:style=Bold";
11658                   size: 16;
11659                   min: 1 1;
11660                   align: 0.0 0.5;
11661                   text_class: "ilist_item";
11662                }
11663             }
11664          }
11665          part {
11666             name: "fg1";
11667             mouse_events: 0;
11668             description {
11669                state: "default" 0.0;
11670                visible: 0;
11671                color: 255 255 255 0;
11672                rel1.to: "bg";
11673                rel2.relative: 1.0 0.5;
11674                rel2.to: "bg";
11675                image {
11676                   normal: "bt_sm_hilight.png";
11677                   border: 6 6 6 0;
11678                }
11679             }
11680             description {
11681                state: "selected" 0.0;
11682                inherit: "default" 0.0;
11683                visible: 1;
11684                color: 255 255 255 255;
11685             }
11686          }
11687          part {
11688             name: "fg2";
11689             mouse_events: 0;
11690             description {
11691                state: "default" 0.0;
11692                visible: 0;
11693                color: 255 255 255 0;
11694                rel1.to: "bg";
11695                rel2.to: "bg";
11696                image {
11697                   normal: "bt_sm_shine.png";
11698                   border: 6 6 6 0;
11699                }
11700             }
11701             description {
11702                state: "selected" 0.0;
11703                inherit: "default" 0.0;
11704                visible: 1;
11705                color: 255 255 255 255;
11706             }
11707          }
11708          part {
11709             name: "event";
11710             type: RECT;
11711             description {
11712                state: "default" 0.0;
11713                color: 0 0 0 0;
11714             }
11715          }
11716       }
11717       programs {
11718          program {
11719             name: "go_active";
11720             signal: "e,state,selected";
11721             source: "e";
11722             action: STATE_SET "selected" 0.0;
11723             target: "bg";
11724             target: "fg1";
11725             target: "fg2";
11726             target: "e.text.label";
11727          }
11728          program {
11729             name: "go_passive";
11730             signal: "e,state,unselected";
11731             source: "e";
11732             action: STATE_SET "default" 0.0;
11733             target: "bg";
11734             target: "fg1";
11735             target: "fg2";
11736             target: "e.text.label";
11737             transition: LINEAR 0.1;
11738          }
11739       }
11740    }
11741    group {
11742       name: "e/widgets/ilist/toggle_end";
11743       images {
11744          image: "icon_active.png" COMP;
11745       }
11746       parts {
11747          part {
11748             name: "icon";
11749             type: IMAGE;
11750             description {
11751                state: "default" 0.0;
11752                color: 255 255 255 0;
11753                visible: 0;
11754                align: 1.0 0.5;
11755                aspect: 1.0 1.0;
11756                aspect_preference: VERTICAL;
11757                rel1 {
11758                   relative: 0.0  0.0;
11759                   offset: 4    4;
11760                }
11761                rel2 {
11762                   relative: 0.0  1.0;
11763                   offset: 4   -5;
11764                }
11765                image.normal: "icon_active.png";
11766             }
11767             description {
11768                state: "visible" 0.0;
11769                inherit: "default" 0.0;
11770                color: 255 255 255 255;
11771                visible: 1;
11772             }
11773          }
11774       }
11775       programs {
11776          program {
11777             signal: "e,state,checked";
11778             source: "e";
11779             action: STATE_SET "visible" 0.0;
11780             target: "icon";
11781             transition: LINEAR 0.1;
11782          }
11783          program {
11784             signal: "e,state,unchecked";
11785             source: "e";
11786             action: STATE_SET "default" 0.0;
11787             target: "icon";
11788             transition: LINEAR 0.1;
11789          }
11790       }
11791    }
11792    /* Used to display RGB/HSV values via sliders
11793       in Wallpaper Gradient Dialog               */
11794    group {
11795       name: "e/widgets/cslider";
11796       images.image: "inset_sunk.png" COMP;
11797       parts {
11798          part {
11799             name: "content_clip";
11800             type: RECT;
11801             mouse_events: 0;
11802             description {
11803                state: "default" 0.0;
11804                rel1.to: "e.swallow.content";
11805                rel2.to: "e.swallow.content";
11806                color: 255 255 255 255;
11807             }
11808          }
11809          part {
11810             name: "e.swallow.content";
11811             type: SWALLOW;
11812             clip_to: "content_clip";
11813             description {
11814                state: "default" 0.0;
11815                min: 50 20;
11816                rel1.offset: 4    4;
11817                rel2.offset: -5    -5;
11818             }
11819             description {
11820                state: "vertical" 0.0;
11821                inherit: "default" 0.0;
11822                min: 20 50;
11823             }
11824          }
11825          part {
11826             name: "border";
11827             mouse_events: 1;
11828             description {
11829                state: "default" 0.0;
11830                rel1 {
11831                   to: "e.swallow.content";
11832                   offset: -1 -1;
11833                }
11834                rel2 {
11835                   to: "e.swallow.content";
11836                   offset: 0 0;
11837                }
11838                image {
11839                   normal: "inset_sunk.png";
11840                   border: 7 7 7 7;
11841                   middle: 0;
11842                }
11843                fill.smooth : 0;
11844             }
11845          }
11846          part {
11847             name: "e.dragable.cursor";
11848             type: RECT;
11849             clip_to: "content_clip";
11850             dragable {
11851                confine: "e.swallow.content";
11852                x: 1 1 0;
11853                y: -1 1 0;
11854             }
11855             description {
11856                state: "default" 0.0;
11857                min: 1 24;
11858                max: 1 9999;
11859                fixed: 1 1;
11860                rel1 {
11861                   to: "e.swallow.content";
11862                   relative: 0.5 0.0;
11863                   offset: 0 0;
11864                }
11865                rel2 {
11866                   to: "e.swallow.content";
11867                   relative: 0.5 1.0;
11868                   offset: 0 -1;
11869                }
11870                color: 255 255 255 150;
11871             }
11872             description {
11873                state: "vertical" 0.0;
11874                min: 24 1;
11875                max: 9999 1;
11876                fixed: 1 1;
11877                rel1 {
11878                   to: "e.swallow.content";
11879                   relative: 0.0 0.5 ;
11880                   offset: 0 0;
11881                }
11882                rel2 {
11883                   to: "e.swallow.content";
11884                   relative: 1.0 0.5;
11885                   offset: -1 0;
11886                }
11887                color: 255 255 255 150;
11888             }
11889          }
11890       }
11891       programs {
11892          program {
11893             name: "go_vertical";
11894             signal: "e,state,direction,v";
11895             source: "e";
11896             action: STATE_SET "vertical" 0.0;
11897             target: "e.dragable.cursor";
11898             target: "e.swallow.content";
11899          }
11900       }
11901    }
11902    /* e/widgets/slider* is used in the Virtual Desktops Config dialog */
11903    group {
11904       name: "e/widgets/slider_vertical";
11905       images {
11906          image: "slider.png" COMP;
11907          image: "slider_clicked.png" COMP;
11908          image: "sb_runnerv.png" COMP;
11909          image: "inset_sunk.png" COMP;
11910       }
11911       parts {
11912          part {
11913             name: "base";
11914             type: RECT;
11915             mouse_events: 1;
11916             description {
11917                state: "default" 0.0;
11918                color: 0 0 0 0;
11919                min: 22 0;
11920                rel1.offset: 2 2;
11921                rel2.offset: -3 -3;
11922             }
11923             description {
11924                state: "active" 0.0;
11925                inherit: "default" 0.0;
11926                rel2 {
11927                   to_y: "label";
11928                   relative: 1.0  0.0;
11929                   offset: -3   -1;
11930                }
11931             }
11932          }
11933          part {
11934             name: "runner";
11935             mouse_events: 0;
11936             clip_to: "clip";
11937             description {
11938                state: "default" 0.0;
11939                max: 3 99999;
11940                rel1.to: "base";
11941                rel2.to: "base";
11942                image {
11943                   normal: "sb_runnerv.png";
11944                   border: 0 0 4 4;
11945                }
11946                fill.smooth: 0;
11947             }
11948          }
11949          part {
11950             name: "label_base";
11951             clip_to: "clip";
11952             type: RECT;
11953             description {
11954                state: "default" 0.0;
11955                color: 255 255 255 0;
11956                visible: 0;
11957                rel1.to: "label";
11958                rel1.offset: 1 1;
11959                rel2.to: "label";
11960                rel2.offset: -2 -2;
11961             }
11962             description {
11963                state: "active" 0.0;
11964                inherit: "default" 0.0;
11965                visible: 1;
11966             }
11967          }
11968          part {
11969             name: "label";
11970             mouse_events: 0;
11971             clip_to: "clip";
11972             description {
11973                state: "default" 0.0;
11974                visible: 0;
11975             }
11976             description {
11977                state: "active" 0.0;
11978                rel1 {
11979                   to: "e.text.label";
11980                   offset: -4  -2;
11981                }
11982                rel2 {
11983                   to: "e.text.label";
11984                   offset: 3  1;
11985                }
11986             }
11987          }
11988          part {
11989             name: "e.text.label";
11990             type: TEXT;
11991             mouse_events: 0;
11992             clip_to: "clip";
11993             scale: 1;
11994             description {
11995                state: "default" 0.0;
11996                visible: 0;
11997             }
11998             description {
11999                state: "active" 0.0;
12000                align: 0.5 1.0;
12001                fixed: 1 1;
12002                rel1 {
12003                   relative: 0.0  1.0;
12004                   offset: 7    -8;
12005                }
12006                rel2 {
12007                   relative: 1.0  1.0;
12008                   offset: -8  -8;
12009                }
12010                color_class: "slider_text";
12011                text {
12012                   text: "0.0";
12013                   font: "Sans";
12014                   size: 10;
12015                   min: 1 1;
12016                   align: 0.5 0.5;
12017                   text_class: "slider";
12018                }
12019             }
12020          }
12021          part {
12022             name: "sld_p1";
12023             type: RECT;
12024             mouse_events: 1;
12025             description {
12026                state: "default" 0.0;
12027                color: 0 0 0 0;
12028                rel2 {
12029                   relative: 1.0 0.0;
12030                   to: "e.dragable.slider";
12031                }
12032             }
12033          }
12034          part {
12035             name: "sld_p2";
12036             type: RECT;
12037             mouse_events: 1;
12038             description {
12039                state: "default" 0.0;
12040                color: 0 0 0 0;
12041                rel1 {
12042                   relative: 0.0 1.0;
12043                   to: "e.dragable.slider";
12044                }
12045             }
12046          }
12047          part {
12048             name: "e.swallow.bar";
12049             type: SWALLOW;
12050             description { state: "default" 0.0;
12051                rel1 {
12052                   to_x: "e.dragable.slider";
12053                   to_y: "base";
12054                   offset: 0 5;
12055                }
12056                rel2 {
12057                   to_x: "e.dragable.slider";
12058                   to_y: "base";
12059                   offset: -1 -6;
12060                }
12061             }
12062          }
12063          part {
12064             name: "e.dragable.slider";
12065             type: RECT;
12066             mouse_events: 1;
12067             scale: 1;
12068             dragable {
12069                x: 0 0 0;
12070                y: -1 1 0;
12071                confine: "base";
12072             }
12073             description {
12074                state: "default" 0.0;
12075                min: 11 11;
12076                fixed: 1 1;
12077                rel1 {
12078                   relative: 0.5  0.5;
12079                   offset: -1    0;
12080                   to: "base";
12081                }
12082                rel2 {
12083                   relative: 0.5  0.5;
12084                   offset: -1    -1;
12085                   to: "base";
12086                }
12087                color: 0 0 0 0;
12088             }
12089          }
12090          part {
12091             name: "button";
12092             mouse_events: 0;
12093             scale: 1;
12094             description {
12095                state: "default" 0.0;
12096                min: 22 22;
12097                fixed: 1 1;
12098                rel1.to: "e.dragable.slider";
12099                rel2.to: "e.dragable.slider";
12100                image.normal: "slider.png";
12101             }
12102             description {
12103                state: "clicked" 0.0;
12104                inherit: "default" 0.0;
12105                image.normal: "slider_clicked.png";
12106             }
12107          }
12108          part {
12109             name: "clip";
12110             type: RECT;
12111             description {
12112                state: "default" 0.0;
12113                color: 255 255 255 255;
12114             }
12115             description {
12116                state: "disabled" 0.0;
12117                inherit: "default" 0.0;
12118                color: 255 255 255 128;
12119             }
12120          }
12121          part {
12122             name: "event";
12123             type: RECT;
12124             mouse_events: 1;
12125             description {
12126                state: "default" 0.0;
12127                visible: 0;
12128                color: 0 0 0 0;
12129             }
12130             description {
12131                state: "disabled" 0.0;
12132                inherit: "default" 0.0;
12133                visible: 1;
12134             }
12135          }
12136       }
12137       programs {
12138          program {
12139             name: "sld_p1_down";
12140             signal: "mouse,down,1";
12141             source: "sld_p1";
12142             action: DRAG_VAL_PAGE 0.0 -1.0;
12143             target: "e.dragable.slider";
12144          }
12145          program {
12146             name: "sld_p2_down";
12147             signal: "mouse,down,1";
12148             source: "sld_p2";
12149             action: DRAG_VAL_PAGE  0.0 1.0;
12150             target: "e.dragable.slider";
12151          }
12152          program {
12153             name: "button_down";
12154             signal: "mouse,down,1";
12155             source: "e.dragable.slider";
12156             action: STATE_SET "clicked" 0.0;
12157             target: "button";
12158          }
12159          program {
12160             name: "button_up";
12161             signal: "mouse,up,1";
12162             source: "e.dragable.slider";
12163             action: STATE_SET "default" 0.0;
12164             target: "button";
12165          }
12166          program {
12167             name: "show_label";
12168             signal: "e,action,show,label";
12169             source: "e";
12170             action: STATE_SET "active" 0.0;
12171             target: "base";
12172             target: "label";
12173             target: "label_base";
12174             target: "e.text.label";
12175          }
12176          program {
12177             name: "hide_label";
12178             signal: "e,action,hide,label";
12179             source: "e";
12180             action: STATE_SET "default" 0.0;
12181             target: "base";
12182             target: "label";
12183             target: "label_base";
12184             target: "e.text.label";
12185          }
12186          program {
12187             name: "disable";
12188             signal: "e,state,disabled";
12189             source: "e";
12190             action: STATE_SET "disabled" 0.0;
12191             target: "clip";
12192             target: "event";
12193          }
12194          program {
12195             name: "enable";
12196             signal: "e,state,enabled";
12197             source: "e";
12198             action: STATE_SET "default" 0.0;
12199             target: "clip";
12200             target: "event";
12201          }
12202       }
12203    }
12204    group {
12205       name: "e/widgets/slider_horizontal";
12206       images {
12207          image: "slider.png" COMP;
12208          image: "slider_clicked.png" COMP;
12209          image: "sb_runnerh.png" COMP;
12210          image: "inset_sunk.png" COMP;
12211       }
12212       parts {
12213          part {
12214             name: "base";
12215             type: RECT;
12216             mouse_events: 1;
12217             description {
12218                state: "default" 0.0;
12219                color: 0 0 0 0;
12220                min: 0 22;
12221                rel1.offset: 2 2;
12222                rel2.offset: -3 -3;
12223             }
12224             description {
12225                state: "active" 0.0;
12226                inherit: "default" 0.0;
12227                rel2 {
12228                   to_x: "label";
12229                   relative: 0.0  1.0;
12230                   offset: -1   -3;
12231                }
12232             }
12233          }
12234          part {
12235             name: "runner";
12236             mouse_events: 0;
12237             clip_to: "clip";
12238             description {
12239                state: "default" 0.0;
12240                max: 99999 3;
12241                rel1.to: "base";
12242                rel2.to: "base";
12243                image {
12244                   normal: "sb_runnerh.png";
12245                   border: 4 4 0 0;
12246                }
12247                fill.smooth: 0;
12248             }
12249          }
12250          part {
12251             name: "label_base";
12252             clip_to: "clip";
12253             type: RECT;
12254             description {
12255                state: "default" 0.0;
12256                color: 255 255 255 0;
12257                visible: 0;
12258                rel1.to: "label";
12259                rel1.offset: 1 1;
12260                rel2.to: "label";
12261                rel2.offset: -2 -2;
12262             }
12263             description {
12264                state: "active" 0.0;
12265                inherit: "default" 0.0;
12266                visible: 1;
12267             }
12268          }
12269          part {
12270             name: "label";
12271             mouse_events: 0;
12272             clip_to: "clip";
12273             description {
12274                state: "default" 0.0;
12275                visible: 0;
12276             }
12277             description {
12278                state: "active" 0.0;
12279                min: 20 0;
12280                rel1 {
12281                   to: "e.text.label";
12282                   offset: -4 -2;
12283                }
12284                rel2 {
12285                   to: "e.text.label";
12286                   offset: 2   1;
12287                }
12288             }
12289          }
12290          part {
12291             name: "e.text.label";
12292             type: TEXT;
12293             mouse_events: 0;
12294             clip_to: "clip";
12295             scale: 1;
12296             description {
12297                state: "default" 0.0;
12298                visible: 0;
12299             }
12300             description {
12301                state: "active" 0.0;
12302                align: 1.0 0.5;
12303                fixed: 1 0;
12304                rel1 {
12305                   relative: 1.0  0.0;
12306                   offset: -8   7;
12307                }
12308                rel2 {
12309                   relative: 1.0  1.0;
12310                   offset: -8 -8;
12311                }
12312                color_class: "slider_text";
12313                text {
12314                   text: "0.0";
12315                   font: "Sans";
12316                   size: 10;
12317                   min: 1 1;
12318                   align: 0.5 0.5;
12319                   text_class: "slider";
12320                }
12321             }
12322          }
12323          part {
12324             name: "sld_p1";
12325             type: RECT;
12326             mouse_events: 1;
12327             description {
12328                state: "default" 0.0;
12329                color: 0 0 0 0;
12330                rel2 {
12331                   relative: 0.0 1.0;
12332                   to: "e.dragable.slider";
12333                }
12334             }
12335          }
12336          part {
12337             name: "sld_p2";
12338             type: RECT;
12339             mouse_events: 1;
12340             description {
12341                state: "default" 0.0;
12342                color: 0 0 0 0;
12343                rel1 {
12344                   relative: 1.0 0.0;
12345                   to: "e.dragable.slider";
12346                }
12347             }
12348          }
12349          part {
12350             name: "e.swallow.bar";
12351             type: SWALLOW;
12352             description { state: "default" 0.0;
12353                rel1 {
12354                   to_x: "base";
12355                   to_y: "e.dragable.slider";
12356                   offset: 5 0;
12357                }
12358                rel2 {
12359                   to_x: "base";
12360                   to_y: "e.dragable.slider";
12361                   offset: -6 -1;
12362                }
12363             }
12364          }
12365          part {
12366             name: "e.dragable.slider";
12367             type: RECT;
12368             mouse_events: 1;
12369             scale: 1;
12370             dragable {
12371                x: 1 1 0;
12372                y: 0 0 0;
12373                confine: "base";
12374             }
12375             description {
12376                state: "default" 0.0;
12377                min: 11 11;
12378                fixed: 1 1;
12379                rel1 {
12380                   relative: 0.5  0.5;
12381                   to: "base";
12382                }
12383                rel2 {
12384                   relative: 0.5  0.5;
12385                   offset: 0    0;
12386                   to: "base";
12387                }
12388                color: 0 0 0 0;
12389             }
12390          }
12391          part {
12392             name: "slider";
12393             mouse_events: 0;
12394             clip_to: "clip";
12395             scale: 1;
12396             description {
12397                state: "default" 0.0;
12398                min: 22 22;
12399                fixed: 1 1;
12400                rel1.to: "e.dragable.slider";
12401                rel2.to: "e.dragable.slider";
12402                image.normal: "slider.png";
12403             }
12404             description {
12405                state: "clicked" 0.0;
12406                inherit: "default" 0.0;
12407                image.normal: "slider_clicked.png";
12408             }
12409          }
12410          part {
12411             name: "clip";
12412             type: RECT;
12413             description {
12414                state: "default" 0.0;
12415             }
12416             description {
12417                state: "disabled" 0.0;
12418                inherit: "default" 0.0;
12419                color: 255 255 255 128;
12420             }
12421          }
12422          part {
12423             name: "event";
12424             type: RECT;
12425             mouse_events: 1;
12426             description {
12427                state: "default" 0.0;
12428                visible: 0;
12429                color: 0 0 0 0;
12430             }
12431             description {
12432                state: "disabled" 0.0;
12433                inherit: "default" 0.0;
12434                visible: 1;
12435             }
12436          }
12437       }
12438       programs {
12439          program {
12440             name: "sld_p1_down";
12441             signal: "mouse,down,1";
12442             source: "sld_p1";
12443             action: DRAG_VAL_PAGE -1.0 0.0;
12444             target: "e.dragable.slider";
12445          }
12446          program {
12447             name: "sld_p2_down";
12448             signal: "mouse,down,1";
12449             source: "sld_p2";
12450             action: DRAG_VAL_PAGE  1.0 0.0;
12451             target: "e.dragable.slider";
12452          }
12453          program {
12454             name: "sld_down";
12455             signal: "mouse,down,1";
12456             source: "e.dragable.slider";
12457             action: STATE_SET "clicked" 0.0;
12458             target: "slider";
12459          }
12460          program {
12461             name: "sld_up";
12462             signal: "mouse,up,1";
12463             source: "e.dragable.slider";
12464             action: STATE_SET "default" 0.0;
12465             target: "slider";
12466          }
12467          program {
12468             name: "show_label";
12469             signal: "e,action,show,label";
12470             source: "e";
12471             action: STATE_SET "active" 0.0;
12472             target: "base";
12473             target: "label";
12474             target: "label_base";
12475             target: "e.text.label";
12476          }
12477          program {
12478             name: "hide_label";
12479             signal: "e,action,hide,label";
12480             source: "e";
12481             action: STATE_SET "default" 0.0;
12482             target: "base";
12483             target: "label";
12484             target: "label_base";
12485             target: "e.text.label";
12486          }
12487          program {
12488             name: "disable";
12489             signal: "e,state,disabled";
12490             source: "e";
12491             action: STATE_SET "disabled" 0.0;
12492             target: "clip";
12493             target: "event";
12494          }
12495          program {
12496             name: "enable";
12497             signal: "e,state,enabled";
12498             source: "e";
12499             action: STATE_SET "default" 0.0;
12500             target: "clip";
12501             target: "event";
12502          }
12503       }
12504    }
12505    /* e/widgets/frame is used in the Config Dialog
12506       to outline the content                       */
12507    group {
12508       name: "e/widgets/frame";
12509       images {
12510          image: "frame_1.png" COMP;
12511          image: "frame_2.png" COMP;
12512          image: "dia_grad.png" COMP;
12513       }
12514       parts {
12515          part {
12516             name: "base0";
12517             mouse_events: 0;
12518             description {
12519                state: "default" 0.0;
12520                color_class: "frame_base";
12521                image.normal: "dia_grad.png";
12522                rel1.to: "over";
12523                rel2.to: "over";
12524                fill {
12525                   smooth: 0;
12526                   size {
12527                      relative: 0.0 1.0;
12528                      offset: 64 0;
12529                   }
12530                }
12531             }
12532          }
12533          part {
12534             name: "base";
12535             mouse_events: 0;
12536             description {
12537                state: "default" 0.0;
12538                image {
12539                   normal: "frame_2.png";
12540                   border: 5 5 32 26;
12541                   middle: 0;
12542                }
12543                fill.smooth : 0;
12544             }
12545          }
12546          part {
12547             name: "e.swallow.content";
12548             type: SWALLOW;
12549             description {
12550                state: "default" 0.0;
12551                rel1 {
12552                   to_y: "e.text.label";
12553                   relative: 0.0 1.0;
12554                   offset: 8 2;
12555                }
12556                rel2.offset: -9 -9;
12557             }
12558          }
12559          part {
12560             name: "e.text.label";
12561             type: TEXT;
12562             mouse_events: 0;
12563             scale: 1;
12564             description {
12565                state: "default" 0.0;
12566                align: 0.0 0.0;
12567                fixed: 0 1;
12568                rel1 {
12569                   relative: 0.0 0.0;
12570                   offset: 6 6;
12571                }
12572                rel2 {
12573                   relative: 1.0 0.0;
12574                   offset: -7 6;
12575                }
12576                color: 0 0 0 64;
12577                text {
12578                   font: "Sans:style=Bold";
12579                   size: 10;
12580                   min: 1 1;
12581                   max: 1 1;
12582                   align: 0.0 0.0;
12583                   text_class: "frame";
12584                }
12585             }
12586          }
12587          part {
12588             name: "over";
12589             mouse_events: 0;
12590             description {
12591                state: "default" 0.0;
12592                rel1.offset: 4 4;
12593                rel2.offset: -5 -5;
12594                image {
12595                   normal: "frame_1.png";
12596                   border: 2 2 28 22;
12597                   middle: 0;
12598                }
12599                fill.smooth : 0;
12600             }
12601          }
12602       }
12603    }
12604    group {
12605       name: "e/widgets/label";
12606       parts {
12607          part {
12608             name: "e.text.label";
12609             type: TEXT;
12610             mouse_events: 0;
12611             scale: 1;
12612             description {
12613                state: "default" 0.0;
12614                rel1.offset: 2 2;
12615                rel2.offset: -3 -3;
12616                color_class: "label_text";
12617                text {
12618                   font: "Sans";
12619                   size: 10;
12620                   min: 1 1;
12621                   align: 0.0 0.5;
12622                   text_class: "label";
12623                }
12624             }
12625             description {
12626                state: "disabled" 0.0;
12627                inherit: "default" 0.0;
12628                color_class: "label_text_disabled";
12629             }
12630          }
12631       }
12632       programs {
12633          program {
12634             name: "disable";
12635             signal: "e,state,disabled";
12636             source: "e";
12637             action: STATE_SET "disabled" 0.0;
12638             target: "e.text.label";
12639          }
12640          program {
12641             name: "enable";
12642             signal: "e,state,enabled";
12643             source: "e";
12644             action: STATE_SET "default" 0.0;
12645             target: "e.text.label";
12646          }
12647       }
12648    }
12649
12650    /* e/widgets/textblock is used in the description
12651       of modules in Module Config dialog             */
12652    group {
12653       name: "e/widgets/textblock";
12654       styles {
12655          style {
12656             name: "textblock_style";
12657             base: "font=Sans font_size=10 align=left color=#000 style=shadow shadow_color=#ffffff80 wrap=word";
12658             tag: "title" "+ font=Sans:style=Bold font_size=12 style=soft_shadow color=#fff shadow_color=#00000021";
12659             tag: "hilight" "+ font=Sans:style=Bold style=glow color=#fff glow2_color=#333333be glow_color=#0000005a";
12660             tag: "urgent" "+ font=Sans:style=Bold style=glow color=#fff glow2_color=#333 glow_color=#b01010";
12661             tag: "b" "+ font=Sans:style=Bold";
12662             tag: "br" "\n";
12663          }
12664       }
12665       parts {
12666          part {
12667             name: "e.textblock.text";
12668             type: TEXTBLOCK;
12669             mouse_events: 0;
12670             scale: 1;
12671             description {
12672                state: "default" 0.0;
12673                rel1.offset: 4 4;
12674                rel2.offset: -5 -5;
12675                text {
12676                   style: "textblock_style";
12677                   min: 1 1;
12678                }
12679             }
12680          }
12681       }
12682    }
12683
12684 /////////////////////////////////////////////////////////////////////////////
12685 /*** GADMAN ***/
12686
12687    group {
12688       name: "e/gadman/popup";
12689       images.image: "base_bg.png" COMP;
12690       parts {
12691          part {
12692             name: "base";
12693             mouse_events: 0;
12694             description {
12695                state: "default" 0.0;
12696                image {
12697                   normal: "base_bg.png";
12698                   border: 2 2 2 2;
12699                }
12700                fill.smooth: 0;
12701             }
12702          }
12703          part {
12704             name: "e.swallow.content";
12705             type: SWALLOW;
12706             description {
12707                state: "default" 0.0;
12708                rel1.offset: 3 3;
12709                rel2.offset: -4 -4;
12710             }
12711          }
12712       }
12713    }
12714    group {
12715       name: "e/gadman/full_bg";
12716       parts {
12717          part {
12718             name: "bg";
12719             type: RECT;
12720             mouse_events: 0;
12721             description {
12722                state: "default" 0.0;
12723                color: 0 0 0 0;
12724             }
12725             description {
12726                state: "visible" 0.0;
12727                color: 0 0 0 128;
12728             }
12729          }
12730          part {
12731             name: "custom_bg";
12732             type: RECT;
12733             description {
12734                state: "default" 0.0;
12735                color: 255 255 255 0;
12736             }
12737             description {
12738                state: "visible" 0.0;
12739                color: 255 255 255 200;
12740             }
12741          }
12742          part {
12743             name: "e.swallow.bg";
12744             type: SWALLOW;
12745             clip_to: "custom_bg";
12746             description {
12747                state: "default" 0.0;
12748             }
12749          }
12750          part {
12751             name: "grabber";
12752             type: RECT;
12753             mouse_events: 1;
12754             repeat_events: 1;
12755             description {
12756                state: "default" 0.0;
12757                color: 0 0 0 0;
12758             }
12759          }
12760       }
12761       programs {
12762          program {
12763             name: "show";
12764             signal: "e,state,visibility,show";
12765             source: "e";
12766             action: STATE_SET "visible" 0.0;
12767             transition: LINEAR 0.4;
12768             target: "bg";
12769          }
12770          program {
12771             name: "show_now";
12772             signal: "e,state,visibility,show,now";
12773             source: "e";
12774             action: STATE_SET "visible" 0.0;
12775             transition: LINEAR 0.0;
12776             target: "bg";
12777          }
12778          program {
12779             name: "hide";
12780             signal: "e,state,visibility,hide";
12781             source: "e";
12782             action: STATE_SET "default" 0.0;
12783             transition: LINEAR 0.4;
12784             target: "bg";
12785             after: "hide_stop";
12786          }
12787          program {
12788             name: "hide_now";
12789             signal: "e,state,visibility,hide,now";
12790             source: "e";
12791             action: STATE_SET "default" 0.0;
12792             transition: LINEAR 0.0;
12793             target: "bg";
12794             after: "hide_stop";
12795          }
12796          program {
12797             name: "show_custom";
12798             signal: "e,state,visibility,show,custom";
12799             source: "e";
12800             action: STATE_SET "visible" 0.0;
12801             transition: LINEAR 0.4;
12802             target: "custom_bg";
12803          }
12804          program {
12805             name: "show_custom_now";
12806             signal: "e,state,visibility,show,custom,now";
12807             source: "e";
12808             action: STATE_SET "visible" 0.0;
12809             transition: LINEAR 0.0;
12810             target: "custom_bg";
12811          }
12812          program {
12813             name: "hide_custom";
12814             signal: "e,state,visibility,hide,custom";
12815             source: "e";
12816             action: STATE_SET "default" 0.0;
12817             transition: LINEAR 0.4;
12818             target: "custom_bg";
12819             after: "hide_stop";
12820          }
12821          program {
12822             name: "hide_custom_now";
12823             signal: "e,state,visibility,hide,custom,now";
12824             source: "e";
12825             action: STATE_SET "default" 0.0;
12826             transition: LINEAR 0.0;
12827             target: "custom_bg";
12828             after: "hide_stop";
12829          }
12830          program {
12831             name: "hide_stop";
12832             action: SIGNAL_EMIT "e,action,hide,stop" "";
12833          }
12834       }
12835    }
12836    group {
12837       name: "e/gadman/frame";
12838       images.image: "inset_raised.png" COMP;
12839       parts {
12840          part {
12841             name: "bg_clip";
12842             type: RECT;
12843             mouse_events: 0;
12844             description {
12845                state: "default" 0.0;
12846                rel1.to: "overlay";
12847                rel2.to: "overlay";
12848                color: 255 255 255 255;
12849             }
12850             description {
12851                state: "plain" 0.0;
12852                rel1.relative: 0.0 0.0;
12853                rel2.relative: 0.0 0.0;
12854                color: 255 255 255 255;
12855             }
12856          }
12857          part {
12858             name: "items_clip";
12859             type: RECT;
12860             mouse_events: 0;
12861             description {
12862                state: "default" 0.0;
12863                rel1 {
12864                   to: "overlay";
12865                   offset: 4  4;
12866                }
12867                rel2 {
12868                   to: "overlay";
12869                   offset: -5  -5;
12870                }
12871                color: 255 255 255 255;
12872             }
12873             description {
12874                state: "hidden" 0.0;
12875                inherit: "default" 0.0;
12876                color: 255 255 255 0;
12877             }
12878          }
12879          part {
12880             name: "e.swallow.content";
12881             type: SWALLOW;
12882             clip_to: "items_clip";
12883             description {
12884                state: "default" 0.0;
12885                rel1.offset: 4  4;
12886                rel2.offset: -5  -5;
12887                color: 255 255 255 255;
12888             }
12889             description {
12890                state: "hidden" 0.0;
12891                rel1.relative: 0.5 0.5;
12892                rel2.relative: 0.5 0.5;
12893                color: 255 255 255 0;
12894             }
12895          }
12896          part {
12897             name: "overlay";
12898             mouse_events: 0;
12899             clip_to: "bg_clip";
12900             description {
12901                state: "default" 0.0;
12902                image {
12903                   normal: "inset_raised.png";
12904                   border: 7 7 7 7;
12905                   middle: 0;
12906                }
12907                fill.smooth: 0;
12908                color: 255 255 255 255;
12909             }
12910             description {
12911                state: "hidden" 0.0;
12912                inherit: "default" 0.0;
12913                rel1.relative: 0.5 0.5;
12914                rel2.relative: 0.5 0.5;
12915                color: 255 255 255 0;
12916             }
12917          }
12918       }
12919       programs {
12920          program {
12921             name: "inset";
12922             signal: "e,state,visibility,inset";
12923             source: "e";
12924             action: STATE_SET "default" 0.0;
12925             target: "bg_clip";
12926          }
12927          program {
12928             name: "plain";
12929             signal: "e,state,visibility,plain";
12930             source: "e";
12931             action: STATE_SET "plain" 0.0;
12932             target: "bg_clip";
12933          }
12934          program {
12935             name: "hide";
12936             signal: "e,state,visibility,hide";
12937             source: "e";
12938             action: STATE_SET "hidden" 0.0;
12939             transition: ACCELERATE 0.4;
12940             target: "items_clip";
12941             target: "overlay";
12942             target: "e.swallow.content";
12943          }
12944          program {
12945             name: "hide_now";
12946             signal: "e,state,visibility,hide,now";
12947             source: "e";
12948             action: STATE_SET "hidden" 0.0;
12949             transition: LINEAR 0.0;
12950             target: "items_clip";
12951             target: "overlay";
12952             target: "e.swallow.content";
12953          }
12954          program {
12955             name: "show";
12956             signal: "e,state,visibility,show";
12957             source: "e";
12958             action: STATE_SET "default" 0.0;
12959             transition: DECELERATE 0.4;
12960             target: "items_clip";
12961             target: "overlay";
12962             target: "e.swallow.content";
12963          }
12964          program {
12965             name: "show_now";
12966             signal: "e,state,visibility,show,now";
12967             source: "e";
12968             action: STATE_SET "default" 0.0;
12969             transition: LINEAR 0.0;
12970             target: "items_clip";
12971             target: "overlay";
12972             target: "e.swallow.content";
12973          }
12974       }
12975    }
12976    group {
12977       name: "e/gadman/control";
12978       images {
12979          image: "gadman_frame.png" COMP;
12980          image: "gadman_border.png" COMP;
12981          image: "gadman_top.png" COMP;
12982          image: "gadman_bottom.png" COMP;
12983          image: "gadman_left.png" COMP;
12984          image: "gadman_right.png" COMP;
12985       }
12986       parts {
12987          part {
12988             name: "hclip";
12989             mouse_events: 0;
12990             type: RECT;
12991             description {
12992                state: "default" 0.0;
12993                visible: 1;
12994                rel1.offset: -85 -85;
12995                rel2.offset: 74 74;
12996             }
12997             description {
12998                state: "disabled" 0.0;
12999                inherit: "default" 0.0;
13000                visible : 0;
13001             }
13002          }
13003          part {
13004             name: "vclip";
13005             mouse_events: 0;
13006             type: RECT;
13007             description {
13008                state: "default" 0.0;
13009                visible: 1;
13010                rel1.offset: -85 -85;
13011                rel2.offset: 84 84;
13012             }
13013             description {
13014                state: "disabled" 0.0;
13015                inherit: "default" 0.0;
13016                visible : 0;
13017             }
13018          }
13019          part {
13020             name: "overlay";
13021             mouse_events: 1;
13022             description {
13023                state: "default" 0.0;
13024                rel1 {
13025                   to: "border";
13026                   offset: 4 4;
13027                }
13028                rel2 {
13029                   to: "border";
13030                   offset: -5 -5;
13031                }
13032                image.normal: "gadman_frame.png";
13033                fill.size.relative: 0 0;
13034                fill.size.offset: 24 24;
13035             }
13036          }
13037          part {
13038             name: "left_arrow1";
13039             description {
13040                state: "default" 0.0;
13041                aspect: 1.0 1.0;
13042                max: 12 24;
13043                rel1 {
13044                   relative: 0.0 0.5;
13045                   offset: 3 0;
13046                }
13047                rel2 {
13048                   relative: 0.0 0.5;
13049                   offset: 3 -1;
13050                }
13051                image.normal: "gadman_left.png";
13052             }
13053             description {
13054                state: "1" 0.0;
13055                inherit: "default" 0.0;
13056                rel1 {
13057                   relative: 0.0 0.5;
13058                   offset: -32 -12;
13059                }
13060                rel2 {
13061                   relative: 0.0 0.5;
13062                   offset: -18 11;
13063                }
13064             }
13065             description {
13066                state: "2" 0.0;
13067                inherit: "default" 0.0;
13068                rel1 {
13069                   relative: 0.0 0.5;
13070                   offset: -24 -6;
13071                }
13072                rel2 {
13073                   relative: 0.0 0.5;
13074                   offset: -10 5;
13075                }
13076             }
13077          }
13078          part {
13079             name: "left_arrow2";
13080             description {
13081                state: "default" 0.0;
13082                aspect: 1.0 1.0;
13083                max: 12 24;
13084                rel1 {
13085                   relative: 0.0 0.5;
13086                   offset: 3 0;
13087                }
13088                rel2 {
13089                   relative: 0.0 0.5;
13090                   offset: 3 -1;
13091                }
13092                image.normal: "gadman_left.png";
13093             }
13094             description {
13095                state: "1" 0.0;
13096                inherit: "default" 0.0;
13097                rel1 {
13098                   relative: 0.0 0.5;
13099                   offset: -32 -12;
13100                }
13101                rel2 {
13102                   relative: 0.0 0.5;
13103                   offset: -18 11;
13104                }
13105             }
13106             description {
13107                state: "2" 0.0;
13108                inherit: "default" 0.0;
13109                rel1 {
13110                   relative: 0.0 0.5;
13111                   offset: -24 -6;
13112                }
13113                rel2 {
13114                   relative: 0.0 0.5;
13115                   offset: -10 5;
13116                }
13117             }
13118          }
13119          part {
13120             name: "right_arrow1";
13121             description {
13122                state: "default" 0.0;
13123                aspect: 1.0 1.0;
13124                max: 12 24;
13125                rel1 {
13126                   relative: 1.0 0.5;
13127                   offset: -3 0;
13128                }
13129                rel2 {
13130                   relative: 1.0 0.5;
13131                   offset: -3 -1;
13132                }
13133                image.normal: "gadman_right.png";
13134             }
13135             description {
13136                state: "1" 0.0;
13137                inherit: "default" 0.0;
13138                rel1 {
13139                   relative: 1.0 0.5;
13140                   offset: 32 -12;
13141                }
13142                rel2 {
13143                   relative: 1.0 0.5;
13144                   offset: 18 11;
13145                }
13146             }
13147             description {
13148                state: "2" 0.0;
13149                inherit: "default" 0.0;
13150                rel1 {
13151                   relative: 1.0 0.5;
13152                   offset: 24 -6;
13153                }
13154                rel2 {
13155                   relative: 1.0 0.5;
13156                   offset: 10 5;
13157                }
13158             }
13159          }
13160          part {
13161             name: "right_arrow2";
13162             description {
13163                state: "default" 0.0;
13164                aspect: 1.0 1.0;
13165                max: 12 24;
13166                rel1 {
13167                   relative: 1.0 0.5;
13168                   offset: -3 0;
13169                }
13170                rel2 {
13171                   relative: 1.0 0.5;
13172                   offset: -3 -1;
13173                }
13174                image.normal: "gadman_right.png";
13175             }
13176             description {
13177                state: "1" 0.0;
13178                inherit: "default" 0.0;
13179                rel1 {
13180                   relative: 1.0 0.5;
13181                   offset: 32 -12;
13182                }
13183                rel2 {
13184                   relative: 1.0 0.5;
13185                   offset: 18 11;
13186                }
13187             }
13188             description {
13189                state: "2" 0.0;
13190                inherit: "default" 0.0;
13191                rel1 {
13192                   relative: 1.0 0.5;
13193                   offset: 24 -6;
13194                }
13195                rel2 {
13196                   relative: 1.0 0.5;
13197                   offset: 10 5;
13198                }
13199             }
13200          }
13201          part {
13202             name: "top_arrow1";
13203             description {
13204                state: "default" 0.0;
13205                aspect: 1.0 1.0;
13206                max: 24 12;
13207                rel1 {
13208                   relative: 0.5 0.0;
13209                   offset: 0 3;
13210                }
13211                rel2 {
13212                   relative: 0.5 0.0;
13213                   offset: -1 3;
13214                }
13215                image.normal: "gadman_top.png";
13216             }
13217             description {
13218                state: "1" 0.0;
13219                inherit: "default" 0.0;
13220                rel1 {
13221                   relative: 0.5 0.0;
13222                   offset: -12 -32;
13223                }
13224                rel2 {
13225                   relative: 0.5 0.0;
13226                   offset: 11 -18;
13227                }
13228             }
13229             description {
13230                state: "2" 0.0;
13231                inherit: "default" 0.0;
13232                rel1 {
13233                   relative: 0.5 0.0;
13234                   offset: -6 -24;
13235                }
13236                rel2 {
13237                   relative: 0.5 0.0;
13238                   offset: 5 -9;
13239                }
13240             }
13241          }
13242          part {
13243             name: "top_arrow2";
13244             description {
13245                state: "default" 0.0;
13246                aspect: 1.0 1.0;
13247                max: 24 12;
13248                rel1 {
13249                   relative: 0.5 0.0;
13250                   offset: 0 3;
13251                }
13252                rel2 {
13253                   relative: 0.5 0.0;
13254                   offset: -1 3;
13255                }
13256                image.normal: "gadman_top.png";
13257             }
13258             description {
13259                state: "1" 0.0;
13260                inherit: "default" 0.0;
13261                rel1 {
13262                   relative: 0.5 0.0;
13263                   offset: -12 -32;
13264                }
13265                rel2 {
13266                   relative: 0.5 0.0;
13267                   offset: 11 -18;
13268                }
13269             }
13270             description {
13271                state: "2" 0.0;
13272                inherit: "default" 0.0;
13273                rel1 {
13274                   relative: 0.5 0.0;
13275                   offset: -6 -24;
13276                }
13277                rel2 {
13278                   relative: 0.5 0.0;
13279                   offset: 5 -9;
13280                }
13281             }
13282          }
13283          part {
13284             name: "bottom_arrow1";
13285             description {
13286                state: "default" 0.0;
13287                aspect: 1.0 1.0;
13288                max: 24 12;
13289                rel1 {
13290                   relative: 0.5 1.0;
13291                   offset: 0 -3;
13292                }
13293                rel2 {
13294                   relative: 0.5 1.0;
13295                   offset: -1 -3;
13296                }
13297                image.normal: "gadman_bottom.png";
13298             }
13299             description {
13300                state: "1" 0.0;
13301                inherit: "default" 0.0;
13302                rel1 {
13303                   relative: 0.5 1.0;
13304                   offset: -12 18;
13305                }
13306                rel2 {
13307                   relative: 0.5 1.0;
13308                   offset: 11 31;
13309                }
13310             }
13311             description {
13312                state: "2" 0.0;
13313                inherit: "default" 0.0;
13314                rel1 {
13315                   relative: 0.5 1.0;
13316                   offset: -6 10;
13317                }
13318                rel2 {
13319                   relative: 0.5 1.0;
13320                   offset: 5 24;
13321                }
13322             }
13323          }
13324          part {
13325             name: "bottom_arrow2";
13326             description {
13327                state: "default" 0.0;
13328                aspect: 1.0 1.0;
13329                max: 24 12;
13330                rel1 {
13331                   relative: 0.5 1.0;
13332                   offset: 0 -3;
13333                }
13334                rel2 {
13335                   relative: 0.5 1.0;
13336                   offset: -1 -3;
13337                }
13338                image.normal: "gadman_bottom.png";
13339             }
13340             description {
13341                state: "1" 0.0;
13342                inherit: "default" 0.0;
13343                rel1 {
13344                   relative: 0.5 1.0;
13345                   offset: -12 18;
13346                }
13347                rel2 {
13348                   relative: 0.5 1.0;
13349                   offset: 11 31;
13350                }
13351             }
13352             description {
13353                state: "2" 0.0;
13354                inherit: "default" 0.0;
13355                rel1 {
13356                   relative: 0.5 1.0;
13357                   offset: -6 10;
13358                }
13359                rel2 {
13360                   relative: 0.5 1.0;
13361                   offset: 5 24;
13362                }
13363             }
13364          }
13365          part {
13366             name: "v1";
13367             mouse_events: 1;
13368             clip_to: "vclip";
13369             description {
13370                state: "default" 0.0;
13371                rel2.relative: 1.0 0.0;
13372                rel2.offset: -1 9;
13373             }
13374          }
13375          part {
13376             name: "v2";
13377             mouse_events: 1;
13378             clip_to: "vclip";
13379             description {
13380                state: "default" 0.0;
13381                rel1.relative: 0.0 1.0;
13382                rel1.offset: 0 -8;
13383             }
13384          }
13385          part {
13386             name: "h1";
13387             mouse_events: 1;
13388             clip_to: "hclip";
13389             description {
13390                state: "default" 0.0;
13391                rel2.relative: 0.0 1.0;
13392                rel2.offset: 9 -1;
13393             }
13394          }
13395          part {
13396             name: "h2";
13397             mouse_events: 1;
13398             clip_to: "hclip";
13399             description {
13400                state: "default" 0.0;
13401                rel1.relative: 1.0 0.0;
13402                rel1.offset: -8 0;
13403             }
13404          }
13405          part {
13406             name: "border";
13407             mouse_events: 1;
13408             repeat_events: 1;
13409             description {
13410                state: "default" 0.0;
13411                image {
13412                   normal: "gadman_border.png";
13413                   border: 10 10 10 10;
13414                   middle: 0;
13415                }
13416                fill.smooth: 0;
13417             }
13418          }
13419       }
13420       programs {
13421          program {
13422             name: "api_hsize_on";
13423             signal: "e,state,hsize,on";
13424             source: "e";
13425             action: STATE_SET "default" 0.0;
13426             target: "hclip";
13427          }
13428          program {
13429             name: "api_hsize_off";
13430             signal: "e,state,hsize,off";
13431             source: "e";
13432             action: STATE_SET "disabled" 0.0;
13433             target: "hclip";
13434          }
13435          program {
13436             name: "api_vsize_on";
13437             signal: "e,state,vsize,on";
13438             source: "e";
13439             action: STATE_SET "default" 0.0;
13440             target: "vclip";
13441          }
13442          program {
13443             name: "api_vsize_off";
13444             signal: "e,state,vsize,off";
13445             source: "e";
13446             action: STATE_SET "disabled" 0.0;
13447             target: "vclip";
13448          }
13449          /*
13450          program {
13451             name: "api_move_on";
13452             signal: "e,state,move,on";
13453             source: "e";
13454          }
13455          program {
13456             name: "api_move_off";
13457             signal: "e,state,move,off";
13458             source: "e";
13459          }
13460          program {
13461             name: "api_active";
13462             signal: "e,state,focused";
13463             source: "e";
13464          }
13465          program {
13466             name: "api_inactive";
13467             signal: "e,state,unfocused";
13468             source: "e";
13469          }
13470          */
13471          // MOVE PROGRAMS
13472          program {
13473             name: "mv_down";
13474             signal: "mouse,down,1";
13475             source: "overlay";
13476             action: SIGNAL_EMIT "e,action,move,start" "";
13477          }
13478          program {
13479             name: "mv_up";
13480             signal: "mouse,up,1";
13481             source: "overlay";
13482             action: SIGNAL_EMIT "e,action,move,stop" "";
13483          }
13484          program {
13485             name: "mv_move";
13486             signal: "mouse,move";
13487             source: "overlay";
13488             action: SIGNAL_EMIT "e,action,move,go" "";
13489          }
13490          program {
13491             name: "h1_down1";
13492             signal: "mouse,down,1";
13493             source: "h1";
13494             action: STATE_SET "clicked" 0.0;
13495             target: "h1";
13496          }
13497          program {
13498             name: "h1_up1";
13499             signal: "mouse,up,1";
13500             source: "h1";
13501             action: STATE_SET "default" 0.0;
13502             target: "h1";
13503          }
13504          program {
13505             name: "h1_down2";
13506             signal: "mouse,down,1";
13507             source: "h1";
13508             action: SIGNAL_EMIT "e,action,resize,left,start" "";
13509          }
13510          program {
13511             name: "h1_up2";
13512             signal: "mouse,up,1";
13513             source: "h1";
13514             action: SIGNAL_EMIT "e,action,resize,left,stop" "";
13515          }
13516          program {
13517             name: "h1_move";
13518             signal: "mouse,move";
13519             source: "h1";
13520             action: SIGNAL_EMIT "e,action,resize,left,go" "";
13521          }
13522          program {
13523             name: "h2_down1";
13524             signal: "mouse,down,1";
13525             source: "h2";
13526             action: STATE_SET "clicked" 0.0;
13527             target: "h2";
13528          }
13529          program {
13530             name: "h2_up1";
13531             signal: "mouse,up,1";
13532             source: "h2";
13533             action: STATE_SET "default" 0.0;
13534             target: "h2";
13535          }
13536          program {
13537             name: "h2_down2";
13538             signal: "mouse,down,1";
13539             source: "h2";
13540             action: SIGNAL_EMIT "e,action,resize,right,start" "";
13541          }
13542          program {
13543             name: "h2_up2";
13544             signal: "mouse,up,1";
13545             source: "h2";
13546             action: SIGNAL_EMIT "e,action,resize,right,stop" "";
13547          }
13548          program {
13549             name: "h2_move";
13550             signal: "mouse,move";
13551             source: "h2";
13552             action: SIGNAL_EMIT "e,action,resize,right,go" "";
13553          }
13554          program {
13555             name: "v1_down1";
13556             signal: "mouse,down,1";
13557             source: "v1";
13558             action: STATE_SET "clicked" 0.0;
13559             target: "v1";
13560          }
13561          program {
13562             name: "v1_up1";
13563             signal: "mouse,up,1";
13564             source: "v1";
13565             action: STATE_SET "default" 0.0;
13566             target: "v1";
13567          }
13568          program {
13569             name: "v1_down2";
13570             signal: "mouse,down,1";
13571             source: "v1";
13572             action: SIGNAL_EMIT "e,action,resize,up,start" "";
13573          }
13574          program {
13575             name: "v1_up2";
13576             signal: "mouse,up,1";
13577             source: "v1";
13578             action: SIGNAL_EMIT "e,action,resize,up,stop" "";
13579          }
13580          program {
13581             name: "v1_move";
13582             signal: "mouse,move";
13583             source: "v1";
13584             action: SIGNAL_EMIT "e,action,resize,up,go" "";
13585          }
13586          program {
13587             name: "v2_down1";
13588             signal: "mouse,down,1";
13589             source: "v2";
13590             action: STATE_SET "clicked" 0.0;
13591             target: "v2";
13592          }
13593          program {
13594             name: "v2_up1";
13595             signal: "mouse,up,1";
13596             source: "v2";
13597             action: STATE_SET "default" 0.0;
13598             target: "v2";
13599          }
13600          program {
13601             name: "v2_down2";
13602             signal: "mouse,down,1";
13603             source: "v2";
13604             action: SIGNAL_EMIT "e,action,resize,down,start" "";
13605          }
13606          program {
13607             name: "v2_up2";
13608             signal: "mouse,up,1";
13609             source: "v2";
13610             action: SIGNAL_EMIT "e,action,resize,down,stop" "";
13611          }
13612          program {
13613             name: "v2_move";
13614             signal: "mouse,move";
13615             source: "v2";
13616             action: SIGNAL_EMIT "e,action,resize,down,go" "";
13617          }
13618          // LEFT ARROW
13619          program {
13620             name: "start_left1";
13621             signal: "mouse,in";
13622             source: "h1";
13623             after: "left1_1";
13624          }
13625          program {
13626             name: "start_left2";
13627             signal: "mouse,in";
13628             source: "h1";
13629             in: 0.4 0.0;
13630             after: "left2_1";
13631          }
13632          program {
13633             name: "left1_1";
13634             action: STATE_SET "1" 0.0;
13635             target: "left_arrow1";
13636             transition: LINEAR 0.4;
13637             after: "left1_2";
13638          }
13639          program {
13640             name: "left1_2";
13641             action: STATE_SET "2" 0.0;
13642             target: "left_arrow1";
13643             transition: LINEAR 0.4;
13644             after: "left1_r";
13645          }
13646          program {
13647             name: "left1_r";
13648             action: STATE_SET "default" 0.0;
13649             target: "left_arrow1";
13650             after: "left1_1";
13651          }
13652          program {
13653             name: "left2_1";
13654             action: STATE_SET "1" 0.0;
13655             target: "left_arrow2";
13656             transition: LINEAR 0.4;
13657             after: "left2_2";
13658          }
13659          program {
13660             name: "left2_2";
13661             action: STATE_SET "2" 0.0;
13662             target: "left_arrow2";
13663             transition: LINEAR 0.4;
13664             after: "left2_r";
13665          }
13666          program {
13667             name: "left2_r";
13668             action: STATE_SET "default" 0.0;
13669             target: "left_arrow2";
13670             after: "left2_1";
13671          }
13672          program {
13673             name: "stop_left1";
13674             signal: "mouse,out";
13675             source: "h1";
13676             action: ACTION_STOP;
13677             target: "left1_1";
13678             target: "left1_2";
13679             target: "left1_r";
13680             target: "left2_1";
13681             target: "left2_2";
13682             target: "left2_r";
13683             target: "start_left2";
13684             after: "stop_left2";
13685          }
13686          program {
13687             name: "stop_left2";
13688             action: STATE_SET "default" 0.0;
13689             target: "left_arrow1";
13690             target: "left_arrow2";
13691          }
13692          // RIGHT ARROW
13693          program {
13694             name: "start_right1";
13695             signal: "mouse,in";
13696             source: "h2";
13697             after: "right1_1";
13698          }
13699          program {
13700             name: "start_right2";
13701             signal: "mouse,in";
13702             source: "h2";
13703             in: 0.4 0.0;
13704             after: "right2_1";
13705          }
13706          program {
13707             name: "right1_1";
13708             action: STATE_SET "1" 0.0;
13709             target: "right_arrow1";
13710             transition: LINEAR 0.4;
13711             after: "right1_2";
13712          }
13713          program {
13714             name: "right1_2";
13715             action: STATE_SET "2" 0.0;
13716             target: "right_arrow1";
13717             transition: LINEAR 0.4;
13718             after: "right1_r";
13719          }
13720          program {
13721             name: "right1_r";
13722             action: STATE_SET "default" 0.0;
13723             target: "right_arrow1";
13724             after: "right1_1";
13725          }
13726          program {
13727             name: "right2_1";
13728             action: STATE_SET "1" 0.0;
13729             target: "right_arrow2";
13730             transition: LINEAR 0.4;
13731             after: "right2_2";
13732          }
13733          program {
13734             name: "right2_2";
13735             action: STATE_SET "2" 0.0;
13736             target: "right_arrow2";
13737             transition: LINEAR 0.4;
13738             after: "right2_r";
13739          }
13740          program {
13741             name: "right2_r";
13742             action: STATE_SET "default" 0.0;
13743             target: "right_arrow2";
13744             after: "right2_1";
13745          }
13746          program {
13747             name: "stop_right1";
13748             signal: "mouse,out";
13749             source: "h2";
13750             action: ACTION_STOP;
13751             target: "right1_1";
13752             target: "right1_2";
13753             target: "right1_r";
13754             target: "right2_1";
13755             target: "right2_2";
13756             target: "right2_r";
13757             target: "start_right2";
13758             after: "stop_right2";
13759          }
13760          program {
13761             name: "stop_right2";
13762             action: STATE_SET "default" 0.0;
13763             target: "right_arrow1";
13764             target: "right_arrow2";
13765          }
13766          // TOP ARROW
13767          program {
13768             name: "start_top1";
13769             signal: "mouse,in";
13770             source: "v1";
13771             after: "top1_1";
13772          }
13773          program {
13774             name: "start_top2";
13775             signal: "mouse,in";
13776             source: "v1";
13777             in: 0.4 0.0;
13778             after: "top2_1";
13779          }
13780          program {
13781             name: "top1_1";
13782             action: STATE_SET "1" 0.0;
13783             target: "top_arrow1";
13784             transition: LINEAR 0.4;
13785             after: "top1_2";
13786          }
13787          program {
13788             name: "top1_2";
13789             action: STATE_SET "2" 0.0;
13790             target: "top_arrow1";
13791             transition: LINEAR 0.4;
13792             after: "top1_r";
13793          }
13794          program {
13795             name: "top1_r";
13796             action: STATE_SET "default" 0.0;
13797             target: "top_arrow1";
13798             after: "top1_1";
13799          }
13800          program {
13801             name: "top2_1";
13802             action: STATE_SET "1" 0.0;
13803             target: "top_arrow2";
13804             transition: LINEAR 0.4;
13805             after: "top2_2";
13806          }
13807          program {
13808             name: "top2_2";
13809             action: STATE_SET "2" 0.0;
13810             target: "top_arrow2";
13811             transition: LINEAR 0.4;
13812             after: "top2_r";
13813          }
13814          program {
13815             name: "top2_r";
13816             action: STATE_SET "default" 0.0;
13817             target: "top_arrow2";
13818             after: "top2_1";
13819          }
13820          program {
13821             name: "stop_top1";
13822             signal: "mouse,out";
13823             source: "v1";
13824             action: ACTION_STOP;
13825             target: "top1_1";
13826             target: "top1_2";
13827             target: "top1_r";
13828             target: "top2_1";
13829             target: "top2_2";
13830             target: "top2_r";
13831             target: "start_top2";
13832             after: "stop_top2";
13833          }
13834          program {
13835             name: "stop_top2";
13836             action: STATE_SET "default" 0.0;
13837             target: "top_arrow1";
13838             target: "top_arrow2";
13839          }
13840          // BOTTOM ARROW
13841          program {
13842             name: "start_bottom1";
13843             signal: "mouse,in";
13844             source: "v2";
13845             after: "bottom1_1";
13846          }
13847          program {
13848             name: "start_bottom2";
13849             signal: "mouse,in";
13850             source: "v2";
13851             in: 0.4 0.0;
13852             after: "bottom2_1";
13853          }
13854          program {
13855             name: "bottom1_1";
13856             action: STATE_SET "1" 0.0;
13857             target: "bottom_arrow1";
13858             transition: LINEAR 0.4;
13859             after: "bottom1_2";
13860          }
13861          program {
13862             name: "bottom1_2";
13863             action: STATE_SET "2" 0.0;
13864             target: "bottom_arrow1";
13865             transition: LINEAR 0.4;
13866             after: "bottom1_r";
13867          }
13868          program {
13869             name: "bottom1_r";
13870             action: STATE_SET "default" 0.0;
13871             target: "bottom_arrow1";
13872             after: "bottom1_1";
13873          }
13874          program {
13875             name: "bottom2_1";
13876             action: STATE_SET "1" 0.0;
13877             target: "bottom_arrow2";
13878             transition: LINEAR 0.4;
13879             after: "bottom2_2";
13880          }
13881          program {
13882             name: "bottom2_2";
13883             action: STATE_SET "2" 0.0;
13884             target: "bottom_arrow2";
13885             transition: LINEAR 0.4;
13886             after: "bottom2_r";
13887          }
13888          program {
13889             name: "bottom2_r";
13890             action: STATE_SET "default" 0.0;
13891             target: "bottom_arrow2";
13892             after: "bottom2_1";
13893          }
13894          program {
13895             name: "stop_bottom1";
13896             signal: "mouse,out";
13897             source: "v2";
13898             action: ACTION_STOP;
13899             target: "bottom1_1";
13900             target: "bottom1_2";
13901             target: "bottom1_r";
13902             target: "bottom2_1";
13903             target: "bottom2_2";
13904             target: "bottom2_r";
13905             target: "start_bottom2";
13906             after: "stop_bottom2";
13907          }
13908          program {
13909             name: "stop_bottom2";
13910             action: STATE_SET "default" 0.0;
13911             target: "bottom_arrow1";
13912             target: "bottom_arrow2";
13913          }
13914       }
13915    }
13916
13917    group {
13918       name: "e/widgets/slidesel";
13919       alias: "e/pointer/enlightenment/default/mono";
13920       alias: "e/modules/connman/network";
13921       alias: "e/fileman/default/list/drop_between";
13922       alias: "e/fileman/desktop/list/drop_in";
13923       alias: "e/fileman/desktop/list/drop_between";
13924       alias: "e/fileman/desktop/overlay";
13925       alias: "e/fileman/desktop/list/fixed";
13926       alias: "e/fileman/desktop/list_odd/fixed";
13927       alias: "e/sys/halt";
13928       alias: "e/sys/reboot";
13929       alias: "e/sys/suspend";
13930       alias: "e/sys/hibernate";
13931       alias:  "e/widgets/gradpreview";
13932       alias: "e/modules/connman/main";
13933       alias: "e/modules/conf_edgebindings/selection";
13934       alias: "e/modules/start/main";
13935       alias: "e/modules/pager/popup";
13936       alias: "e/modules/pager/desk";
13937       alias: "e/modules/pager/window";
13938       alias: "e/modules/battery/main";
13939       alias: "e/modules/battery/popup";
13940       alias: "e/modules/temperature/main";
13941       alias: "e/modules/clock/main";
13942       alias: "e/modules/cpufreq/main";
13943       alias: "e/widgets/winlist/main";
13944       alias: "e/widgets/winlist/item";
13945       alias: "e/widgets/exebuf/main";
13946       alias: "e/widgets/exebuf/item";
13947       alias: "e/widgets/syscon/main";
13948       alias: "e/widgets/syscon/item/button";
13949       alias: "e/modules/mixer/main";
13950       alias: "e/fileman/default/window/main";
13951       alias: "e/fileman/default/progress";
13952       alias: "e/fileman/default/scrollframe";
13953       alias: "e/fileman/desktop/scrollframe";
13954       alias: "e/fileman/default/list/drop_in";
13955       alias: "e/fileman/default/rubberband";
13956       alias: "e/fileman/default/overlay";
13957       alias: "e/fileman/default/icon/variable";
13958       alias: "e/fileman/default/icon/fixed";
13959       alias: "e/fileman/desktop/icon/variable";
13960       alias: "e/fileman/desktop/icon/fixed";
13961       alias: "e/fileman/default/list/variable";
13962       alias: "e/fileman/default/list_odd/variable";
13963       alias: "e/fileman/default/list/fixed";
13964       alias: "e/fileman/default/list_odd/fixed";
13965       alias: "e/sys/logout";
13966       alias: "e/transpreview/0";
13967       alias: "e/transpreview/1";
13968       alias: "e/transitions/crossfade";
13969       alias: "e/transitions/vswipe";
13970       alias: "e/widgets/entry";
13971       alias: "e/widgets/entry/text";
13972       alias: "e/widgets/entry/cursor";
13973       alias: "e/widgets/entry/selection";
13974       alias: "e/widgets/preview";
13975       alias: "e/widgets/deskpreview/desk";
13976       alias: "e/widgets/color_well";
13977       alias: "e/widgets/spectrum";
13978       alias: "e/widgets/fontpreview";
13979       alias: "e/desklock/background";
13980       alias: "e/desklock/login_box";
13981       alias: "e/wizard/extra";
13982       alias: "e/wizard/main";
13983       alias: "e/widgets/about/main";
13984       alias: "e/theme/about";
13985       alias: "e/icons/enlightenment/wallpaper_stretch";
13986       alias: "e/icons/enlightenment/wallpaper_tile";
13987       alias: "e/icons/enlightenment/wallpaper_center";
13988       alias: "e/icons/enlightenment/wallpaper_scale_aspect_in";
13989       alias: "e/icons/enlightenment/wallpaper_scale_aspect_out";
13990       alias: "e/icons/enlightenment/gradient_h";
13991       alias: "e/icons/enlightenment/gradient_v";
13992       alias: "e/icons/enlightenment/gradient_du";
13993       alias: "e/icons/enlightenment/gradient_dd";
13994       alias: "e/icons/enlightenment/gradient_rad";
13995       alias: "e/init/splash";
13996       alias: "e/init/extra_screen";
13997       alias: "e/conf/wallpaper/main/window";
13998       alias: "e/conf/wallpaper/main/mini";
13999       alias: "e/conf/wallpaper/main/mini-theme";
14000       alias: "e/conf/wallpaper/main/mini-remote";
14001       alias: "e/conf/wallpaper/main/scrollframe";
14002       alias: "e/widgets/everything/main";
14003       alias: "e/widgets/everything/item";
14004       parts {
14005          part {
14006             name: "base";
14007             mouse_events: 0;
14008             type: RECT;
14009             description {
14010                state: "default" 0.0;
14011                color: 0 0 0 0;
14012             }
14013          }
14014       }
14015    }
14016 }