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); }