tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / syscon.edc
1 group { name: "e/widgets/syscon/main";
2    images.image: "vgrad_tall.png" COMP;
3    images.image: "bevel_out.png" COMP;
4    images.image: "shine.png" COMP;
5    images.image: "button_normal.png" COMP;
6    images.image: "button_clicked.png" COMP;
7    parts {
8       part { name: "bg"; mouse_events: 0;
9          description { state: "default" 0.0;
10             image.normal: "vgrad_tall.png";
11             fill.smooth: 0;
12             TILED_HORIZ(40)
13          }
14       }
15       part { name: "bevel"; mouse_events: 0;
16          description { state: "default" 0.0;
17             image.normal: "bevel_out.png";
18             image.border: 1 1 1 1;
19             image.middle: 0;
20             fill.smooth: 0;
21          }
22       }
23       part { name: "e.swallow.main"; type: SWALLOW;
24          description { state: "default" 0.0;
25             rel1.offset: 3 3;
26             rel2.offset: -4 3;
27             rel2.relative: 1.0 0.0; 
28             align: 0.5 0.0;
29             fixed: 0 1;
30         }
31       }
32       part { name: "e.swallow.secondary"; type: SWALLOW;
33          description { state: "default" 0.0;
34             rel1.to: "e.swallow.main";
35             rel1.relative: 0.0 1.0;
36             rel2.to: "e.swallow.main";
37             align: 0.5 0.0;
38             fixed: 0 1;
39          }
40       }
41       part { name: "e.swallow.extra"; type: SWALLOW;
42          description { state: "default" 0.0;
43             rel1.to: "e.swallow.secondary";
44             rel1.relative: 0.0 1.0;
45             rel2.to: "e.swallow.secondary";
46             align: 0.5 0.0;
47             fixed: 0 1; 
48         }
49       }
50       part { name: "base";
51          description { state: "default" 0.0;
52             image.normal: "button_normal.png";
53             image.border: 4 4 3 5;
54             image.middle: SOLID;
55             rel1.offset: -6 -6;
56             rel1.to: "e.text.label";
57             rel2.offset: 5 5;
58             rel2.to: "e.text.label";
59             fill.smooth: 0;
60          }
61          description { state: "clicked" 0.0;
62             inherit: "default" 0.0;
63             image.normal: "button_clicked.png";
64             image.border: 5 5 4 6;
65          }
66       }
67       part { name: "e.text.label"; type: TEXT; mouse_events: 0;
68          effect: SHADOW BOTTOM;
69          scale: 1;
70          description { state: "default" 0.0;
71             rel1.offset: 0 12;
72             rel1.relative: 0.5 0.0;
73             rel1.to_y: "e.swallow.extra";
74             rel2.offset: -1 -14;
75             rel2.relative: 0.5 1.0;
76             color: FN_COL_DEFAULT;
77             color_class: "button_text";
78             align: 0.5 1.0;
79             text { font: FN; size: 10;
80                min: 1 1;
81                ellipsis: -1;
82                align: 0.5 0.5;
83                text_class: "button";
84             }
85             fixed: 1 0;
86          }
87       }
88       part { name: "shine"; mouse_events: 0;
89          description { state: "default" 0.0;
90             image.normal: "shine.png";
91             rel1.offset: 0 -2;
92             rel2.relative: 1.0 0.0;
93             rel2.offset: -1 2;
94             FIXED_SIZE(69, 5)
95          }
96       }
97    }
98    programs {
99       program {      
100          signal: "mouse,down,1*"; source: "base";
101          action: STATE_SET "clicked" 0.0;
102          target: "base";
103          target: "e.text.label";
104       }
105       program {
106          signal: "mouse,up,1"; source: "base";
107          action: STATE_SET "default" 0.0;
108          target: "base";
109          target: "e.text.label";
110       }
111       program {
112          signal: "mouse,clicked,1*"; source: "base";
113          action: SIGNAL_EMIT "e,action,close" "";
114       }
115    }
116 }
117         
118 group { name: "e/widgets/syscon/item/button";
119    alias: "e/desklock/pin_button";
120    images.image: "button_normal.png" COMP;
121    images.image: "button_clicked.png" COMP;
122    images.image: "win_glow.png" COMP;
123    parts {
124       part { name: "base";
125          description { state: "default" 0.0;
126             image.normal: "button_normal.png";
127             image.border: 4 4 3 5;
128             image.middle: SOLID;
129             rel1.offset: -1 0;
130             rel2.offset: 0 1;
131             fill.smooth: 0;
132          }
133          description { state: "clicked" 0.0;
134             inherit: "default" 0.0;
135             image.normal: "button_clicked.png";
136             image.border: 5 5 4 6;
137          }
138       }
139       part { name: "icon_clip"; type: RECT;
140          description { state: "default" 0.0;
141          }
142          description { state: "disabled" 0.0;
143             inherit: "default" 0.0;
144             color: 255 255 255 64;
145          }
146       }
147       part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
148          clip_to: "icon_clip";
149          description { state: "default" 0.0;
150             align: 0.5 0.0;
151             rel1.offset: 6 5;
152             rel1.to: "base";
153             rel2.relative: 1.0 0.0;
154             rel2.offset: -7 -1;
155             rel2.to_y: "e.text.label";
156             aspect: 1.0 1.0; aspect_preference: VERTICAL;
157          }
158       }
159       part { name: "label_clip"; type: RECT;
160          description { state: "default" 0.0;
161          }
162          description { state: "disabled" 0.0;
163             inherit: "default" 0.0;
164             visible: 0;
165          }
166       }
167       part { name: "e.text.label"; type: TEXT; mouse_events: 0;
168          effect: SHADOW BOTTOM;
169          scale: 1;
170          clip_to: "label_clip";
171          description { state: "default" 0.0;
172             rel1.relative: 0.0 1.0;
173             rel1.offset: 6 -7;
174             rel1.to_y: "base";
175             rel2.offset: -7 -7;
176             rel2.to: "base";
177             align: 0.5 1.0;
178             color: FN_COL_DEFAULT;
179             color_class: "button_text";
180             text { font: FN; size: 10;
181                min: 1 1;
182                ellipsis: -1;
183                align: 0.5 0.5;
184                text_class: "button";
185             }
186          }
187          description { state: "disabled" 0.0;
188             inherit: "default" 0.0;
189             color: 21 21 21 255;
190             color3: 255 255 255 25;
191             color_class: "button_text_disabled";
192          }
193       }
194       part { name: "label2"; type: TEXT; mouse_events: 0;
195          effect: SHADOW BOTTOM;
196          scale: 1;
197          description { state: "default" 0.0;
198             rel1.to: "e.text.label";
199             rel2.to: "e.text.label";
200             color: FN_COL_DISABLE;
201             color_class: "button_text_disabled";
202             text { font: FN; size: 10;
203                text_source: "e.text.label";
204                align: 0.5 0.5;
205                text_class: "button";
206             }
207             visible: 0;
208          }
209          description { state: "disabled" 0.0;
210             inherit: "default" 0.0;
211             visible: 1;
212          }
213       }
214       part { name: "glow"; mouse_events: 0;
215          description { state: "default" 0.0;
216             image.normal: "win_glow.png";
217             image.border: 9 9 9 9;
218             image.middle: 0;
219             rel1.to: "base";
220             rel1.offset: -2 -3;
221             rel2.to: "base";
222             rel2.offset: 1 0;
223             fill.smooth: 0;
224             color: 255 255 255 0;
225             visible: 0;
226          }
227          description { state: "focused" 0.0;
228             inherit: "default" 0.0;
229             color: 255 255 255 150;
230             visible: 1;
231          }
232       }
233       part { name: "event"; type: RECT;
234          ignore_flags: ON_HOLD;
235          description { state: "default" 0.0;
236             color: 0 0 0 0;
237          }
238          description { state: "disabled" 0.0;
239             inherit: "default" 0.0;
240             visible: 0;
241          }
242       }
243    }
244    programs {
245       program {
246          signal: "mouse,down,1"; source: "event";
247          action: STATE_SET "clicked" 0.0;
248          target: "base";
249       }
250       program {
251          signal: "mouse,up,1"; source: "event";
252          action: STATE_SET "default" 0.0;
253          target: "base";
254       }
255       program {
256          signal: "mouse,clicked,1*"; source: "event";
257          action: SIGNAL_EMIT "e,action,click" "";
258       }
259       program {
260          signal: "e,state,disabled"; source: "e";
261          action: STATE_SET "disabled" 0.0;
262          target: "event";
263          target: "icon_clip";
264          target: "label_clip";
265          target: "label2";
266       }
267       program {
268          signal: "e,state,enabled"; source: "e";
269          action: STATE_SET "default" 0.0;
270          target: "event";
271          target: "icon_clip";
272          target: "label_clip";
273          target: "label2";
274       }
275       program { signal: "e,state,focused"; source: "e";
276          action: STATE_SET "focused" 0.0;
277          target: "glow";
278       }
279       program { signal: "e,state,unfocused"; source: "e";
280          action: STATE_SET "default" 0.0;
281          target: "glow";
282       }
283    }
284 }
285
286 group { name: "e/modules/syscon/button";
287    images.image: "btn_round_0.png" COMP;
288    images.image: "btn_round_1.png" COMP;
289    images.image: "btn_round_2.png" COMP;
290    parts {
291       part { name: "base";
292          description { state: "default" 0.0;
293             image.normal: "btn_round_0.png";
294             aspect: 1.0 1.0; aspect_preference: BOTH;
295          }
296          description { state: "hilight" 0.0;
297             inherit: "default" 0.0;
298             image.normal: "btn_round_1.png";
299          }
300          description { state: "clicked" 0.0;
301             inherit: "default" 0.0;
302             image.normal: "btn_round_2.png";
303          }
304       }
305    }
306    programs {
307       program {
308          signal: "mouse,down,1"; source: "base";
309          action: STATE_SET "clicked" 0.0;
310          target: "base";
311       }
312       program {
313          signal: "mouse,up,1"; source: "base";
314          action: STATE_SET "hilight" 0.0;
315          target: "base";
316       }
317       program {
318          signal: "mouse,in"; source: "base";
319          action: STATE_SET "hilight" 0.0;
320          target: "base";
321       }
322       program {
323          signal: "mouse,out"; source: "base";
324          action: STATE_SET "default" 0.0;
325          target: "base";
326       }
327       program {
328          signal: "mouse,clicked,1*"; source: "base";
329          action: SIGNAL_EMIT "e,action,shutdown,show" "e";
330       }
331    }
332 }