All pastes #71821 Raw Edit

mod_default_shelf.edc

public text v1 · immutable
#71821 ·published 2006-06-26 05:31 UTC
rendered paste body
group {
   name: "shelf/"NAME"/base";
   data {
      // this tells e the border is shaped
      item: "shaped" "1";
   }
   parts {
      part {
	 name:          "base";
	 mouse_events:  0;
	 description {
	    state:    "default" 0.0;
	    image {
	       normal: "e17_shelf_bg_h.png";
	       border: 19 19 9 9;
	    }
	    fill {
	       origin {
		  offset: 0 -6;
	       }
	       size {
		  offset: 0 6;
	       }
	    }
		color: COLORRGB 255;
	 }
	 description {
	    state:    "top_left" 0.0;
	    inherit:  "default" 0.0;
	    fill {
	       origin {
		  offset: -16 -6;
	       }
	       size {
		  offset: 16 6;
	       }
	    }
	 }
	 description {
	    state:    "top_right" 0.0;
	    inherit:  "default" 0.0;
	    fill {
	       origin {
		  offset: 0 -6;
	       }
	       size {
		  offset: 16 6;
	       }
	    }
	 }
	 description {
	    state:    "bottom" 0.0;
	    inherit:  "default" 0.0;
	    fill {
	       origin {
		  offset: 0 0;
	       }
	       size {
		  offset: 0 6;
	       }
	    }
	 }
	 description {
	    state:    "bottom_left" 0.0;
            inherit:  "default" 0.0;
	    fill {
	       origin {
		  offset: -16 0;
	       }
	       size {
		  offset: 16 6;
	       }
	    }
	 }
	 description {
	    state:    "bottom_right" 0.0;
            inherit:  "default" 0.0;
	    fill {
	       origin {
		  offset: 0 0;
	       }
	       size {
		  offset: 16 6;
	       }
	    }
	 }
	 description {
	    state:    "left" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: -6 0;
	       }
	       size {
		  offset: 6 0;
	       }
	    }
	 }
	 description {
	    state:    "left_top" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: -6 -16;
	       }
	       size {
		  offset: 6 16;
	       }
	    }
	 }
	 description {
	    state:    "left_bottom" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: -6 0;
	       }
	       size {
		  offset: 6 16;
	       }
	    }
	 }
	 description {
	    state:    "right" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: 0 0;
	       }
	       size {
		  offset: 6 0;
	       }
	    }
	 }
	 description {
	    state:    "right_top" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: 0 -16;
	       }
	       size {
		  offset: 6 16;
	       }
	    }
	 }
	 description {
	    state:    "right_bottom" 0.0;
	    image {
	       normal: "e17_shelf_bg_v.png";
	       border: 9 9 19 19;
	    }
	    fill {
	       origin {
		  offset: 0 0;
	       }
	       size {
		  offset: 6 16;
	       }
	    }
	 }
      }
      part {
	 name:          "items";
	 mouse_events:  0;
	 type:          SWALLOW;
	 description {
	    state:    "default" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   18   2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -19   -3;
	    }
	 }
	 description {
	    state:    "top_left" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -19   -3;
	    }
	 }
	 description {
	    state:    "top_right" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   18   2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -3;
	    }
	 }
	 description {
	    state:    "bottom" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   18   2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -19   -3;
	    }
	 }
	 description {
	    state:    "bottom_left" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2   2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -19   -3;
	    }
	 }
	 description {
	    state:    "bottom_right" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   18   2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -3;
	    }
	 }
	 description {
	    state:    "left" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    18;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -19;
	    }
	 }
	 description {
	    state:    "left_top" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -19;
	    }
	 }
	 description {
	    state:    "left_bottom" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    18;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -3;
	    }
	 }
	 description {
	    state:    "right" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    18;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -19;
	    }
	 }
	 description {
	    state:    "right_top" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    2;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -19;
	    }
	 }
	 description {
	    state:    "right_bottom" 0.0;
	    rel1 {
	       relative: 0.0  0.0;
	       offset:   2    18;
	    }
	    rel2 {
	       relative: 1.0  1.0;
	       offset:   -3   -3;
	    }
	 }
      }
   }
   programs {
      program {
	 name:    "orient1";
	 signal:  "set_orientation";
	 source:  "top";
	 action:  STATE_SET "default" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient2";
	 signal:  "set_orientation";
	 source:  "top_left";
	 action:  STATE_SET "top_left" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient3";
	 signal:  "set_orientation";
	 source:  "top_right";
	 action:  STATE_SET "top_right" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient4";
	 signal:  "set_orientation";
	 source:  "bottom";
	 action:  STATE_SET "bottom" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient5";
	 signal:  "set_orientation";
	 source:  "bottom_left";
	 action:  STATE_SET "bottom_left" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient6";
	 signal:  "set_orientation";
	 source:  "bottom_right";
	 action:  STATE_SET "bottom_right" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient7";
	 signal:  "set_orientation";
	 source:  "left";
	 action:  STATE_SET "left" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient8";
	 signal:  "set_orientation";
	 source:  "left_top";
	 action:  STATE_SET "left_top" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient9";
	 signal:  "set_orientation";
	 source:  "left_bottom";
	 action:  STATE_SET "left_bottom" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient10";
	 signal:  "set_orientation";
	 source:  "right";
	 action:  STATE_SET "right" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient11";
	 signal:  "set_orientation";
	 source:  "right_top";
	 action:  STATE_SET "right_top" 0.0;
	 target:  "base";
	 target:  "items";
      }
      program {
	 name:    "orient12";
	 signal:  "set_orientation";
	 source:  "right_bottom";
	 action:  STATE_SET "right_bottom" 0.0;
	 target:  "base";
	 target:  "items";
      }
   }
}
group {
   name: "shelf/"NAME"/inset";
   parts {
      part {
	 name:          "background";
	 mouse_events:  0;
	 description {
	    state:    "default" 0.0;
	    rel1 {
	       to:       "overlay";
	    }
	    rel2 {
	       to:       "overlay";
	    }
	    image {
	       normal: "e17_ibar_bg_h.png";
	       border: 6 6 6 6;
	    }
	    fill {
	       smooth: 0;
	    }
	 }
      }
      part {
	 name:          "items_clip";
	 type:          RECT;
	 mouse_events:  0;
	 description {
	    state:    "default" 0.0;
	    rel1 {
	       to:       "background";
	       offset:   4    4;
	    }
	    rel2 {
	       to:       "background";
	       offset:   -5    -5;
	    }
	    color: 255 255 255 255;
	 }
      }
      part {
	 name:          "items";
	 type:          SWALLOW;
	 mouse_events:  0;
	 clip_to:       "items_clip";
	 description {
	    state:    "default" 0.0;
	    rel1 {
	       offset:   4    4;
	    }
	    rel2 {
	       offset:   -5    -5;
	    }
	    color: 0 0 0 0;
	 }
      }
      part {
	 name:          "overlay";
	 mouse_events:  0;
	 description {
	    state:    "default" 0.0;
	    image {
	       normal: "e17_ibar_over_h.png";
	       border: 13 13 13 13;
	       middle: 0;
	    }
	    fill {
	       smooth: 0;
	    }
	 }
      }
   }
}