summaryrefslogtreecommitdiff
path: root/e-module.edc
blob: f213813660bcc5e54d4a2c25e29f21bf3186823f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
images 
{
  image: "module_icon.png" COMP;
  image: "google.png" COMP;
  image: "wikipedia.png" COMP;
  image: "youtube.png" COMP;
}

#define ICON(NAME, FILE, SIZE)			\
    group {					\
      name: NAME ;				\
      max: SIZE SIZE;				\
	parts {					\
	    part {				\
	      name: "icon";			\
	      repeat_events: 1;			\
		description {			\
		  state: "default" 0.0;		\
		  aspect: 1.0 1.0;		\
		  aspect_preference: BOTH;	\
		  image.image: FILE COMP;	\
		  image.normal: FILE ;		\
		}				\
	    }					\
	}					\
    }

collections 
{
    group 
    {
      name: "icon";
      max: 24 24;
	parts 
	{
	    part 
	    {
	      name: "image";
	      mouse_events: 0;
	      type: IMAGE;
		description 
		{
		  aspect: 1.0 1.0;			
		  aspect_preference: BOTH;		
		  state: "default" 0.0;
		  image.normal: "module_icon.png";
		}
	    }
	}
    }

    ICON("wikipedia", "wikipedia.png", 128);
    ICON("google", "google.png", 128);
    ICON("feeling-lucky", "google.png", 128);
    ICON("youtube", "youtube.png", 128);
}