[access] support elm_access_action(); with ELM_ACCESS_ACTION_UNHIGHLIGHT
[framework/uifw/elementary.git] / data / themes / ews.edc
1 group { name: "elm/ews/background/default";
2    parts {
3       part { name: "base";
4          type: RECT;
5          mouse_events:  0;
6          description { state: "default" 0.0;
7             color: 64 64 64 255;
8          }
9       }
10    }
11 }
12
13 /*
14   Border Decorations Protocol:
15
16   Receive Signals: all use "elm" as source
17    - elm,state,focus,{on,off}
18    - elm,state,iconified,{on,off}
19    - elm,state,maximized,{on,off}
20    - elm,state,fullscreen,{on,off}
21    - elm,state,alpha,{on,off}
22
23   Send Signals:
24    - elm,action,focus
25    - elm,action,iconify
26    - elm,action,maximize
27    - elm,action,fullscreen
28    - elm,action,restore     - remove iconified, maximized or fullscreen
29    - elm,action,close
30    - elm,action,menu
31    - elm,action,move,start
32    - elm,action,move,stop
33
34   Parts:
35    - elm.text.title
36    - elm.text.name
37    - elm.text.class
38  */
39
40 images {
41    image: "shadow.png" COMP;
42    image: "icon_close.png" COMP;
43    image: "icon_arrow_up_right.png" COMP;
44    image: "icon_arrow_down_left.png" COMP;
45 }
46
47 group { name: "elm/ews/decoration/borderless";
48    parts {
49       part { name: "shadow";
50          type: IMAGE;
51          mouse_events:  0;
52          description { state: "default" 0.0;
53             image {
54                normal: "shadow.png";
55                border: 13 13 13 13;
56                middle: 0;
57             }
58             rel1 {
59                to: "base";
60                offset: -11 -9;
61             }
62             rel2 {
63                to: "base";
64                offset: 11 11;
65             }
66             fill.smooth: 0;
67          }
68          description { state: "hidden" 0.0;
69             inherit: "default" 0.0;
70             visible: 0;
71          }
72       }
73       programs {
74          program { signal: "elm,state,alpha,on";
75             source: "elm";
76             action: STATE_SET "hidden" 0.0;
77             target: "shadow";
78          }
79          program { signal: "elm,state,alpha,off";
80             source: "elm";
81             action: STATE_SET "visible" 0.0;
82             target: "shadow";
83          }
84       }
85
86       part { name: "base";
87          type: RECT;
88          mouse_events: 0;
89          description { state: "default" 0.0;
90             color: 0 0 0 255;
91          }
92       }
93    }
94 }
95
96 group { name: "elm/ews/decoration/default";
97    parts {
98       part { name: "shadow";
99          type: IMAGE;
100          mouse_events:  0;
101          description { state: "default" 0.0;
102             image {
103                normal: "shadow.png";
104                border: 13 13 13 13;
105                middle: 0;
106             }
107             rel1 {
108                to: "base";
109                offset: -11 -9;
110             }
111             rel2 {
112                to: "base";
113                offset: 11 11;
114             }
115             fill.smooth: 0;
116          }
117          description { state: "hidden" 0.0;
118             inherit: "default" 0.0;
119             visible: 0;
120          }
121       }
122       programs {
123          program { signal: "elm,state,alpha,on";
124             source: "elm";
125             action: STATE_SET "hidden" 0.0;
126             target: "shadow";
127          }
128          program { signal: "elm,state,alpha,off";
129             source: "elm";
130             action: STATE_SET "visible" 0.0;
131             target: "shadow";
132          }
133       }
134
135       part { name: "base";
136          type: RECT;
137          mouse_events: 0;
138          description { state: "default" 0.0;
139             // TODO: make me a nice image!
140             color: 200 200 200 255;
141             rel1.offset: -2 -32;
142             rel2.offset: 1 1;
143          }
144       }
145
146       part { name: "base-text";
147          type: RECT;
148          mouse_events: 1;
149          description { state: "default" 0.0;
150             color: 0 0 0 0;
151             rel1.to: "base";
152             rel2 {
153                offset: -2 -1;
154                relative: 0.0 0.0;
155                to_x: "base-buttons";
156             }
157          }
158       }
159       programs {
160          program { signal: "mouse,down,1";
161             source: "base-text";
162             action: SIGNAL_EMIT "elm,action,move,start" "elm";
163          }
164          program { signal: "mouse,up,1";
165             source: "base-text";
166             action: SIGNAL_EMIT "elm,action,move,stop" "elm";
167          }
168       }
169
170       part { name: "elm.text.title";
171          type: TEXT;
172          effect: SHADOW;
173          mouse_events: 0;
174          description { state: "default" 0.0;
175             color: 255 255 255 255;
176             color3: 0 0 0 255;
177             rel1 {
178                to: "base-text";
179                offset: 5 2;
180             }
181             rel2 {
182                to: "base-text";
183                offset: -6 -3;
184             }
185             text {
186                font: "Sans:style=Bold";
187                size: 12;
188                align: 0.0 0.5;
189             }
190          }
191       }
192
193       part { name: "base-buttons";
194          type: RECT;
195          mouse_events: 0;
196          description { state: "default" 0.0;
197             color: 255 255 255 0;
198             rel1 {
199                to: "base";
200                relative: 1.0 0.0;
201                offset: (-24 * 3 -1) 0;
202             }
203             rel2 {
204                relative: 1.0 0.0;
205                offset: -1 -1;
206             }
207          }
208       }
209
210       part { name: "restore";
211          type: IMAGE;
212          mouse_events: 1;
213          description { state: "default" 0.0;
214             image.normal: "icon_arrow_down_left.png";
215             min: 24 24;
216             max: 24 24;
217             rel1 {
218                to: "base-buttons";
219                relative: 1.0 0.0;
220                offset: (-24 * 3 - 1) 0;
221             }
222             rel2 {
223                to: "base-buttons";
224                relative: 1.0 1.0;
225                offset: (-24 * 2 - 1) 0;
226             }
227          }
228       }
229       programs {
230          program { signal: "mouse,clicked,1";
231             source: "restore";
232             action: SIGNAL_EMIT "elm,action,restore" "elm";
233          }
234       }
235
236       part { name: "maximize";
237          type: IMAGE;
238          mouse_events: 0;
239          description { state: "default" 0.0;
240             image.normal: "icon_arrow_up_right.png";
241             min: 24 24;
242             max: 24 24;
243             rel1 {
244                to: "base-buttons";
245                relative: 1.0 0.0;
246                offset: (-24 * 2 - 1) 0;
247             }
248             rel2 {
249                to: "base-buttons";
250                relative: 1.0 1.0;
251                offset: (-24 * 1 - 1) 0;
252             }
253          }
254          description { state: "maximized" 0.0;
255             inherit: "default" 0.0;
256             color: 255 255 255 96;
257          }
258       }
259       part { name: "maximize-eventarea";
260          type: RECT;
261          mouse_events: 1;
262          description { state: "default" 0.0;
263             color: 0 0 0 0;
264             rel1.to: "maximize";
265             rel2.to: "maximize";
266          }
267          description { state: "maximized" 0.0;
268             inherit: "default" 0.0;
269             visible: 0;
270          }
271       }
272       programs {
273          program { signal: "mouse,clicked,1";
274             source: "maximize-eventarea";
275             action: SIGNAL_EMIT "elm,action,maximize" "elm";
276          }
277          program { signal: "elm,state,maximized,on";
278             source: "elm";
279             action: STATE_SET "maximized" 0.0;
280             target: "maximize-eventarea";
281             target: "maximize";
282          }
283          program { signal: "elm,state,maximized,off";
284             source: "elm";
285             action: STATE_SET "default" 0.0;
286             target: "maximize-eventarea";
287             target: "maximize";
288          }
289       }
290
291       part { name: "close";
292          type: IMAGE;
293          mouse_events: 1;
294          description { state: "default" 0.0;
295             image.normal: "icon_close.png";
296             min: 24 24;
297             max: 24 24;
298             rel1 {
299                to: "base-buttons";
300                relative: 1.0 0.0;
301                offset: (-24 * 1 - 1) 0;
302             }
303             rel2 {
304                to: "base-buttons";
305                relative: 1.0 1.0;
306                offset: (-24 * 0 - 1) 0;
307             }
308          }
309       }
310       programs {
311          program { signal: "mouse,clicked,1";
312             source: "close";
313             action: SIGNAL_EMIT "elm,action,close" "elm";
314          }
315       }
316    }
317 }