From: chanwook jung <jchanwook@gmail.com>
[framework/uifw/elementary.git] / data / themes / widgets / multibuttonentry.edc
1    group {
2       name: "elm/multibuttonentry/base/default";
3       data.item: "closed_button_type" "image"; /* image, label, default : label */
4       data.item: "closed_height" 46;
5       parts {
6          part {
7             name: "elm.base";
8             type: RECT;
9             scale: 1;
10             description {
11                state: "default" 0.0;
12                align: 0 0;
13                color: 0 0 0 0;
14             }
15          }
16          part {
17             name: "top.left.pad";
18             type: RECT;
19             scale: 1;
20             description {
21                state: "default" 0.0;
22                min : 6 8;
23                fixed: 1 1;
24                rel1 { relative: 0.0 0.0;to:elm.base; }
25                rel2 { relative: 0.0 0.0;to:elm.base; }
26                align: 0 0;
27                color: 0 0 0 0;
28             }
29          }
30          part {
31             name: "bottom.right.pad";
32             type: RECT;
33             scale: 1;
34             description {
35                state: "default" 0.0;
36                min : 6 8;
37                fixed: 1 1;
38                rel1 { relative: 1.0 1.0;to:elm.base; }
39                rel2 { relative: 1.0 1.0;to:elm.base; }
40                align: 1 1;
41                color: 0 0 0 0;
42             }
43          }
44          part {
45             name: "box.swallow";
46             type: SWALLOW;
47             description {
48                state: "default" 0.0;
49                rel1 { relative: 1.0 1.0; to: "top.left.pad"; }
50                rel2 { relative: 0.0 0.0; to: "bottom.right.pad"; }
51                align: 0.0 0.0;
52             }
53          }
54       }
55    }
56
57    group {
58       name: "elm/multibuttonentry/guidetext/default";
59       parts {
60          part {
61             name: "elm.text.bg";
62             type: RECT;
63             mouse_events: 0;
64             scale: 1;
65             description {
66                state: "default" 0.0;
67                color: 0 0 0 0;
68                visible: 0;
69                rel1.to: "elm.text";
70                rel2.to: "elm.text";
71             }
72          }
73          part {
74             name: "elm.text";
75             type: TEXT;
76             scale: 1;
77             description {
78                state: "default" 0.0;
79                color: 130 130 130 255;
80                text {
81                   font: "Sans:style=Roman";
82                   size: 16;
83                   min: 0 1;
84                   align: 0.0 0.5;
85                }
86             }
87          }
88       }
89    }
90
91    group {
92       name: "elm/multibuttonentry/btn/default";
93       data.item: "button_max_size" 130;      
94       styles {
95          style { name: "multibuttonentry_textblock_style";
96                       base: "font=Arial:style=Medium align=0.5 font_size=16 color=#FFFFFF text_class=label ellipsis=1.0";
97                            tag: "br" "\n";
98                       tag:      "ps" "ps";
99                       tag:      "hilight" "+ font=Sans:style=Bold";
100                            tag: "b" "+ font=Sans:style=Bold";
101                            tag: "tab" "\t";
102                    }
103       }
104       parts {
105          part {
106             name: "elm.base";
107             type: RECT;
108             mouse_events: 1;
109             scale: 1;
110             description {
111                state: "default" 0.0;
112                min: 0 33;
113                max: 3000 33;
114                fixed: 1 1;
115                color: 255 255 255 0;
116             }
117          }
118          part{
119             name: "top.padding";
120             type: RECT;
121             scale: 1;
122             description {
123                state: "default" 0.0;
124                min : 3 5;
125                fixed: 1 1;
126                rel1 { relative: 0.0 0.0;to:elm.base; }
127                rel2 { relative: 1.0 0.0;to:elm.base; }
128                color: 255 0 0 0;
129                align: 0 0;
130             }
131          }
132          part{
133            name: "bottom.padding";
134            type: RECT;
135            scale: 1;
136            description {
137               state: "default" 0.0;
138               min : 3 5;
139               fixed: 1 1;
140               rel1 { relative: 0.0 1.0;to:elm.base; }
141               rel2 { relative: 1.0 1.0;to:elm.base; }
142               color: 0 255 0 0;
143               align: 0 1;
144            }
145          }
146          part {
147             name: "left.padding";
148             type: RECT;
149             scale: 1;
150             description {
151                state: "default" 0.0;
152                min : 0 0;
153                fixed: 0 0;
154                rel1 { relative: 0.0 0.0; to: "elm.base"; }
155                rel2 { relative: 0.0 1.0; to: "elm.base"; }
156                color: 255 0 255 0;
157                align: 0 0;
158             }
159          }
160          part {
161             name: "right.padding";
162             type: RECT;
163             scale: 1;
164             description {
165                state: "default" 0.0;
166                min : 5 0;
167                fixed: 0 0;
168                rel1 { relative: 1.0 0.0; to: "elm.base"; }
169                rel2 { relative: 1.0 1.0; to: "elm.base"; }
170                color: 0 0 255 0;
171                align: 1 1.0;
172             }
173          }
174          part {
175             name: "elm.btn.bg";  
176             type: RECT;
177             mouse_events: 1;
178             scale: 1;
179             description {
180                state: "default" 0.0;
181                min : 10 6;
182                max : 500 50;
183                fixed: 0 0;
184                rel1 { relative: 1.0 1.0; to_x:"left.padding";to_y:"top.padding";}
185                rel2 { relative: 0.0 0.0; to_x:"right.padding";to_y:"bottom.padding";}
186                color: 80 80 80 255;
187             }
188             description {
189                state: "focused" 0.0;
190                inherit: "default" 0.0;
191                color: 170 170 170 255;
192             }
193          }
194          part {
195             name: "elm.btn.text";
196             type: TEXTBLOCK;
197             mouse_events: 1;
198             scale:1;
199             description {
200                state: "default" 0.0;
201                min: 6 6;
202                max: 120 33;
203                fixed: 0 1;
204                text {
205                   text: "Auto Resized textblock";
206                   style: "multibuttonentry_textblock_style";
207                   min: 1 1;
208                   align: 0.5 0.5;
209                }               
210                rel1.to:"elm.btn.bg";
211                rel2.to:"elm.btn.bg";
212                rel1.offset: 10 10;
213                rel2.offset: -11 -11;
214             }
215          }
216       }
217       programs {
218          program {
219             name: "clicked";
220             signal: "mouse,clicked,1";
221             source: "elm.btn.bg";
222             action: SIGNAL_EMIT "clicked" "elm";
223          }
224          program {
225             name: "default";
226             signal: "default";
227             action: STATE_SET "default" 0.0;
228             target: "elm.btn.bg";
229          }
230          program {
231             name: "focused";
232             signal: "focused";
233             action: STATE_SET "focused" 0.0;
234             target: "elm.btn.bg";
235          }
236       }
237    }
238    group {
239       name: "elm/label/base/extended/multibuttonentry_default";
240
241       styles {
242          style {
243             name: "textblock_style_multibuttonentry_default";
244             base: "font=Sans:style=Medium font_size=16 color=#000000 wrap=char";
245             tag:  "br" "\n";
246             tag:  "ps" "ps";
247             tag:  "hilight" "+ font=Sans:style=Bold";
248             tag:  "b" "+ font=Sans:style=Bold";
249             tag:  "tab" "\t";
250          }
251       }
252       parts {
253          part {
254             name: "label.swallow.background";
255             type: SWALLOW;
256             description {
257                state: "default" 0.0;
258                visible: 1;
259                rel1 { relative: 0 0; to: "elm.text"; }
260                rel2 { relative: 1 1; to: "elm.text"; }
261             }
262          }
263          part {
264             name: "elm.text";
265             type: TEXTBLOCK;
266             mouse_events: 0;
267             scale: 1;
268             description {
269                state: "default" 0.0;
270                text {
271                   style: "textblock_style_multibuttonentry_default";
272                   min: 1 1;
273                }
274             }
275          }
276       }
277    }
278
279    group {
280       name: "elm/multibuttonentry/closedbutton/default";
281       images {
282          image: "bt_basew.png" COMP;
283          image: "bt_base1.png" COMP;
284          image: "arrow_down.png" COMP;
285          image: "down.png" COMP;
286       }
287       data.item: "closed_button_height" 26;
288       data.item: "closed_button_width" 26;
289
290       parts {
291          part {
292             name: "closed_button_bg";
293             scale: 1;
294             mouse_events: 0;
295             type: IMAGE;
296             description {
297                state: "default" 0.0;
298                align: 0.5 0.5;
299                min: 26 26;
300                visible: 1;
301                image.normal: "bt_basew.png";
302                rel1 { relative: 0.0 0.0; }
303                rel2 { relative: 1.0 1.0; }
304             }
305             description {
306                state: "clicked" 0.0;
307                inherit: "default" 0.0;
308                image.normal: "bt_base1.png";
309             }
310          }
311          part {
312             name: "closed_button";
313             scale: 1;
314             mouse_events: 1;
315             type: IMAGE;
316             description {
317                state: "default" 0.0;
318                align: 0.5 0.5;
319                min: 26 26;
320                visible: 1;
321                image.normal: "arrow_down.png";
322                rel1 { relative: 0.0 0.0; }
323                rel2 { relative: 1.0 1.0; }
324             }
325             description {
326                state: "clicked" 0.0;
327                inherit: "default" 0.0;
328                image.normal: "down.png";
329             }
330          }
331       }
332
333       programs {
334          program {
335             name: "button_click";
336             signal: "mouse,down,1";
337             source: "closed_button";
338             action: STATE_SET "clicked" 0.0;
339             target: "closed_button_bg";
340             target: "closed_button";
341          }
342          program {
343             name: "button_unclick";
344             signal: "mouse,up,1";
345             source: "closed_button";
346             action: STATE_SET "default" 0.0;
347             target: "closed_button_bg";
348             target: "closed_button";
349          }
350       }
351    }
352
353    group {
354       name: "elm/multibuttonentry/label/default";
355       parts {
356          part {
357             name: "mbe.label.bg";
358             type: RECT;
359             scale: 1;
360             mouse_events: 0;
361             description {
362                state: "default" 0.0;
363                color: 0 0 0 0;
364                min: 0 0;
365                fixed: 1 1;
366             }
367             description {
368                state: "no_text" 0.0;
369                inherit: "default" 0.0;
370                visible: 0;
371             }
372          }
373          part {
374             name: "mbe.label.left.padding";
375             type: RECT;
376             mouse_events: 0;
377             scale: 1;
378             description {
379                state: "default" 0.0;
380                color: 0 0 0 0;
381                min: 3 0;
382                fixed: 1 1;
383                rel1.to: "mbe.label.bg";
384                rel2 {
385                   to: "mbe.label.bg";
386                   relative: 0.0 1.0;
387                }
388                align: 0 0.5;
389             }
390             description {
391                state: "no_text" 0.0;
392                inherit: "default" 0.0;
393                visible: 0;
394             }
395          }
396          part {
397             name: "mbe.label.right.padding";
398             type: RECT;
399             mouse_events: 0;
400             scale: 1;
401             description {
402                state: "default" 0.0;
403                color: 0 0 0 0;
404                min: 3 0;
405                fixed: 1 1;
406                rel1 {
407                   to: "mbe.label.bg";
408                   relative: 1.0 0.0;
409                }
410                rel2.to: "mbe.label.bg";
411                align: 1 1.0;
412             }
413             description {
414                state: "no_text" 0.0;
415                inherit: "default" 0.0;
416                visible: 0;
417             }
418          }
419          part {
420             name: "mbe.label";
421             type: TEXT;
422             mouse_events: 0;
423             scale: 1;
424             description {
425                state: "default" 0.0;
426                color: 0 0 0 255;
427                min: 0 33;
428                fixed: 1 1;
429                text {
430                   font: "Sans:style=Roman";
431                   size: 16;
432                   min: 1 1;
433                   align: 0.0 0.428;
434                }
435                rel1 { relative: 1.0 1.0; to: "mbe.label.left.padding"; }
436                rel2 { relative: 0.0 0.0; to: "mbe.label.right.padding"; }
437             }
438             description {
439                state: "no_text" 0.0;
440                inherit: "default" 0.0;
441                min: 6 33;
442             }
443          }
444       }
445       programs {
446          program {
447             name: "has_text";
448             signal: "elm,mbe,set_text";
449             source: "";
450             action: STATE_SET "default" 0.0;
451             target: "mbe.label.bg";
452             target: "mbe.label.left.padding";
453             target: "mbe.label.right.padding";
454             target: "mbe.label";
455          }
456          program {
457             name: "no_text";
458             signal: "elm,mbe,clear_text";
459             source: "";
460             action: STATE_SET "no_text" 0.0;
461             target: "mbe.label.bg";
462             target: "mbe.label.left.padding";
463             target: "mbe.label.right.padding";
464             target: "mbe.label";
465          }
466       }
467    }
468