tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / menu.edc
1 group { name: "e/widgets/menu/default/background";
2    images.image: "vgrad_med_lighter.png" COMP;
3    images.image: "bevel_out.png" COMP;
4    images.image: "shine.png" COMP;
5    parts {
6       part { name: "base"; type: RECT; mouse_events: 0;
7          description { state: "default" 0.0;
8             rel1.relative: 0.0 1.0;
9             rel1.to_y: "top";
10             color_class: "menu_base";
11             color: 64 64 64 255;
12          }
13       }
14       part { name: "top"; mouse_events: 0;
15          description { state: "default" 0.0;
16             image.normal: "vgrad_med_lighter.png";
17             rel2.to_y: "e.text.title";
18             rel2.offset: -1 0;
19             min: 0 23;
20             align: 0.0 0.0;
21             fill.smooth: 0;
22             TILED_HORIZ(120)
23             fixed: 0 1;
24             color_class: "menu_base";
25          }
26          description { state: "active" 0.0;
27             inherit: "default" 0.0;
28             min: 0 0;
29             rel2.offset: -1 1;
30          }
31       }
32       part { name: "e.text.title"; type: TEXT; mouse_events: 0;
33          scale: 1;
34          effect: SHADOW BOTTOM;
35          description { state: "default" 0.0;
36             rel1.relative: 0.0 0.0;
37             rel1.offset: 1 0;
38             rel2.relative: 1.0 0.0;
39             rel2.offset: -2 -1;
40             align: 0.5 0.0;
41             color_class: "menu_title";
42             color3: 255 255 255 255;
43             max: 0 0;
44             text { font: FNBD; size: 10;
45                text_class: "menu_title";
46                align: 0.5 0.0;
47                min: 0 0;
48             }
49             fixed: 0 1;
50             visible: 0;
51          }
52          description { state: "active" 0.0;
53             inherit: "default" 0.0;
54             rel1.offset: 1 3;
55             rel2.offset: -2 3;
56             max: 99999 99999;
57             text.min: 0 1;
58             visible: 1;
59          }
60       }
61       part { name: "e.swallow.content"; type: SWALLOW;
62          description { state: "default" 0.0;
63             rel1.relative: 0.0 0.0;
64             rel1.offset: 0 3;
65             rel1.to_y: "bevel";
66             rel2.offset: -1 -4;
67          }
68          description { state: "active" 0.0;
69             inherit: "default" 0.0;
70             rel1.relative: 0.0 1.0;
71             rel1.offset: 0 0;
72             rel1.to_y: "top";
73          }
74       }
75       part { name: "bevel"; mouse_events: 0;
76          description { state: "default" 0.0;
77             image.normal: "bevel_out.png";
78             image.border: 1 1 1 1;
79             image.middle: 0;
80             fill.smooth: 0;
81          }
82       }
83       part { name: "shine"; mouse_events: 0;
84          description { state: "default" 0.0;
85             image.normal: "shine.png";
86             rel1.offset: 0 -2;
87             rel1.to: "top";
88             rel2.relative: 1.0 0.0;
89             rel2.offset: -1 2;
90             rel2.to: "top";
91             FIXED_SIZE(69, 5)
92          }
93       }
94    }
95    programs {
96       program {
97          signal: "e,action,show,title"; source: "e";
98          action: STATE_SET "active" 0.0;
99          target: "top";
100          target: "e.text.title";
101          target: "e.swallow.content";
102       }
103       program {
104          signal: "e,action,hide,title"; source: "e";
105          action: STATE_SET "default" 0.0;
106          target: "top";
107          target: "e.text.title";
108          target: "e.swallow.content";
109       }
110    }
111 }
112
113 group { name: "e/widgets/menu/default/separator";
114    images.image: "separator_horiz.png" COMP;
115    parts {
116       part { name: "base";
117          description { state: "default" 0.0;
118             image.normal: "separator_horiz.png";
119             rel1.offset: 0 2;
120             rel2.offset: -1 -3;
121             min: 0 2;
122             fill.smooth: 0;
123          }
124       }
125    }
126 }
127
128 group { name: "e/widgets/menu/default/item_bg";
129    alias: "e/widgets/menu/default/submenu_bg";
130    images.image: "shadow_rounded_horiz.png" COMP;
131    images.image: "vgrad_med_dark.png" COMP;
132    images.image: "bevel_horiz_out.png" COMP;
133    images.image: "shine.png" COMP;
134    parts {
135       part { name: "shadow"; mouse_events: 0;
136          description { state: "default" 0.0;
137             image.normal: "shadow_rounded_horiz.png";
138             image.border: 0 0 9 9;
139             rel1.offset: 0 -4;
140             rel2.offset: -1 5;
141             fill.smooth: 0;
142             visible: 0;
143          }
144          description { state: "active" 0.0;
145             inherit: "default" 0.0;
146             visible: 1;
147          }
148       }
149       part { name: "base"; mouse_events: 0;
150          description { state: "default" 0.0;
151             image.normal: "vgrad_med_dark.png";
152             fill.smooth: 0;
153             TILED_HORIZ(120)
154             visible: 0;
155          }
156          description { state: "active" 0.0;
157             inherit: "default" 0.0;
158             visible: 1;
159          }
160       }
161       part { name: "e.swallow.content"; type: SWALLOW;
162          description { state: "default" 0.0;
163             rel1.relative: 0.0 0.0;
164             rel1.offset: 3 3;
165             rel2.offset: -3 -4;
166          }
167       }
168       part { name: "bevel"; mouse_events: 0;
169          description { state: "default" 0.0;
170             image.normal: "bevel_horiz_out.png";
171             image.border: 0 0 2 2;
172             image.middle: 0;
173             fill.smooth: 0;
174             visible: 0;
175          }
176          description { state: "active" 0.0;
177             inherit: "default" 0.0;
178             visible: 1;
179          }
180       }
181       part { name: "shine"; mouse_events: 0;
182          description { state: "default" 0.0;
183             image.normal: "shine.png";
184             rel1.offset: 0 -2;
185             rel1.to: "base";
186             rel2.relative: 1.0 0.0;
187             rel2.offset: -1 2;
188             rel2.to: "base";
189             FIXED_SIZE(69, 5)
190             visible: 0;
191          }
192          description { state: "active" 0.0;
193             inherit: "default" 0.0;
194             visible: 1;
195          }
196       }
197       part { name: "events"; type: RECT;
198          description { state: "default";
199             color: 0 0 0 0;
200          }
201       }
202    }
203    programs {
204       program {
205          signal: "e,state,selected"; source: "e";
206          action: STATE_SET "active" 0.0;
207          target: "shadow";
208          target: "base";
209          target: "bevel";
210          target: "shine";
211       }
212       program {
213          signal: "e,state,unselected"; source: "e";
214          action: STATE_SET "default" 0.0;
215          target: "shadow";
216          target: "base";
217          target: "bevel";
218          target: "shine";
219       }
220    }
221 }
222
223 group { name: "e/widgets/menu/default/icon";
224    parts {
225       part { name: "clip"; type: RECT; mouse_events: 0;
226          description { state: "default" 0.0;
227             color: 255 255 255 255;
228          }
229          description { state: "disabled" 0.0;
230             color: 255 255 255 128;
231          }
232       }
233       part { name: "e.swallow.content"; type: SWALLOW;
234          clip_to: "clip";
235          scale: 1;
236          description { state: "default" 0.0;
237             min: 16 16;
238             rel1.offset: 2 2;
239             rel2.offset: -3 -3;
240          }
241       }
242    }
243    programs {
244       program {
245          signal: "e,state,enable"; source: "e";
246          action: STATE_SET "default" 0.0;
247          target: "clip";
248       }
249       program {
250          signal: "e,state,disable"; source: "e";
251          action: STATE_SET "disabled" 0.0;
252          target: "clip";
253       }
254    }
255 }
256
257 group { name: "e/widgets/menu/default/label";
258    parts {
259       part { name: "base"; type: RECT;
260          description { state: "default";
261             color: 0 0 0 0;
262          }
263       }
264       part { name: "e.text.label"; type: TEXT; mouse_events: 0;
265          effect: SHADOW BOTTOM;
266          scale: 1;
267          description { state: "default" 0.0;
268             rel1.offset: 5 -1;
269             rel2.offset: -4 -1;
270             color_class: "menu_item";
271             color3: 255 255 255 255;
272             text { font: FN; size: 10;
273                min: 1 1;
274                ellipsis: -1;
275                align: 0.0 0.5;
276                text_class: "menu_item";
277             }
278          }
279          description { state: "selected" 0.0;
280             inherit: "default" 0.0;
281             visible: 0;
282          }
283          description { state: "disabled" 0.0;
284             inherit: "default" 0.0;
285             visible: 0;
286          }
287       }
288       part { name: "label2"; type: TEXT; mouse_events: 0;
289          effect: SHADOW BOTTOM;
290          scale: 1;
291          description { state: "default" 0.0;
292             rel1.to: "e.text.label";
293             rel2.to: "e.text.label";
294             color_class: "menu_item_disabled";
295             color3: 255 255 255 255;
296             text { font: FN; size: 10;
297                text_source: "e.text.label";
298                align: 0.0 0.5;
299                text_class: "menu_item";
300             }
301             visible: 0;
302          }
303          description { state: "selected" 0.0;
304             inherit: "default" 0.0;
305             visible: 0;
306          }
307          description { state: "disabled" 0.0;
308             inherit: "default" 0.0;
309             visible: 1;
310          }
311       }
312       part { name: "label3"; type: TEXT; mouse_events: 0;
313          effect: GLOW;
314          scale: 1;
315          description { state: "default" 0.0;
316             rel1.offset: -2 -3;
317             rel1.to: "e.text.label";
318             rel2.offset: 2 1;
319             rel2.to: "e.text.label";
320             color_class: "menu_item_active";
321             color2: 255 255 255 255;
322             color3: 255 255 255 255;
323             text { font: FN; size: 10;
324                text_source: "e.text.label";
325                align: 0.0 0.5;
326                text_class: "menu_item";
327             }
328             visible: 0;
329          }
330          description { state: "selected" 0.0;
331             inherit: "default" 0.0;
332             visible: 1;
333          }
334          description { state: "disabled" 0.0;
335             inherit: "default" 0.0;
336             visible: 0;
337          }
338       }
339    }
340    programs {
341       program {
342          signal: "e,state,selected"; source: "e";
343          action: STATE_SET "selected" 0.0;
344          target: "e.text.label";
345          target: "label2";
346          target: "label3";
347       }
348       program {
349          signal: "e,state,unselected"; source: "e";
350          action: STATE_SET "default" 0.0;
351          target: "e.text.label";
352          target: "label2";
353          target: "label3";
354       }
355       program {
356          signal: "e,state,enable"; source: "e";
357          action: STATE_SET "default" 0.0;
358          target: "e.text.label";
359          target: "label2";
360          target: "label3";
361       }
362       program {
363          signal: "e,state,disable"; source: "e";
364          action: STATE_SET "disabled" 0.0;
365          target: "e.text.label";
366          target: "label2";
367          target: "label3";
368       }
369    }
370 }
371
372 group { name: "e/widgets/menu/default/submenu";
373    images.image: "sym_right_light_normal.png" COMP;
374    images.image: "sym_right_glow_normal.png" COMP;
375    images.image: "vertical_separated_bar_glow.png" COMP;
376    parts {
377       part { name: "base";
378          description { state: "default" 0.0;
379             image.normal: "sym_right_light_normal.png";
380             rel2.offset: -2 -1;
381             min: 15 15;
382             max: 15 15;
383          }
384          description { state: "selected" 0.0;
385             inherit: "default" 0.0;
386             image.normal: "sym_right_glow_normal.png";
387          }
388       }
389       part { name: "bar"; mouse_events: 0;
390          description { state: "default" 0.0;
391             rel1.relative: 1.0 0.0;
392             rel1.offset: -10 -8;
393             rel2.offset: 4 7;
394             image.normal: "vertical_separated_bar_glow.png";
395             image.border: 7 7 7 7;
396             fill.smooth: 0;
397             visible: 0;
398          }
399          description { state: "selected" 0.0;
400             inherit: "default" 0.0;
401             visible: 1;
402          }
403       }
404    }
405    programs {
406       program {
407          signal: "e,state,selected"; source: "e";
408          action: STATE_SET "selected" 0.0;
409          target: "base";
410          target: "bar";
411       }
412       program {
413          signal: "e,state,unselected"; source: "e";
414          action: STATE_SET "default" 0.0;
415          target: "base";
416          target: "bar";
417       }
418    }
419 }
420
421 group { name: "e/widgets/menu/default/check";
422    images.image: "inset_shadow_tiny.png" COMP;
423    images.image: "bevel_in.png" COMP;
424    images.image: "sym_check_alum.png" COMP;
425    parts {
426       part { name: "base"; type: RECT;
427          description { state: "default" 0.0;
428             rel1.offset: 1 1;
429             rel1.to: "inset";
430             rel2.offset: -2 -2;
431             rel2.to: "inset";
432             color: 24 24 24 255;
433          }
434       }
435       part { name: "shadow"; mouse_events: 0;
436          description { state: "default" 0.0;
437             image.normal: "inset_shadow_tiny.png";
438             rel1.to: "base";
439             rel2.to: "base";
440          }
441       }
442       part { name: "inset"; mouse_events: 0;
443          description { state: "default" 0.0;
444             image.normal: "bevel_in.png";
445             image.border: 1 1 1 1;
446             image.middle: 0;
447             fill.smooth: 0;
448             min: 13 13;
449             max: 13 13;
450          }
451       }
452       part { name: "indicator"; mouse_events: 0;
453          description { state: "default" 0.0;
454             rel1.to: "base";
455             rel2.to: "base";
456             image.normal: "sym_check_alum.png";
457             min: 11 11;
458             max: 11 11;
459             visible: 0;
460          }
461          description { state: "selected" 0.0;
462             inherit: "default" 0.0;
463             visible: 1;
464          }
465       }
466    }
467    programs {
468 //      program {
469 //         signal: "e,state,selected"; source: "e";
470 //      }
471 //      program {
472 //         signal: "e,state,unselected"; source: "e";
473 //      }
474       program {
475          signal: "e,state,on"; source: "e";
476          action: STATE_SET "selected" 0.0;
477          target: "indicator";
478       }
479       program {
480          signal: "e,state,off"; source: "e";
481          action: STATE_SET "default" 0.0;
482          target: "indicator";
483       }
484    }
485 }
486
487 group { name: "e/widgets/menu/default/radio";
488    images.image: "inset_shadow_circle_tiny.png" COMP;
489    images.image: "sym_radio_alum.png" COMP;
490    parts {
491       part { name: "base";
492          description { state: "default" 0.0;
493             image.normal: "inset_shadow_circle_tiny.png";
494             min: 13 13;
495             max: 13 13;
496          }
497       }
498       part { name: "indicator"; mouse_events: 0;
499          description { state: "default" 0.0;
500             rel1.to: "base";
501             rel2.to: "base";
502             image.normal: "sym_radio_alum.png";
503             min: 11 11;
504             max: 11 11;
505             visible: 0;
506          }
507          description { state: "selected" 0.0;
508             inherit: "default" 0.0;
509             visible: 1;
510          }
511       }
512    }
513    programs {
514 //      program {
515 //         signal: "e,state,selected"; source: "e";
516 //      }
517 //      program {
518 //         signal: "e,state,unselected"; source: "e";
519 //      }
520       program {
521          signal: "e,state,on"; source: "e";
522          action: STATE_SET "selected" 0.0;
523          target: "indicator";
524       }
525       program {
526          signal: "e,state,off"; source: "e";
527          action: STATE_SET "default" 0.0;
528          target: "indicator";
529       }
530    }
531 }