styles {
   style {
      name: "application_label";
      base: "font=Sans font_size=12 align=middle valign=top color=#fff wrap=word";
   }
}

collections {
   group {
      name: "e/netbook/launcher/main";

      images {
         image: "background.png" COMP;
         image: "iconviewbg.png" COMP;
      }

      data {
         item: "contents_anim" "1";
      }

      parts {
         part {
            name: "clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "sidebar-clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
            }
         }
         
         programs {
            program {
               name: "gui,action,sidebar,hide";
               signal: "gui,action,sidebar,hide";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "sidebar-clipper";
            }
         }

         part {
            name: "e.swallow.background";
            type: SWALLOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
         }

         part {
            name: "bg-override";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
               image {
                  normal: "background.png";
                  scale_hint: STATIC;
               }
            }
         }

         part {
            name: "bg";
            type: RECT;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 35;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
         }

         part {
            name: "top-bar";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 0 0 0 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -1 0;
                  to: "bg";
               }
            }
         }

         programs {

            program {
               name: "gui,action,focus,in";
               action: STATE_SET "default" 0.0;
               transition: ACCELERATE 0.5;
               target: "clipper";
            }
         }

         part {
            name: "apps-clipper";
            type: RECT;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "e.swallow.apps";
            type: SWALLOW;
            clip_to: "apps-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 0;
                  to_x: "bg";
                  to_y: "top-bar";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -1 5;
                  to_x: "bg";
                  to_y: "sidebar-bg";
               }
            }
         }

         programs {
            program {
               name: "gui,action,apps,set";
               signal: "gui,action,apps,set";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "places-clipper";
               target: "e.swallow.places";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,apps,set,2";
            }
            program {
               name: "gui,action,apps,set,2";
               action: STATE_SET "default" 0.0;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "sidebar-clipper";
            }

            program {
               name: "gui,action,apps,enter";
               signal: "gui,action,apps,enter";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               transition: ACCELERATE 0.2;
               target: "places-clipper";
               target: "e.swallow.places";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,apps,enter,2";
            }
            program {
               name: "gui,action,apps,enter,2";
               action: STATE_SET "default" 0.0;
               transition: DECELERATE 0.4;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "sidebar-clipper";
               after: "gui,action,apps,enter,3";
            }
            program {
               name: "gui,action,apps,enter,3";
               action: SIGNAL_EMIT "gui,action,anim,end" "e";
            }
         }

         part {
            name: "places-clipper";
            type: RECT;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "e.swallow.places";
            type: SWALLOW;
            clip_to: "places-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 0;
                  to_x: "bg";
                  to_y: "top-bar";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -1 5;
                  to_x: "bg";
                  to_y: "sidebar-bg";
               }
            }
         }

         programs {
            program {
               name: "gui,action,places,set";
               signal: "gui,action,places,set";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,places,set,2";
            }
            program {
               name: "gui,action,places,set,2";
               action: STATE_SET "default" 0.0;
               target: "places-clipper";
               target: "e.swallow.places";
            }

            program {
               name: "gui,action,places,enter";
               signal: "gui,action,places,enter";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               transition: ACCELERATE 0.2;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,places,enter,2";
            }
            program {
               name: "gui,action,places,enter,2";
               action: STATE_SET "default" 0.0;
               transition: DECELERATE 0.4;
               target: "places-clipper";
               target: "e.swallow.places";
               after: "gui,action,places,enter,3";
            }
            program {
               name: "gui,action,places,enter,3";
               action: SIGNAL_EMIT "gui,action,anim,end" "e";
            }
         }

         part {
            name: "preferences-clipper";
            type: RECT;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "e.swallow.preferences";
            type: SWALLOW;
            clip_to: "preferences-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 0;
                  to_x: "bg";
                  to_y: "top-bar";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -1 5;
                  to_x: "bg";
                  to_y: "sidebar-bg";
               }
            }
         }

         programs {
            program {
               name: "gui,action,preferences,set";
               signal: "gui,action,preferences,set";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,preferences,set,2";
            }
            program {
               name: "gui,action,preferences,set,2";
               action: STATE_SET "default" 0.0;
               target: "preferences-clipper";
               target: "e.swallow.preferences";
            }

            program {
               name: "gui,action,preferences,enter";
               signal: "gui,action,preferences,enter";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               transition: ACCELERATE 0.2;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,preferences,enter,2";
            }
            program {
               name: "gui,action,preferences,enter,2";
               action: STATE_SET "default" 0.0;
               transition: DECELERATE 0.4;
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               after: "gui,action,preferences,enter,3";
            }
            program {
               name: "gui,action,preferences,enter,3";
               action: SIGNAL_EMIT "gui,action,anim,end" "e";
            }
         }

         part {
            name: "add_item-clipper";
            type: RECT;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "e.swallow.add_item";
            type: SWALLOW;
            clip_to: "add_item-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to_x: "bg";
                  to_y: "top-bar";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to_x: "bg";
               }
            }
         }

         programs {
            program {
               name: "gui,action,add_item,set";
               signal: "gui,action,add_item,set";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "sidebar-clipper";
               after: "gui,action,add_item,set,2";
            }
            program {
               name: "gui,action,add_item,set,2";
               action: STATE_SET "default" 0.0;
               target: "add_item-clipper";
               target: "e.swallow.add_item";
            }

            program {
               name: "gui,action,add_item,enter";
               signal: "gui,action,add_item,enter";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               transition: ACCELERATE 0.2;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
               target: "sidebar-clipper";
               after: "gui,action,add_item,enter,2";
            }
            program {
               name: "gui,action,add_item,enter,2";
               action: STATE_SET "default" 0.0;
               transition: DECELERATE 0.4;
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,add_item,enter,3";
            }
            program {
               name: "gui,action,add_item,enter,3";
               action: SIGNAL_EMIT "gui,action,anim,end" "e";
            }
         }

         part {
            name: "sidebar-bg";
            type: RECT;
            mouse_events: 0;
            clip_to: "sidebar-clipper";
            description {
               state: "default" 0.0;
               color: 0 0 0 0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 -90;
                  to_y: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
         }

         part {
            name: "e.swallow.sidebar";
            type: SWALLOW;
            clip_to: "sidebar-clipper";
            description {
               state: "default" 0.0;
               min: 200 90;
               max: 9999 90;
               align: 0.5 1.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0.0 -90;
                  to: "sidebar-bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "sidebar-bg";
               }
            }
         }

         part {
            name: "sidebar-eventarea";
            type: RECT;
            mouse_events: 1;
            repeat_events: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1.to: "e.swallow.sidebar";
               rel2.to: "e.swallow.sidebar";
            }
         }

         part {
            name: "eventblocker";
            type: RECT;
            mouse_events: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
            description {
               state: "active" 0.0;
               color: 255 255 255 0;
               visible: 1;
            }
         }

         programs {
            program {
               signal: "load";
               action: STATE_SET "hidden" 0.0;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               after: "gui,action,focus,in";
            }

            program {
               signal: "gui,action,focus,out";
               source: "e";
               action: STATE_SET "active" 0.0;
               target: "eventblocker";
            }
            program {
               signal: "gui,action,focus,in";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "eventblocker";
            }
            program {
               name: "gui,action,hide,all";
               signal: "gui,action,hide,all";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               transition: ACCELERATE 0.2;
               target: "apps-clipper";
               target: "e.swallow.apps";
               target: "places-clipper";
               target: "e.swallow.places";
               target: "add_item-clipper";
               target: "e.swallow.add_item";
               target: "preferences-clipper";
               target: "e.swallow.preferences";
            }
         }
      }
   }

   group {
      name: "elm/scroller/base/apps";
      alias: "elm/scroller/base/places";
      alias: "elm/scroller/base/preferences";

      images {
	 image: "scrollbar-bg.png" COMP;
         image: "scrollbar-knob.png" COMP;
      }

      parts {
         part {
            name: "bg";
	    type: RECT;
	    description {
               state: "default" 0.0;
	       rel1.offset: 1 1;
	       rel2.offset: -1 -1;
	       color: 255 255 255 0;
	    }
	 }
	 part {
            name: "clipper";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
	       rel1.offset: -1000 -1000;
	       rel2.offset: 1000 1000;
	    }
	 }

	 part {
            name: "sb_all_clip";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
               visible: 1;
	       rel1.offset: -1000 -1000;
	       rel2.offset: 1000 1000;
	    }
	 }

	 part {
            name: "sb_vbar_clip";
	    type: RECT;
	    mouse_events: 0;
            clip_to: "sb_all_clip";
	    description {
               state: "default" 0.0;
	       rel1.offset: -1000 -1000;
	       rel2.offset: 1000 1000;
	    }
	    description {
               state: "hidden" 0.0;
	       visible: 0;
	       color: 255 255 255 0;
	    }
	 }

	 part {
            name: "sb_vbar";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
               color: 0 0 0 0;
	       fixed: 1 1;
	       visible: 1;
	       min: 7 7;
	       align: 0.5 0.0;
	       rel1 {
		  relative: 1.0 0.0;
		  offset: 0 0;
	       }
	       rel2 {
		  relative: 1.0 1.0;
		  offset: 6 -1;
	       }
	    }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               min: 0 0;
               visible: 0;
               rel1 {
                  relative: 1.0 0.0;
                  offset: -1 0;
               }
               rel1 {
                  relative: 1.0 0.0;
                  offset: -1 -1;
                  to_y: "sb_hbar";
               }
            }
	 }

	 part {
            name: "sb_vbar_bg";
            type: IMAGE;
	    clip_to: "sb_vbar_clip";
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
	       fixed: 1 1;
	       min: 5 20;
               max: 5 9999;
	       rel1 {
		  relative: 0.0 0.0;
		  offset: 1 0;
		  to: "sb_vbar";
	       }
	       rel2 {
		  relative: 1.0 1.0;
		  offset: -2 -1;
		  to: "sb_vbar";
	       }
               image {
                  normal: "scrollbar-bg.png";
                  border: 2 2 10 10;
               }
	    }
         }

	 part {
            name: "elm.dragable.vbar";
	    clip_to: "sb_vbar_clip";
	    mouse_events: 0;
	    dragable {
	       x: 0 0 0;
	       y: 1 1 0;
	       confine: "sb_vbar";
	    }
	    description {
               state: "default" 0.0;
	       fixed: 1 1;
	       min: 7 7;
               align: 0.5 0.5;
	       rel1 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_vbar";
	       }
	       rel2 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_vbar";
	       }
	       image {
		  normal: "scrollbar-knob.png";
		  border: 3 3 3 3;
	       }
	    }
	 }

	 part {
            name: "sb_hbar_clip";
	    type: RECT;
	    mouse_events: 0;
            clip_to: "sb_all_clip";
	    description {
               state: "default" 0.0;
	    }
	    description {
               state: "hidden" 0.0;
	       visible: 0;
	       color: 255 255 255 0;
	    }
	 }

	 part {
            name: "sb_hbar";
	    type: RECT;
	    mouse_events: 0;
	    description { state: "default" 0.0;
	       fixed: 1 1;
               color: 0 0 0 0;
	       visible: 1;
	       min: 11 11;
	       align: 0.0 1.0;
	       rel1 {
		  relative: 0.0 1.0;
		  offset: 0 -2;
	       }
	       rel2 {
		  relative: 0.0 1.0;
		  offset: -1 -2;
		  to_x: "sb_vbar";
	       }
	    }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               min: 0 0;
               visible: 0;
	       rel1 {
		  relative: 0.0 1.0;
		  offset: 0 0;
	       }
	       rel2 {
		  relative: 0.0 1.0;
		  offset: -1 -1;
		  to_x: "sb_vbar";
	       }
            }
	 }

	 part {
            name: "elm.dragable.hbar";
	    clip_to: "sb_hbar_clip";
	    mouse_events: 0;
	    dragable {
	       x: 1 1 0;
	       y: 0 0 0;
	       confine: "sb_hbar";
	    }
	    description {
               state: "default" 0.0;
	       fixed: 1 1;
	       min: 11 11;
	       rel1 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_hbar";
	       }
	       rel2 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_hbar";
	       }
	       image {
		  normal: "scrollbar-knob.png";
		  border: 4 4 4 4;
	       }
	    }
	 }

	 part {
            name: "elm.swallow.content";
	    clip_to: "clipper";
	    type: SWALLOW;
	    description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
	    }
	 }
      }

      programs {
         program { name: "load";
            signal: "load";
            source: "";
            action: STATE_SET "hidden" 0.0;
            target: "sb_hbar_clip";
            target: "sb_vbar_clip";
         }

         program { name: "elm,action,show,vbar";
            signal: "elm,action,show,vbar";
            source: "elm";
            action: STATE_SET "default" 0.0;
            target: "sb_vbar_clip";
            target: "sb_vbar";
         }

         program { name: "elm,action,hide,vbar";
            signal: "elm,action,hide,vbar";
            source: "elm";
            action: STATE_SET "hidden" 0.0;
            target: "sb_vbar_clip";
            target: "sb_vbar";
         }

         program { name: "elm,action,show,hbar";
            signal: "elm,action,show,hbar";
            source: "elm";
            action: STATE_SET "default" 0.0;
            target: "sb_hbar_clip";
            target: "sb_hbar";
         }

         program { name: "elm,action,hide,hbar";
            signal: "elm,action,hide,hbar";
            source: "elm";
            action: STATE_SET "hidden" 0.0;
            target: "sb_hbar_clip";
            target: "sb_hbar";
         }
      }
   }

   group {
      name: "elm/scroller/base/sidebar";

      images {
	 image: "arrow-left.png" COMP;
	 image: "arrow-right.png" COMP;
      }

      script {
         public arrows_apply() {
            new Float:x, Float:y;

            get_drag(PART:"elm.dragable.hbar", x, y);
            if (x == 0.0)
               set_state(PART:"sb_hbar_left_clip", "hidden", 0.0);
            else
               set_state(PART:"sb_hbar_left_clip", "default", 0.0);

            if (x == 1.0)
               set_state(PART:"sb_hbar_right_clip", "hidden", 0.0);
            else
               set_state(PART:"sb_hbar_right_clip", "default", 0.0);
         }

         public autoscroll_id;

         public autoscroll_cb(dir) {
            new Float:x, Float:y, Float:val;
            new ret;

            get_drag(PART:"elm.dragable.hbar", x, y);
            val = x + 0.015 * float(dir);
            if (val < 0.0) {
               val = 0.0;
               ret = 0;
               cancel_anim(get_int(autoscroll_id));
               set_int(autoscroll_id, 0);
            } else if (val > 1.0) {
               val = 1.0;
               ret = 0;
               cancel_anim(get_int(autoscroll_id));
               set_int(autoscroll_id, 0);
            } else
               ret = 1;

            x = val;

            set_drag(PART:"elm.dragable.hbar", x, y);
            emit("drag", "elm.dragable.hbar");
            return ret;
         }

         public autoscroll(dir) {
            new id = get_int(autoscroll_id);
            if (id)
               cancel_anim(id);

            id = anim(99999, "autoscroll_cb", dir);
            set_int(autoscroll_id, id);
         }

         public autoscroll_stop() {
            new id = get_int(autoscroll_id);
            if (id) {
               cancel_anim(id);
               set_int(id, 0);
            }
         }
      }

      parts {
         part {
            name: "bg";
	    type: RECT;
	    description {
               state: "default" 0.0;
	       rel1.offset: 1 1;
	       rel2.offset: -1 -1;
	       color: 255 255 255 0;
	    }
	 }

	 part {
            name: "sb_hbar_clip";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
               rel1.offset: 0 -16;
               rel2.offset: 0 16;
	    }
	    description {
               state: "hidden" 0.0;
	       visible: 0;
	       color: 255 255 255 0;
	    }
	 }

	 part {
            name: "sb_hbar";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
               color: 0 0 0 0;
	       fixed: 1 1;
	       visible: 0;
	       min: 1 1;
	       align: 1.0 0.0;
	       rel1 {
		  relative: 1.0 0.0;
		  offset: -2 0;
	       }
	       rel2 {
		  relative: 1.0 0.0;
		  offset: -1 -1;
	       }
	    }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
            }
	 }

	 part {
            name: "elm.dragable.hbar";
            type: RECT;
	    clip_to: "sb_hbar_clip";
	    mouse_events: 0;
	    dragable {
	       x: 0 0 0;
	       y: 1 1 0;
	       confine: "sb_hbar";
	    }
	    description {
               state: "default" 0.0;
	       fixed: 1 1;
	       rel1 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_hbar";
	       }
	       rel2 {
		  relative: 0.5 0.5;
		  offset: 0 0;
		  to: "sb_hbar";
	       }
	    }
	 }

	 part {
            name: "elm.swallow.content";
	    type: SWALLOW;
	    description {
               state: "default" 0.0;
               //step: 84 1;
               min: 84 90;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -21 -1;
               }
	    }
	 }

         part {
            name: "sb_hbar_left_clip";
            type: RECT;
	    clip_to: "sb_hbar_clip";
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "sb_hbar_left";
            type: IMAGE;
            mouse_events: 1;
            clip_to: "sb_hbar_left_clip";
            description {
               state: "default" 0.0;
               min: 19 48;
               max: 19 48;
               align: 0.0 0.5;
               rel1 {
                  relative: 0.0 0.5;
                  offset: 5 -32;
               }
               rel2 {
                  relative: 0.0 0.5;
                  offset: 23 15;
               }
               image.normal: "arrow-left.png";
            }
            description {
               state: "clicked" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 128;
            }
         }

         part {
            name: "sb_hbar_left_area";
            type: RECT;
            mouse_events: 1;
            clip_to: "sb_hbar_left_clip";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 0.0 1.0;
                  offset: 23 -1;
               }
            }
         }

         part {
            name: "sb_hbar_right_clip";
            type: RECT;
	    clip_to: "sb_hbar_clip";
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "sb_hbar_right";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "sb_hbar_right_clip";
            description {
               state: "default" 0.0;
               min: 19 48;
               max: 19 48;
               align: 1.0 0.5;
               rel1 {
                  relative: 1.0 0.5;
                  offset: -24 -32;
               }
               rel2 {
                  relative: 1.0 0.5;
                  offset: -6 15;
               }
               image.normal: "arrow-right.png";
            }
            description {
               state: "clicked" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 128;
            }
         }

         part {
            name: "sb_hbar_right_area";
            type: RECT;
            mouse_events: 1;
            clip_to: "sb_hbar_right_clip";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 1.0 0.0;
                  offset: -24 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
         }

         programs {
            program {
               name: "load-arrows";
               signal: "load";
               script {
                  arrows_apply();
               }
            }

            program {
               name: "drag";
               signal: "drag,set";
               source: "elm.dragable.hbar";
               script {
                  arrows_apply();
               }
            }

            program {
               name: "sb_hbar_left,over";
               signal: "mouse,in";
               source: "sb_hbar_left_area";
               script {
                  autoscroll(-1);
               }
            }

            program {
               name: "sb_hbar_right,over";
               signal: "mouse,in";
               source: "sb_hbar_right_area";
               script {
                  autoscroll(1);
               }
            }

            program {
               name: "sb_hbar_left,over,end";
               signal: "mouse,out";
               source: "sb_hbar_left_area";
               script {
                  autoscroll_stop();
               }
            }

            program {
               name: "sb_hbar_right,over,end";
               signal: "mouse,out";
               source: "sb_hbar_right_area";
               script {
                  autoscroll_stop();
               }
            }
         }
      }

      programs {
         program { name: "load";
            signal: "load";
            source: "";
            action: STATE_SET "hidden" 0.0;
            target: "sb_hbar_clip";
         }

         program { name: "elm,action,show,hbar";
            signal: "elm,action,show,hbar";
            source: "elm";
            action: STATE_SET "default" 0.0;
            target: "sb_hbar_clip";
            target: "sb_hbar";
         }

         program { name: "elm,action,hide,hbar";
            signal: "elm,action,hide,hbar";
            source: "elm";
            action: STATE_SET "hidden" 0.0;
            target: "sb_hbar_clip";
            target: "sb_hbar";
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/grid";
      alias: "e/netbook/launcher/main/apps/grid";

      data {
         item: "scroll_horizontal" "off";
      }

      parts {
         part {
            name: "e.box.contents";
            type: BOX;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
               box {
                  layout: "horizontal_flow";
                  align: 0.0 0.0;
               }
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/apps/layout";

      images {
         image: "iconviewbg.png" COMP;
      }


      script {
          public edit_mode_activated;
      }


      parts {
         part {
            name: "clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "bg-fill";
            type: RECT;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               color: 184 184 184 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 10 10;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -11 -11;
                  to: "bg";
               }
            }
         }

         part {
            name: "bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 15 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -16 -1;
               }
               image {
                  normal: "iconviewbg.png";
                  border: 10 10 10 10;
                  middle: 0;
               }
            }
         }

         part {
            name: "scroller-clipper";
            type: RECT;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -1000 7;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 1000 -8;
               }
            }
         }

         part {
            name: "e.swallow.scroller";
            type: SWALLOW;
            clip_to: "scroller-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 100 30;
                  to_y: "scroller-clipper";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -17 -1;
                  to_y: "scroller-clipper";
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               rel1 {
                  relative: 0.0 -1.0;
                  offset: 100 30;
                  to_y: "scroller-clipper";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -17 -1;
                  to_y: "scroller-clipper";
               }
            }
         }


         part {
            name: "edit_mode";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 -60;
                  to: "bg";
               }
               rel2 {
                  relative: 0.0 1.0;
                  offset: 70 0;
                  to: "bg";
               }
            }
         }

         part {
            name: "edit_mode.default.text";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 120 120 120 255;
               color3: 0 0 0 255;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 15 0;
                  to: "edit_mode";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 -10;
                  to: "edit_mode";
               }
               text {
                  font: "Sans";
                  size: 18;
                  min: 1 1;
                  text: "Edit";
                  align: 0.0 1.0;
               }
            }
            description {
               state: "hover" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "invisible" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
            }
         }

         part {
            name: "edit_mode.editing.text";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               color3: 0 0 0 255;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 15 0;
                  to: "edit_mode";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 -10;
                  to: "edit_mode";
               }
               text {
                  font: "Sans";
                  size: 18;
                  min: 1 1;
                  text: "Done";
                  align: 0.0 1.0;
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               color: 120 120 120 255;
            }
            description {
               state: "hover" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }

         }


         part {
            name: "add_item";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
               rel1 {
                  relative: 1.0 1.0;
                  offset: -100 -60;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "bg";
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
         }

         part {
            name: "add_item.text";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 120 120 120 0;
               color3: 0 0 0 255;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "add_item";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -15 -10;
                  to: "add_item";
               }
               text {
                  font: "Sans";
                  size: 18;
                  min: 1 1;
                  text: "Add item";
                  align: 1.0 1.0;
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               color: 120 120 120 255;
            }
            description {
               state: "hover" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         programs {
         
            program {
               name: "focus,in";
               signal: "gui,action,focus,in";
               source: "e";
            }

            program {
               name: "focus,out";
               signal: "gui,action,focus,out";
               source: "e";
            }

            program {
               name: "gui,action,enter";
               signal: "gui,action,enter";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "e.swallow.scroller";
               transition: DECELERATE 0.4;
               after: "gui,action,enter,end";
            }
            program {
               name: "gui,action,enter,end";
               action: SIGNAL_EMIT "gui,action,enter,end" "e";
            }

            program {
               name: "gui,action,exit";
               signal: "gui,action,exit";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "e.swallow.scroller";
               transition: ACCELERATE 0.2;
               after: "gui,action,exit,end";
            }
            program {
               name: "gui,action,exit,end";
               action: SIGNAL_EMIT "gui,action,exit,end" "e";
            }



		    program {
                name: "toggle_edit_mode";
                signal: "mouse,clicked,1";
                source: "edit_mode";
                script {
				    if(get_int(edit_mode_activated) == 0) {
						set_int(edit_mode_activated, 1);
                        emit("edit_mode,on", "e");
                    }
                    else {
                        set_int(edit_mode_activated, 0);
                        emit("edit_mode,off", "e");
		    		}
				}
            }

            program {
               signal: "edit_mode,on";
               source: "e";
               action: STATE_SET "invisible" 0.0;
               target: "edit_mode.default.text";
            }
            program {
               signal: "edit_mode,on";
               source: "e";
               action: STATE_SET "visible" 0.0;
               target: "edit_mode.editing.text";
               target: "add_item";
               target: "add_item.text";

            }

            program {
               signal: "edit_mode,off";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "edit_mode.default.text";
            }
            program {
               signal: "edit_mode,off";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "edit_mode.editing.text";
               target: "add_item";
               target: "add_item.text";
            }


            program {
               name: "edit_mode,mouse,in";
               signal: "mouse,in";
               source: "edit_mode";
               script {
			       if(get_int(edit_mode_activated) == 0) {
                       emit("edit_mode.default.text,mouse,in", "");
                   }
                   else {
                       emit("edit_mode.editing.text,mouse,in", "");
		    	   }
				}
            }
            program {
               name: "edit_mode,mouse,out";
               signal: "mouse,out";
               source: "edit_mode";
               script {
			       if(get_int(edit_mode_activated) == 0) {
                       emit("edit_mode.default.text,mouse,out", "");
                   }
                   else {
                       emit("edit_mode.editing.text,mouse,out", "");
		    	   }
				}
            }

            program {
               signal: "edit_mode.default.text,mouse,in";
               source: "";
               action: STATE_SET "hover" 0.0;
               target: "edit_mode.default.text";
            }
            program {
               signal: "edit_mode.default.text,mouse,out";
               source: "";
               action: STATE_SET "default" 0.0;
               target: "edit_mode.default.text";
            }
            program {
               signal: "edit_mode.editing.text,mouse,in";
               source: "";
               action: STATE_SET "hover" 0.0;
               target: "edit_mode.editing.text";
            }
            program {
               signal: "edit_mode.editing.text,mouse,out";
               source: "";
               action: STATE_SET "visible" 0.0;
               target: "edit_mode.editing.text";
            }
            
 
            program {
               name: "add_item,mouse,in";
               signal: "mouse,in";
               source: "add_item";
               action: STATE_SET "hover" 0.0;
               target: "add_item.text";
            }
            program {
               name: "add_item,mouse,out";
               signal: "mouse,out";
               source: "add_item";
               action: STATE_SET "visible" 0.0;
               target: "add_item.text";
            }
            program {
               signal: "mouse,clicked,1";
               source: "add_item";
               action: SIGNAL_EMIT "gui,action,add_item,executed" "e";
            }
            
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/places/grid";
      alias: "e/netbook/launcher/main/preferences/grid";

      data {
         item: "scroll_horizontal" "off";
      }

      parts {
         part {
            name: "e.box.contents";
            type: BOX;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
               box {
                  layout: "vertical";
                  align: 0.0 0.0;
               }
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/places/layout";
      alias: "e/netbook/launcher/main/preferences/layout";

      parts {
         part {
            name: "clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               rel1.offset: 0 -100;
               rel2.offset: -1 10;
            }
         }

         part {
            name: "e.swallow.scroller";
            type: SWALLOW;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 15 7;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -16 -1;
               }
            }
         }

         programs {
            program {
               name: "focus,in";
               signal: "gui,action,focus,in";
               source: "e";
            }

            program {
               name: "focus,out";
               signal: "gui,action,focus,out";
               source: "e";
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/grid/item";
      alias: "e/netbook/launcher/main/places/folders/item";
      alias: "e/netbook/launcher/main/places/recent/item";

      min: 169 140;

      data {
         item: "scale_min" "on";
         item: "scale_icon" "on";
         item: "selectraise" "on";
         item: "icon_size" "90";
      }

      images {
         image: "text-bg.png" COMP;
      }

      parts {
         part {
            name: "eventarea";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 5 5;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -6 -6;
               }
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            mouse_events: 0;
            scale: 0;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.5 0.0;
                  offset: -45 10;
               }
               rel2 {
                  relative: 0.5 0.0;
                  offset: 44 99;
               }
            }
            description {
               state: "big" 0.0;
               rel1 {
                  relative: 0.5 0.0;
                  offset: -50 5;
               }
               rel2 {
                  relative: 0.5 0.0;
                  offset: 49 104;
               }
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 110;
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -21 129;
               }
               text {
                  text_class: "grid_font";
                  font: "Sans";
                  size: 12;
                  min: 0 1;
                  text: "label";
                  align: 0.5 0.5;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 0;
            }
         }

         part {
            name: "label-full-clipper";
            type: RECT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               color3: 0 0 0 255;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "label-full-bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "label-full-bg";
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               visible: 1;
            }
         }

         part {
            name: "label-full-bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "label-full-clipper";
            description {
               state: "default" 0.0;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -5 -5;
                  to: "label-full";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 4 4;
                  to: "label-full";
               }
               image {
                  normal: "text-bg.png";
                  border: 5 10 5 10;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
         }

         part {
            name: "label-full";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               visible: 0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 110;
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -21 129;
               }
               text {
                  text_class: "grid_font";
                  text_source: "e.text.label";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 1 1;
                  text: "label";
                  align: 0.5 0.5;
                  min: 1 1;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
         }

         programs {

            program {
               name: "grow-anim";
               action: STATE_SET "big" 0.0;
               transition: LINEAR 0.1;
               target: "e.swallow.icon";
               target: "label-full-clipper";
            }

            program {
               name: "grow-immediate";
               action: STATE_SET "big" 0.0;
               target: "e.text.label";
               target: "label-full";
               target: "label-full-bg";
               after: "grow-anim";
            }

            program {
               name: "notify-in";
               signal: "mouse,in";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,focus,in" "e";
            }

            program {
               name: "shrink-anim";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.1;
               target: "e.swallow.icon";
               target: "label-full-clipper";
            }

            program {
               name: "shrink-immediate";
               signal: "mouse,out";
               source: "eventarea";
               action: STATE_SET "default" 0.0;
               target: "e.text.label";
               target: "label-full";
               target: "label-full-bg";
            }

            program {
               name: "notify-out";
               signal: "mouse,out";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,focus,out" "e";
            }

            program {
               signal: "gui,action,select";
               source: "e";
               after: "grow-immediate";
            }

            program {
               signal: "gui,action,unselect";
               source: "e";
               after: "shrink-immediate";
            }

            program {
               signal: "mouse,clicked,1";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,executed" "e";
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/apps/item";

      min: 200 200;

      data {
         item: "scale_min" "on";
         item: "scale_icon" "on";
         item: "selectraise" "on";
         item: "icon_size" "70";
      }

      images {
         image: "text-bg.png" COMP;
         image: "favorite_add.png" COMP;
         image: "favorite_del.png" COMP;
         image: "item-bg.png" COMP;
         image: "cog.png" COMP;
         image: "item-border-launched.png" COMP;
      }


      parts {
         part {
            name: "eventarea";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 5 5;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -6 -6;
               }
            }
         }

         programs {
            program {
               name: "eventarea,in";
               signal: "mouse,in";
               source: "eventarea";
               after: "show-item";
            }

            program {
               name: "eventarea,out";
               signal: "mouse,out";
               source: "eventarea";
               after: "hide-item";
            }
/*
            program {
               signal: "gui,action,select";
               source: "e";
               after: "show-item";
            }

            program {
               signal: "gui,action,unselect";
               source: "e";
               after: "hide-item";
            }
*/
            program {
               name: "show-item";
               action: STATE_SET "hover" 0.0;
               transition: LINEAR 0.2;
               target: "bg";
            }

            program {
               name: "hide-item";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.2;
               target: "bg";
            }
         }

         part {
            name: "bg";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 150;
               visible: 1;
               rel1 {
                  relative: 0.1 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 0.9 0.6;
                  offset: -1 -1;
               }
               image {
                  normal: "item-bg.png";
                  border: 5 5 5 5;
                  middle: DEFAULT;
               }
            }
            description {
               state: "hover" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

        part {
            name: "border-launched";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               visible: 0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.1 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 0.9 0.6;
                  offset: -1 -1;
               }
               image {
                  normal: "item-border-launched.png";
                  border: 5 5 5 5;
                  middle: DEFAULT;
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               visible: 1;
               color: 255 255 255 255;
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            mouse_events: 0;
            scale: 0;
            description {
               state: "default" 0.0;
               min: 70 70;
               max: 70 70;
               rel1 {
                  relative: 0.0 0.0;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  to: "bg";
               }
            }
         }


         part {
            name: "e.text.label";
            type: TEXTBLOCK;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 32 32 32 128;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 10;
                  to_y: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 30;
                  to_y: "bg";
               }
               text {
                  min: 0 1;
                  text: "label";
                  style: "application_label";
               }
            }
         }

         part {
            name: "actions-clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1.relative: -10 -10;
               rel2.relative: 10 10;
               visible: 0;
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               visible: 1;
            }
         }

         part {
            name: "favorite-action-bg";
            type: RECT;
            mouse_events: 1;
            clip_to: "actions-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -5 -5;
                  to: "favorite-action-icon";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 4 8;
                  to: "favorite-action-icon";
               }
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "favorite-action-icon";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "actions-clipper";
            description {
               state: "default" 0.0;
               visible: 1;
               align: 1.0 1.0;
               min: 35 35;
               max: 35 35;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 22 8;
                  to: "bg";
               }
               image.normal: "favorite_del.png";
            }
         }


         part {
            name: "settings-action-bg";
            type: RECT;
            mouse_events: 1;
            clip_to: "actions-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "eventarea";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "eventarea";
               }
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "settings-action-icon";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "actions-clipper";
            description {
               state: "default" 0.0;
               visible: 1;
               align: 1.0 0.0;
               min: 45 45;
               max: 45 45;
               color: 255 255 255 200;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 12;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -5 0;
                  to: "bg";
               }
               image.normal: "cog.png";
            }
         }


         programs {
            program {
               name: "gui,action,win,open";
               signal: "gui,action,win,open";
               source: "e";
               action: STATE_SET "visible" 0.0;
               transition: SINUSOIDAL 1.0;
               target: "border-launched";
            }

            program {
               name: "gui,action,win,close";
               signal: "gui,action,win,close";
               source: "e";
               action: STATE_SET "default" 0.0;
               transition: SINUSOIDAL 1.0;
               target: "border-launched";
            }

            program {
               name: "notify-in";
               action: SIGNAL_EMIT "gui,action,focus,in" "e";
            }

            program {
               name: "notify-out";
               action: SIGNAL_EMIT "gui,action,focus,out" "e";
            }

            program {
               signal: "mouse,clicked,1";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,executed" "e";
            }


            program {
               name: "actions_show";
               signal: "edit_mode,on";
               source: "e";
               action: STATE_SET "visible" 0.0;
               target: "actions-clipper";
            }

            program {
               name: "actions_hide";
               signal: "edit_mode,off";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "actions-clipper";
            }

            program {
               signal: "mouse,clicked,1";
               source: "favorite-action-bg";
               action: SIGNAL_EMIT "gui,action,favorite,del" "e";
            }

            program {
               signal: "mouse,clicked,1";
               source: "settings-action-bg";
               action: SIGNAL_EMIT "gui,action,settings" "e";
            }


         }
      }
   }

   group {
      name: "e/netbook/launcher/main/places/storage/item";

      min: 169 140;

      data {
         item: "scale_min" "on";
         item: "scale_icon" "on";
         item: "selectraise" "on";
         item: "icon_size" "90";
      }

      images {
         image: "text-bg.png" COMP;
         image: "open.png" COMP;
         image: "eject.png" COMP;
      }

      parts {
         part {
            name: "eventarea";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 5 5;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -6 -6;
               }
            }
         }

         part {
            name: "icon-clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 64;
            }
            description {
               state: "mounted" 0.0;
               color: 255 255 255 255;
            }
         }

         programs {
            program {
               name: "gui,state,mounted";
               signal: "gui,state,mounted";
               source: "e";
               action: STATE_SET "mounted" 0.0;
               transition: LINEAR 0.2;
               target: "icon-clipper";
            }

            program {
               name: "gui,state,unmounted";
               signal: "gui,state,unmounted";
               source: "e";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.2;
               target: "icon-clipper";
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            mouse_events: 0;
            scale: 0;
            clip_to: "icon-clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.5 0.0;
                  offset: -45 10;
               }
               rel2 {
                  relative: 0.5 0.0;
                  offset: 44 99;
               }
            }
            description {
               state: "big" 0.0;
               rel1 {
                  relative: 0.5 0.0;
                  offset: -50 5;
               }
               rel2 {
                  relative: 0.5 0.0;
                  offset: 49 104;
               }
            }
         }

         part {
            name: "overlay-clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
            description {
               state: "visible" 0.0;
               color: 255 255 255 255;
               visible: 1;
            }
         }

         programs {
            program {
               signal: "mouse,in";
               source: "eventarea";
               action: STATE_SET "visible" 0.0;
               transition: LINEAR 0.1;
               target: "overlay-clipper";
            }
            program {
               signal: "mouse,out";
               source: "eventarea";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.1;
               target: "overlay-clipper";
            }
         }

         part {
            name: "action-clipper";
            type: RECT;
            mouse_events: 0;
            clip_to: "overlay-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "action-bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "action-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 128;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -5 -5;
                  to: "action-eventarea";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 4 4;
                  to: "action-eventarea";
               }
               image {
                  normal: "text-bg.png";
                  border: 5 10 5 10;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "action-icon";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "action-clipper";
            description {
               state: "default" 0.0;
               min: 22 22;
               max: 22 22;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 30;
               }
               rel2 {
                  relative: 0.0 0.0;
                  offset: 41 51;
               }
               image.normal: "open.png";
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
               min: 0 0;
               rel2 {
                  relative: 0.0 0.0;
                  offset: 20 20;
               }
            }
         }

         part {
            name: "e.text.action";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            clip_to: "action-clipper";
            description {
               state: "default" 0.0;
               color: 224 224 224 255;
               color3: 0 0 0 128;
               rel1 {
                  relative: 1.0 0.0;
                  offset: 10 0;
                  to: "action-icon";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -21 -1;
                  to_y: "action-icon";
               }
               text {
                  text_class: "grid_font";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 1 1;
                  text: "action";
                  align: 0.0 0.5;
               }
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
               text {
                  min: 0 0;
               }
            }
         }

         part {
            name: "action-eventarea";
            type: RECT;
            repeat_events: 1;
            clip_to: "action-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "action-icon";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "e.text.action";
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
            }
         }

         programs {
            program {
               signal: "mouse,in";
               source: "action-eventarea";
               action: STATE_SET "active" 0.0;
               transition: LINEAR 0.2;
               target: "e.text.action";
               target: "action-bg";
            }

            program {
               signal: "mouse,out";
               source: "action-eventarea";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.2;
               target: "e.text.action";
               target: "action-bg";
            }

            program {
               signal: "mouse,clicked,1";
               source: "action-eventarea";
               action: SIGNAL_EMIT "gui,action,executed" "e";
            }
         }

         part {
            name: "eject-clipper";
            type: RECT;
            mouse_events: 0;
            clip_to: "overlay-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "eject-bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "eject-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 128;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -5 -5;
                  to: "eject-eventarea";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 4 4;
                  to: "eject-eventarea";
               }
               image {
                  normal: "text-bg.png";
                  border: 5 10 5 10;
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "eject-icon";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "eject-clipper";
            description {
               state: "default" 0.0;
               min: 22 22;
               max: 22 22;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 20 6;
                  to_y: "action-eventarea";
               }
               rel2 {
                  relative: 0.0 1.0;
                  offset: 41 27;
                  to_y: "action-eventarea";
               }
               image.normal: "eject.png";
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
               min: 0 0;
               rel2 {
                  relative: 0.0 0.0;
                  offset: 20 20;
               }
            }
         }

         part {
            name: "e.text.eject";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            clip_to: "eject-clipper";
            description {
               state: "default" 0.0;
               color: 224 224 224 255;
               color3: 0 0 0 128;
               rel1 {
                  relative: 1.0 0.0;
                  offset: 10 0;
                  to: "eject-icon";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -21 -1;
                  to_y: "eject-icon";
               }
               text {
                  text_class: "grid_font";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 1 1;
                  text: "eject";
                  align: 0.0 0.5;
               }
            }
            description {
               state: "active" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
               text {
                  min: 0 0;
               }
            }
         }

         part {
            name: "eject-eventarea";
            type: RECT;
            repeat_events: 1;
            clip_to: "eject-clipper";
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "eject-icon";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "e.text.eject";
               }
            }
            description {
               state: "hidden" 0.0;
               inherit: "default" 0.0;
               visible: 0;
            }
         }

         programs {
            program {
               signal: "mouse,in";
               source: "eject-eventarea";
               action: STATE_SET "active" 0.0;
               transition: LINEAR 0.2;
               target: "e.text.eject";
               target: "eject-bg";
            }

            program {
               signal: "mouse,out";
               source: "eject-eventarea";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.2;
               target: "e.text.eject";
               target: "eject-bg";
            }

            program {
               signal: "gui,state,can_eject";
               source: "e" ;
               action: STATE_SET "default" 0.0;
               target: "eject-clipper";
               target: "eject-eventarea";
               target: "eject-icon";
               target: "e.text.eject";
               target: "eject-bg";
            }

            program {
               signal: "gui,state,cannot_eject";
               source: "e" ;
               action: STATE_SET "hidden" 0.0;
               target: "eject-clipper";
               target: "eject-eventarea";
               target: "eject-icon";
               target: "e.text.eject";
               target: "eject-bg";
            }

            program {
               signal: "mouse,clicked,1";
               source: "eject-eventarea";
               action: SIGNAL_EMIT "gui,action,ejected" "e";
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 110;
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -21 129;
               }
               text {
                  text_class: "grid_font";
                  font: "Sans";
                  size: 12;
                  min: 0 1;
                  text: "label";
                  align: 0.5 0.5;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 0;
            }
         }

         part {
            name: "label-full-clipper";
            type: RECT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               color3: 0 0 0 255;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "label-full-bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "label-full-bg";
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               visible: 1;
            }
         }

         part {
            name: "label-full-bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "label-full-clipper";
            description {
               state: "default" 0.0;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: -5 -5;
                  to: "label-full";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 4 4;
                  to: "label-full";
               }
               image {
                  normal: "text-bg.png";
                  border: 5 10 5 10;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
         }

         part {
            name: "label-full";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               visible: 0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 20 110;
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -21 129;
               }
               text {
                  text_class: "grid_font";
                  text_source: "e.text.label";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 1 1;
                  text: "label";
                  align: 0.5 0.5;
                  min: 1 1;
               }
            }
            description {
               state: "big" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
         }

         programs {

            program {
               name: "grow-anim";
               action: STATE_SET "big" 0.0;
               transition: LINEAR 0.1;
               target: "e.swallow.icon";
               target: "label-full-clipper";
            }

            program {
               name: "grow-immediate";
               action: STATE_SET "big" 0.0;
               target: "e.text.label";
               target: "label-full";
               target: "label-full-bg";
               after: "grow-anim";
            }

            program {
               name: "notify-in";
               signal: "mouse,in";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,focus,in" "e";
            }

            program {
               name: "shrink-anim";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.1;
               target: "e.swallow.icon";
               target: "label-full-clipper";
            }

            program {
               name: "shrink-immediate";
               action: STATE_SET "default" 0.0;
               target: "e.text.label";
               target: "label-full";
               target: "label-full-bg";
               after: "shrink-anim";
            }

            program {
               name: "notify-out";
               signal: "mouse,out";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,focus,out" "e";
            }

            program {
               signal: "gui,action,select";
               source: "e";
               after: "grow-immediate";
            }

            program {
               signal: "gui,action,unselect";
               source: "e";
               after: "shrink-immediate";
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/sidebar";

      data {
         item: "scroll_vertical" "off";
      }

      parts {
         part {
            name: "e.box.contents";
            type: BOX;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
               box {
                  layout: "horizontal";
                  align: 0.5 0.0;
               }
            }
            
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/sidebar/item";
      min: 180 90;
      max: 180 90;

      data {
         item: "scale_min" "on";
         item: "scale_icon" "on";
         item: "selectraise" "on";
         item: "icon_size" "64";
      }

      images {
         image: "sidebar_item_arrow.png" COMP;
         image: "sidebar_item_bg.png" COMP;
      }

      /* Keep track of selected state and keep the icon "on" when unfocusing
       * if item is still selected */
      script {
         public is_selected;

         public set_selected(val) {
            set_int(is_selected, val)
         }

         public focus_out() {
            if (!get_int(is_selected))
               run_program(PROGRAM:"icon-off");
         }
      }

      parts {
         /* Background frame surrounding the icon */
         part {
            name: "frame";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               align: 0.5 0.5;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 20;
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: 0 78;
               }
               image {
                  normal: "sidebar_item_bg.png";
	          border: 1 1 1 1;
                  scale_hint: STATIC;
               }
               fill.smooth: 0;
            }
         }

         part {
            name: "bg";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               visible:  0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "frame";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to: "frame";
               }
            }
            description {
               state: "clicked" 0.0;
               inherit: "default" 0.0;
               visible: 1;
               color: 27 117 187 255;
            }

         }

         part {
            name: "arrow";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               visible:  0;
               color: 255 255 255 0;
               align: 0.5 0.0;
               min: 38 20;
               max: 38 20;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to_x: "frame";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "frame";
               }
               image {
                  normal: "sidebar_item_arrow.png";
                  scale_hint: STATIC;
               }
               fill.smooth: 0;
            }
            description {
               state: "clicked" 0.0;
               inherit: "default" 0.0;
               visible: 1;
               color: 27 117 187 255;
            }
         }

         part {
            name: "icon-clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 224 224 224 225;
            }
            description {
               state: "over" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "clicked" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            scale: 0;
            clip_to: "icon-clipper";
            description {
               state: "default" 0.0;
               fixed: 1 1;
               align: 0.5 0.5;
               min: 38 38;
               max: 38 38;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "frame";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "frame";
               }
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               align: 0.5 0.0;
               fixed: 1 1;
               visible: 0;
               rel1 {
                  relative: 0.5 1.0;
                  offset: -32 0;
                  to_y: "e.swallow.icon";
               }
               rel2 {
                  relative: 0.5 1.0;
                  offset: 31 10;
                  to_y: "e.swallow.icon";
               }
               color: 255 255 255 255;
               color3: 32 32 32 128;
               text {
                  text_class: "list_font";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 1 1;
                  align: 0.5 0.5;
               }
            }
            description {
               state: "over" 0.0;
               inherit: "default" 0.0;
               visible: 1;
            }
            description {
               state: "clicked" 0.0;
               inherit: "default" 0.0;
            }
         }

         part {
            name: "event";
            type: RECT;
            repeat_events: 1;
            description {
               state: "default" 0.0;
               color: 0 0 0 0;
            }
         }
      }

      programs {
         program {
            name: "icon-on";
            action: STATE_SET "over" 0.0;
            target: "icon-clipper";
            transition: LINEAR 0.2;
         }

         program {
            name: "icon-off";
            action: STATE_SET "default" 0.0;
            target: "icon-clipper";
            transition: LINEAR 0.2;
         }

         program {
            name: "bg-on";
            action: STATE_SET "clicked" 0.0;
            target: "bg";
            target: "arrow";
            transition: LINEAR 0.2;
         }

         program {
            name: "bg-off";
            action: STATE_SET "default" 0.0;
            target: "bg";
            target: "arrow";
            transition: LINEAR 0.2;
         }

         program {
            name: "text-on";
            action: STATE_SET "over" 0.0;
            target: "e.text.label";
         }

         program {
            name: "text-off";
            action: STATE_SET "default" 0.0;
            target: "e.text.label";
         }

         program {
            signal: "gui,action,focus,in";
            source: "e";
            after: "icon-on";
         }

         program {
            signal: "gui,action,focus,out";
            source: "e";
            script { focus_out(); }
         }

         program {
            signal: "gui,action,select";
            source: "e";
            script { set_selected(1); }
            after: "bg-on";
         }

         program {
            signal: "gui,action,unselect";
            source: "e";
            script { set_selected(0); }
            after: "bg-off";
         }

         program {
            signal: "mouse,in";
            source: "event";
            after: "icon-on";
         }

         program {
            signal: "mouse,out";
            source: "event";
            script { focus_out(); }
         }

         program {
            signal: "mouse,clicked,1";
            source: "event";
            action: SIGNAL_EMIT "gui,action,executed" "e";
         }
      }
   }

   group {
      name: "elm/win/inwin/error";

      images {
	 image: "error-bg.png" COMP;
      }

      parts {
	 part {
            name: "base";
	    type: RECT;
	    mouse_events: 1;
	    description {
               state: "default" 0.0;
	       color: 0 0 0 0;
	    }
	    description {
               state: "visible" 0.0;
	       inherit: "default" 1.0;
	       color: 0 0 0 64;
	    }
	 }

	 part {
            name: "pop";
	    mouse_events: 1;
	    description { state: "default" 0.0;
	       rel1.to: "elm.swallow.content";
               rel1.offset: -34 -27;
	       rel2.to: "elm.swallow.content";
               rel2.offset: 26 33;
               image {
		  normal: "error-bg.png";
		  border: 33 26 26 33;
                  middle: SOLID;
               }
	    }
	 }

	 part {
            name: "elm.swallow.content";
            type: SWALLOW;
	    description {
               state: "default" 0.0;
               fixed: 1 1;
               rel1.relative: 0.5 0.5;
               rel2.relative: 0.5 0.5;
	    }
	 }
      }

      programs {
	 program { name: "show";
            signal: "elm,action,show";
	    source: "elm";
	    action: STATE_SET "visible" 0.0;
	    transition: DECELERATE 1.0;
	    target: "base";
	 }

	 program { name: "hide";
            signal: "elm,action,hide";
	    source: "elm";
	    action: STATE_SET "default" 0.0;
	    transition: DECELERATE 1.0;
	    target: "base";
	 }
      }
   }

   group {
      name: "elm/frame/base/error";

      parts {
	 part {
            name: "elm.text";
	    type: TEXT;
	    mouse_events: 0;
	    scale: 1;
	    description {
               state: "default" 0.0;
	       color: 128 128 128 255;
	       align: 0.0 0.0;
	       fixed: 0 1;
	       rel1 {
		  relative: 0.0 0.0;
		  offset: 6 6;
	       }
	       rel2 {
		  relative: 1.0 0.0;
		  offset: -7 6;
	       }
	       text {
                  text_class: "frame_font";
		  font: "Sans:style=Bold,Edje-Vera-Bold";
		  size: 12;
		  min: 1 1;
		  max: 1 1;
		  align: 0.0 0.0;
	       }
	    }
	 }

	 part {
            name: "elm.swallow.content";
	    type: SWALLOW;
	    description {
               state: "default" 0.0;
	       rel1 {
		  to_y: "elm.text";
		  relative: 0.0 1.0;
		  offset: 8 8;
	       }
	       rel2.offset: -9 -9;
	    }
	 }
      }
   }

   group {
      name: "elm/win/inwin/launchfeedback";

      parts {
	 part {
            name: "base";
	    type: RECT;
	    mouse_events: 0;
	    description {
               state: "default" 0.0;
	       color: 0 0 0 0;
	    }
	    description {
               state: "visible" 0.0;
	       inherit: "default" 1.0;
	       color: 0 0 0 0;
	    }
	 }


         part {
            name: "content_clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
            }
            description {
               state: "visible" 0.0;
               color: 255 255 255 255;
            }
         }

	 part {
            name: "elm.swallow.content";
            type: SWALLOW;
            clip_to: "content_clipper";
	    description {
               state: "default" 0.0;
               fixed: 1 1;
               rel1.relative: 0.45 0.5;
               rel2.relative: 0.45 0.5;
	    }
	 }
      }

      programs {
	 program {
            name: "show";
            signal: "elm,action,show";
	    source: "elm";
	    action: STATE_SET "default" 0.0;
            target: "base";
            target: "content_clipper";
            after: "show,1";
         }
         program {
            name: "show,1";
	    action: STATE_SET "visible" 0.0;
	    transition: LINEAR 0.3;
	    target: "base";
            after: "show,2";
         }

         program {
            name: "show,2";
            action: STATE_SET "visible" 0.0;
            transition: LINEAR 1.0;
            target: "content_clipper";
	 }

	 program {
            name: "hide";
            signal: "elm,action,hide";
	    source: "elm";
	    action: STATE_SET "visible" 0.0;
            target: "base";
            target: "content_clipper";
            after: "hide,1";
         }
         program {
            name: "hide,1";
            action: STATE_SET "default" 0.0;
            transition: LINEAR 1.0;
            target: "content_clipper";
            after: "hide,2";
	 }
         program {
            name: "hide,2";
	    action: STATE_SET "default" 0.0;
	    transition: LINEAR 0.3;
	    target: "base";
         }
      }
   }

   group {
      name: "e/netbook/launcher/launchfeedback";
      min: 68 200;

      parts {
         part {
            name: "e.size";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "e.text.title";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
                  to_y: "e.swallow.icon";
                  to_x: "e.text.label";
               }
            }
         }

	    part {
            name: "e.text.title";
            type: TEXT;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               align: 0.0 1.0;
               fixed: 1 1;
               rel1 {
                  to: "e.swallow.icon";
                  relative: 1.0 0.0;
                  offset: 10 0;
               }
               rel2 {
                  to: "e.swallow.icon";
                  relative: 1.0 0.7;
                  offset: 10 -1;
               }
               text {
                  font: "Sans";
                  size: 18;
                  align: 0.0 1.0;
                  min: 1 1;
                  text: "label";
               }
            }
         }

	 part {
            name: "e.swallow.icon";
	    type: SWALLOW;
            mouse_events: 0;
            scale: 1;
	    description {
               state: "default" 0.0;
               min: 64 64;
               max: 64 64;
	       rel1 {
		  relative: 0.0 0.0;
		  offset: 0 0;
	       }
	       rel2 {
                  relative: 0.0 0.0;
                  offset: 64 64;
               }
	    }
	 }

         part {
            name: "icon2_clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 200;
               rel1.relative: -10 -10;
               rel2.relative: 10 10;
            }
            description {
               state: "big" 0.0;
               color: 255 255 255 0;
               visible: 0;
               rel1.relative: -10 -10;
               rel2.relative: 10 10;
            }
         }

	 part {
            name: "e.swallow.icon2";
	    type: SWALLOW;
            clip_to: "icon2_clipper";
            mouse_events: 0;
            scale: 1;
	    description {
               state: "default" 0.0;
	       rel1 {
		  to: "e.swallow.icon";
		  relative: 0.0 0.0;
		  offset: 0 0;
	       }
	       rel2 {
		          to: "e.swallow.icon";
                  relative: 1.0 1.0;
                  offset: 0 0;
               }
	    }
            description {
               state: "big" 0.0;
	       rel1 {
		  to: "e.swallow.icon";
		  relative: 0.0 0.0;
		  offset: -15 -15;
	       }
	       rel2 {
		          to: "e.swallow.icon";
                  relative: 1.0 1.0;
                  offset: 15 15;
               }
            }
	 }

         programs {
            program {
               name: "icon2,grow";
               signal: "gui,action,show";
               source: "e";
               action: STATE_SET "big" 0.0;
               transition: ACCELERATE 0.5;
               target: "icon2_clipper";
               target: "e.swallow.icon2";
               after: "icon2,shrink";
            }
            program {
               name: "icon2,shrink";
               action: STATE_SET "default" 0.0;
               target: "icon2_clipper";
               target: "e.swallow.icon2";
               after: "icon2,grow";
            }

            program {
               signal: "gui,action,hide";
               source: "e";
               action: ACTION_STOP;
               target: "icon2,grow";
               target: "icon2,shrink";
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               align: 0.0 1.0;
               fixed: 1 1;
               rel1 {
                  to: "e.swallow.icon";
                  relative: 1.0 0.5;
                  offset: 10 0;
               }
               rel2 {
                  to: "e.swallow.icon";
                  relative: 1.0 1.0;
                  offset: 0 -1;
               }
               text {
                  font: "Sans";
                  size: 12;
                  align: 0.0 0.5;
                  min: 1 1;
                  max: 1 1;
                  text: "label";
               }
            }
         }

         part {
            name: "eventarea";
            type: RECT;
            mouse_events: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1.offset: -10000 -10000;
               rel2.offset:  10000  10000;
            }
         }

         programs {
            program {
               name: "eventarea,clicked";
               signal: "mouse,down,*";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,dismiss" "e";
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/places/section";
      alias: "e/netbook/launcher/main/preferences/section";
      min: 300 100;

      images {
         image: "iconviewbg.png" COMP;
      }

      parts {
         part {
            name: "bg-fill";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 184 184 184 96;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 10 10;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -11 -11;
                  to: "bg";
               }
            }
         }

         part {
            name: "bg";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 -10;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
               image {
                  normal: "iconviewbg.png";
                  border: 10 10 10 10;
                  middle: 0;
               }
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               color: 224 224 224 200;
               color3: 0 0 0 128;
               align: 0.5 0.0;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 10 10;
                  to_x: "bg";
               }
               rel2 {
                  relative: 1.0 0.0;
                  offset: -11 20;
                  to_x: "bg";
               }
               text {
                  text_class: "grid_font";
                  font: "Sans:style=Bold";
                  size: 12;
                  min: 0 1;
                  text: "label";
                  align: 0.5 0.5;
               }
            }
         }

         part {
            name: "e.size";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel2 {
                  relative: 1.0 1.0;
                  offset: 19 9;
                  to: "e.box.contents";
               }
            }
         }

         part {
            name: "e.box.contents";
            type: BOX;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 30 10;
                  to_y: "e.text.label";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -21 -11;
               }
               box {
                  layout: "horizontal_flow";
                  align: 0.0 0.0;
                  min: 1 1;
               }
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/icon_async";

      parts {
         part {
            name: "clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
            description {
               state: "hidden" 0.0;
               color: 255 255 255 0;
               visible: 0;
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -1 -1;
               }
            }
         }

         programs {
            program {
               name: "empty";
               signal: "gui,action,empty";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "clipper";
            }

            program {
               name: "loading";
               signal: "gui,action,loading";
               source: "e";
               action: STATE_SET "hidden" 0.0;
               target: "clipper";
            }

            program {
               name: "loaded";
               signal: "gui,action,loaded";
               source: "e";
               action: STATE_SET "default" 0.0;
               target: "clipper";
               transition: LINEAR 0.5;
            }
         }
      }
   }

   group {
      name: "e/netbook/launcher/main/add_item/layout";

      images {
         image: "iconviewbg.png" COMP;
      }

      parts {
         part {
            name: "clipper";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
            }
         }

         part {
            name: "bg-fill";
            type: RECT;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               color: 184 184 184 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 10 10;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -11 -11;
                  to: "bg";
               }
            }
         }

         part {
            name: "bg";
            type: IMAGE;
            mouse_events: 0;
            clip_to: "clipper";
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 15 0;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -16 -25;
               }
               image {
                  normal: "iconviewbg.png";
                  border: 10 10 10 10;
                  middle: 0;
               }
            }
         }

         part {
            name: "title";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.1 0.08;
                  offset: 30 25;
                  to: "bg";
               }
               rel2 {
                  relative: 0.1 0.08;
                  offset: 200 60;
                  to: "bg";
               }
            }
         }

         part {
            name: "title.text";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "title";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "title";
               }
               text {
                  font: "Sans";
                  size: 24;
                  min: 1 1;
                  text: "Add New Item";
                  align: 0.0 0.0;
               }
            }
         }

         part {
            name: "title.subtext";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 0;
                  to: "title";
               }
               rel2 {
                  relative: 1.0 2.0;
                  offset: 0 0;
                  to: "title";
               }
               text {
                  font: "Sans";
                  size: 18;
                  text: "Home Screen";
                  align: 0.0 0.0;
               }
            }
         }

         part {
            name: "subtitle";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               rel1 {
                  relative: 0.0 0.3;
                  offset: 0 0;
                  to_x: "title";
               }
               rel2 {
                  relative: 1.0 0.3;
                  offset: 0 35;
               }
               text {
                  font: "Sans";
                  size: 18;
                  text: "Select type of item to add:";
                  align: 0.0 0.0;
               }
            }
         }


         part {
            name: "types_list";
            type: BOX;
            description {
               state: "default" 0.0;
               rel1 {
                  relative: 0.0 0.35;
                  offset: 0 0;
                  to_x: "title";
               }
               rel2 {
                  relative: 0.9 0.6;
                  offset: 0 0;
               }
               box {
                  layout: "horizontal";
                  align: 0.0 0.0;
				  padding: 20 0;
               }
            }
         }

      
         part {
            name: "cancel";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.5 0.65;
                  offset: 0 0;
                  to: "bg";
               }
               rel2 {
                  relative: 0.5 0.65;
                  offset: 150 35;
                  to: "bg";
               }
            }
         }

         part {
            name: "cancel.text";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 120 120 120 255;
               color3: 0 0 0 255;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
                  to: "cancel";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 0;
                  to: "cancel";
               }
               text {
                  font: "Sans";
                  size: 18;
                  min: 1 1;
                  text: "X Cancel";
                  align: 0.0 0.0;
               }
            }
            description {
               state: "hover" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
            }
         }


         programs {
            program {
               name: "focus,in";
               signal: "gui,action,focus,in";
               source: "e";
            }

            program {
               name: "focus,out";
               signal: "gui,action,focus,out";
               source: "e";
            }

            program {
               name: "cancel,mouse,in";
               signal: "mouse,in";
               source: "cancel";
               action: STATE_SET "hover" 0.0;
               target: "cancel.text";
            }
            program {
               name: "cancel,mouse,out";
               signal: "mouse,out";
               source: "cancel";
               action: STATE_SET "default" 0.0;
               target: "cancel.text";
            }
            program {
               signal: "mouse,clicked,*";
               source: "cancel";
               action: SIGNAL_EMIT "gui,action,add_item,cancel" "e";
            }

         }
      }
      
   }
   
     group {
      name: "e/netbook/launcher/main/add_item/item";

      min: 180 200;

      data {
         item: "scale_min" "on";
         item: "scale_icon" "on";
         item: "icon_size" "70";
      }

      images {
         image: "item-bg.png" COMP;
      }

      parts {
         part {
            name: "eventarea";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 5 5;
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -6 -6;
               }
            }
         }

         programs {

            program {
               name: "eventarea,in";
               signal: "mouse,in";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,select" "e";
            }

            program {
               name: "eventarea,out";
               signal: "mouse,out";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,unselect" "e";
            }

            program {
               signal: "gui,action,select";
               source: "e";
               after: "show-item";
            }

            program {
               signal: "gui,action,unselect";
               source: "e";
               after: "hide-item";
            }

            program {
               name: "show-item";
               action: STATE_SET "visible" 0.0;
               transition: LINEAR 0.2;
               target: "bg";
               target: "bg-fill";
            }

            program {
               name: "hide-item";
               action: STATE_SET "default" 0.0;
               transition: LINEAR 0.2;
               target: "bg";
               target: "bg-fill";
            }
         }

         part {
            name: "bg-fill";
            type: RECT;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 184 184 184 0;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 5 5;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: -6 -6;
                  to: "bg";
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               color: 184 184 184 50;
               visible: 1;
            }
         }

         part {
            name: "bg";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;
               color: 255 255 255 0;
               visible: 0;
               rel1 {
                  relative: 0.0 0.0;
                  offset: 0 0;
               }
               rel2 {
                  relative: 1.0 0.6;
                  offset: -1 -1;
               }
               image {
                  normal: "item-bg.png";
                  border: 5 5 5 5;
                  middle: 0;
               }
            }
            description {
               state: "visible" 0.0;
               inherit: "default" 0.0;
               color: 255 255 255 255;
               visible: 1;
            }
         }

         part {
            name: "e.swallow.icon";
            type: SWALLOW;
            mouse_events: 0;
            scale: 0;
            description {
               state: "default" 0.0;
               min: 70 70;
               max: 70 70;
               rel1 {
                  relative: 0.0 0.0;
                  to: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  to: "bg";
               }
            }
         }

         part {
            name: "e.text.label";
            type: TEXT;
            effect: SHADOW;
            mouse_events: 0;
            scale: 1;
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               color3: 0 0 0 255;
               fixed: 1 1;
               rel1 {
                  relative: 0.0 1.0;
                  offset: 0 10;
                  to_y: "bg";
               }
               rel2 {
                  relative: 1.0 1.0;
                  offset: 0 30;
                  to_y: "bg";
               }
               text {
                  font: "Sans";
                  size: 12;
                  min: 0 1;
                  text: "label";
                  align: 0.5 0.0;
               }
            }
         }


         programs {
            program {
               name: "notify-in";
               action: SIGNAL_EMIT "gui,action,focus,in" "e";
            }

            program {
               name: "notify-out";
               action: SIGNAL_EMIT "gui,action,focus,out" "e";
            }

            program {
               signal: "mouse,clicked,1";
               source: "eventarea";
               action: SIGNAL_EMIT "gui,action,executed" "e";
            }

         }
      }
   }
   

}
