[multibuttonentry]reupload:Changed guidetext style
[profile/ivi/efl-theme-tizen.git] / themes / groups / multibuttonentry.edc
1 /*
2  *  nbeat-theme
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
7  * 
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  * 
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 ///////////////////////////////////////////////////////////////////////////////////////
25    group {
26       name: "elm/multibuttonentry/base/default";
27       data.item: "closed_button_type" "image"; /* image, label, default : label */
28       data.item: "closed_height" MULTIBUTTONENTRY_CLOSEDBUTTON_AREA_HEIGHT;
29
30       parts {
31          part {
32             name: "elm.base";
33             type: RECT;
34             scale: 1;
35             description {
36                state: "default" 0.0;
37                align: 0 0;
38                color: 0 0 0 0;
39             }
40          }
41          part {
42             name: "top.left.pad";
43             type: RECT;
44             scale: 1;
45             description {
46                state: "default" 0.0;
47                min : MULTIBUTTONENTRY_WIDTH_PAD MULTIBUTTONENTRY_HEIGHT_PAD;
48                fixed: 1 1;
49                rel1 { relative: 0.0 0.0;to:elm.base; }
50                rel2 { relative: 0.0 0.0;to:elm.base; }
51                align: 0 0;
52                color: 0 0 0 0;
53             }
54          }
55          part {
56             name: "bottom.right.pad";
57             type: RECT;
58             scale: 1;
59             description {
60                state: "default" 0.0;
61                min : MULTIBUTTONENTRY_WIDTH_PAD MULTIBUTTONENTRY_HEIGHT_PAD;
62                fixed: 1 1;
63                rel1 { relative: 1.0 1.0;to:elm.base; }
64                rel2 { relative: 1.0 1.0;to:elm.base; }
65                align: 1 1;
66                color: 0 0 0 0;
67             }
68          }
69          part {
70             name: "box.swallow";
71             type: SWALLOW;
72             description {
73                state: "default" 0.0;
74                rel1 { relative: 1.0 1.0; to: "top.left.pad"; }
75                rel2 { relative: 0.0 0.0; to: "bottom.right.pad"; }
76                align: 0.0 0.0;
77             }
78          }
79       }
80    }
81
82 ///////////////////////////////////////////////////////////////////////////////////////
83    group {
84       name: "elm/multibuttonentry/guidetext/default";
85       parts {
86          part {
87             name: "elm.text.bg";
88             type: RECT;
89             scale: 1;
90             description {
91                state: "default" 0.0;
92                color: 0 0 0 0;
93                visible: 0;
94                rel1.to: "elm.text";
95                rel2.to: "elm.text";
96             }
97          }
98          part {
99             name: "elm.text";
100             type: TEXT;
101             scale: 1;
102             description {
103                state: "default" 0.0;
104                color: MULTIBUTTONENTRY_GUIDETEXT_COLOR_INC;
105                text {
106                   font: "SLP:style=Roman";
107                   size: MULTIBUTTONENTRY_GUIDETEXT_SIZE;
108                   min: 0 1;
109                   align: 0.0 0.5;
110                }
111             }
112          }
113       }
114    }
115
116 ///////////////////////////////////////////////////////////////////////////////////////
117    group {
118       name: "elm/multibuttonentry/btn/default";
119       data.item: "button_max_size" MULTIBUTTONENTRY_BUTTON_MAX_SIZE;
120       parts {
121          part {
122             name: "elm.base";
123             type: RECT;
124             mouse_events: 1;
125             scale: 1;
126             description {
127                state: "default" 0.0;
128                min: 0 MULTIBUTTONENTRY_BUTTON_BASE_SIZE;
129                max: 5000 MULTIBUTTONENTRY_BUTTON_BASE_SIZE;
130                fixed: 1 1;
131                color: 0 0 0 0;
132             }
133          }
134 //----------------------------------------------------padding
135          part{
136             name: "top.padding";
137             type: RECT;
138             scale: 1;
139             description {
140                state: "default" 0.0;
141                min : 0 MULTIBUTTONENTRY_BUTTON_TOP_BUTTOM_PAD;
142                fixed: 0 1;
143                rel1 { relative: 0.0 0.0;to:elm.base; }
144                rel2 { relative: 1.0 0.0;to:elm.base; }
145                color: 0 0 0 0;
146                align: 0 0;
147             }
148          }
149          part{
150            name: "bottom.padding";
151            type: RECT;
152            scale: 1;
153            description {
154               state: "default" 0.0;
155               min : 0 MULTIBUTTONENTRY_BUTTON_TOP_BUTTOM_PAD;
156               fixed: 0 1;
157               rel1 { relative: 0.0 1.0;to:elm.base; }
158               rel2 { relative: 1.0 1.0;to:elm.base; }
159               color: 0 0 0 0;
160               align: 0 1;
161            }
162          }
163          part {
164             name: "left.padding";
165             type: RECT;
166             scale: 1;
167             description {
168                state: "default" 0.0;
169                min : 0 0;
170                fixed: 1 0;
171                rel1 { relative: 0.0 0.0; to: "elm.base"; }
172                rel2 { relative: 0.0 1.0; to: "elm.base"; }
173                color: 0 0 0 0;
174                align: 0 0;
175             }
176          }
177          part {
178             name: "left.inner.padding";
179             type: RECT;
180             scale: 1;
181             description {
182                state: "default" 0.0;
183                min : MULTIBUTTONENTRY_BUTTON_LEFT_INNER_PAD 0;
184                fixed: 1 0;
185                rel1 { relative: 1.0 0.0; to_x:"left.padding"; to_y:"elm.base";  }
186                rel2 { relative: 1.0 1.0; to_x:"left.padding"; to_y:"elm.base";  }
187                color: 0 0 0 0;
188                align: 0 0;
189             }
190          }
191          part {
192             name: "right.padding";
193             type: RECT;
194             scale: 1;
195             description {
196                state: "default" 0.0;
197                min : MULTIBUTTONENTRY_BUTTON_RIGHT_PAD 0;
198                fixed: 1 0;
199                rel1 { relative: 1.0 0.0; to: "elm.base"; }
200                rel2 { relative: 1.0 1.0; to: "elm.base"; }
201                color: 0 0 0 0;
202                align: 1 0;
203             }
204          }
205          part {
206             name: "right.inner.padding";
207             type: RECT;
208             scale: 1;
209             description {
210                state: "default" 0.0;
211                min : MULTIBUTTONENTRY_BUTTON_RIGHT_INNER_PAD 0;
212                fixed: 1 0;
213                rel1 { relative: 0.0 0.0; to_x:right.padding; to_y:elm.base;  }
214                rel2 { relative: 0.0 1.0; to_x:right.padding; to_y:elm.base;  }
215                color: 0 0 0 0;
216                align: 1 0;
217             }
218          }
219 //---------------------------------------------------- contents
220          part {
221             name: "elm.btn.bg";
222             type: RECT;
223             mouse_events: 1;
224             scale: 1;
225             description {
226                state: "default" 0.0;
227                rel1 { relative: 1.0 1.0; to_x:"left.padding";to_y:"top.padding";}
228                rel2 { relative: 0.0 0.0; to_x:"right.padding";to_y:"bottom.padding";}
229                color: MULTIBUTTONENTRY_NORMAL_BUTTON_COLOR_INC;
230             }
231             description {
232                state: "focused" 0.0;
233                inherit: "default" 0.0;
234                color: MULTIBUTTONENTRY_PRESSED_BUTTON_COLOR_INC;
235             }
236          }
237          part {
238             name: "elm.btn.text";
239             type: TEXTBLOCK;
240             mouse_events: 1;
241             scale:1;
242             description {
243                state: "default" 0.0;
244                min: 10 10;
245                max: 500 50;
246                align: 0.5 0.5;
247                text {
248                   style: "multibuttonentry_textblock_style";
249                   min: 0 1;
250                }
251                rel1 { relative: 1.0 1.0; to_x:"left.inner.padding";to_y:"top.padding";}
252                rel2 { relative: 0.0 0.0; to_x:"right.inner.padding";to_y:"bottom.padding";}
253             }
254          }
255       }
256
257       programs {
258          program {
259             name: "clicked";
260             signal: "mouse,clicked,1";
261             source: "elm.btn.bg";
262             action: SIGNAL_EMIT "clicked" "elm";
263          }
264          program {
265             name: "default";
266             signal: "default";
267             action: STATE_SET "default" 0.0;
268             target: "elm.btn.bg";
269          }
270          program {
271             name: "focused";
272             signal: "focused";
273             action: STATE_SET "focused" 0.0;
274             target: "elm.btn.bg";
275          }
276       }
277    }
278    styles {
279       style { name: "multibuttonentry_textblock_style";
280          base: "font=SLP:style=Medium align=center font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INT" text_class=label";
281       }
282    }
283
284 ///////////////////////////////////////////////////////////////////////////////////////
285    group {
286       name: "elm/label/base/extended/multibuttonentry_default";
287
288       styles {
289          style {
290             name: "textblock_style_multibuttonentry_default";
291             base: "font=SLP:style=Medium font_size=24 color=#000000 wrap=char";
292             tag:  "br" "\n";
293             tag:  "ps" "ps";
294             tag:  "hilight" "+ font=SLP:style=Bold";
295             tag:  "b" "+ font=SLP:style=Bold";
296             tag:  "tab" "\t";
297          }
298       }
299
300       parts {
301          part {
302             name: "label.swallow.background";
303             type: SWALLOW;
304             description {
305                state: "default" 0.0;
306                visible: 1;
307                rel1 { relative: 0 0; to: "elm.text"; }
308                rel2 { relative: 1 1; to: "elm.text"; }
309             }
310          }
311          part {
312             name: "elm.text";
313             type: TEXTBLOCK;
314             mouse_events: 0;
315             scale: 1;
316             description {
317                state: "default" 0.0;
318                text {
319                   style: "textblock_style_multibuttonentry_default";
320                   min: 1 1;
321                }
322             }
323          }
324       }
325    }
326
327 ///////////////////////////////////////////////////////////////////////////////////////
328    group {
329       name: "elm/multibuttonentry/closedbutton/default";
330       images {
331          image: "00_mbe_btn_circle_bg_normal.png" COMP;
332          image: "00_mbe_btn_circle_bg_press.png" COMP;
333          image: "00_mbe_btn_expand_closed.png" COMP;
334          image: "00_mbe_btn_expand_closed_press.png" COMP;
335       }
336       data.item: "closed_button_height" MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
337       data.item: "closed_button_width" MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
338
339       parts {
340          part {
341             name: "closed_button_bg";
342             scale: 1;
343             mouse_events: 0;
344             type: IMAGE;
345             description {
346                state: "default" 0.0;
347                align: 0.5 0.5;
348                min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
349                visible: 1;
350                image.normal: "00_mbe_btn_circle_bg_normal.png";
351                rel1 { relative: 0.0 0.0; }
352                rel2 { relative: 1.0 1.0; }
353             }
354             description {
355                state: "clicked" 0.0;
356                inherit: "default" 0.0;
357                image.normal: "00_mbe_btn_circle_bg_press.png";
358             }
359          }
360          part {
361             name: "closed_button";
362             scale: 1;
363             mouse_events: 1;
364             type: IMAGE;
365             description {
366                state: "default" 0.0;
367                align: 0.5 0.5;
368                min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
369                visible: 1;
370                image.normal: "00_mbe_btn_expand_closed.png";
371                rel1 { relative: 0.0 0.0; }
372                rel2 { relative: 1.0 1.0; }
373             }
374             description {
375                state: "clicked" 0.0;
376                inherit: "default" 0.0;
377                image.normal: "00_mbe_btn_expand_closed_press.png";
378             }
379          }
380       }
381
382       programs {
383          program {
384             name: "button_click";
385             signal: "mouse,down,1";
386             source: "closed_button";
387             action: STATE_SET "clicked" 0.0;
388             target: "closed_button_bg";
389             target: "closed_button";
390          }
391          program {
392             name: "button_unclick";
393             signal: "mouse,up,1";
394             source: "closed_button";
395             action: STATE_SET "default" 0.0;
396             target: "closed_button_bg";
397             target: "closed_button";
398          }
399       }
400    }
401
402    group {
403       name: "elm/multibuttonentry/label/default";
404       parts {
405          part {
406             name: "mbe.label.bg";
407             type: RECT;
408             scale: 1;
409             description {
410                state: "default" 0.0;
411                color: 0 0 0 0;
412                min: 0 0;
413                fixed: 1 1;
414             }
415             description {
416                state: "no_text" 0.0;
417                inherit: "default" 0.0;
418                visible: 0;
419             }
420          }
421          part {
422             name: "mbe.label.left.padding";
423             type: RECT;
424             scale: 1;
425             description {
426                state: "default" 0.0;
427                color: 0 0 0 0;
428                min: 0 0;
429                fixed: 1 1;
430                rel1.to: "mbe.label.bg";
431                rel2 {
432                   to: "mbe.label.bg";
433                   relative: 0.0 1.0;
434                }
435                align: 0 0.5;
436             }
437             description {
438                state: "no_text" 0.0;
439                inherit: "default" 0.0;
440                visible: 0;
441             }
442          }
443          part {
444             name: "mbe.label.right.padding";
445             type: RECT;
446             scale: 1;
447             description {
448                state: "default" 0.0;
449                color: 0 0 0 0;
450                min: MULTIBUTTONENTRY_LABEL_RIGHT_PAD 0;
451                fixed: 1 1;
452                rel1 {
453                   to: "mbe.label.bg";
454                   relative: 1.0 0.0;
455                }
456                rel2.to: "mbe.label.bg";
457                align: 1 1.0;
458             }
459             description {
460                state: "no_text" 0.0;
461                inherit: "default" 0.0;
462                visible: 0;
463             }
464          }
465          part {
466             name: "mbe.label";
467             type: TEXT;
468             scale: 1;
469             description {
470                state: "default" 0.0;
471                color: MULTIBUTTONENTRY_LABEL_TEXT_COLOR_INC;
472                min: 0 MULTIBUTTONENTRY_LABEL_MIN_HEIGHT;
473                fixed: 1 1;
474                text {
475                   font: "SLP:style=Roman";
476                   size: MULTIBUTTONENTRY_LABEL_TEXT_SIZE;
477                   min: 1 1;
478                   align: 0.0 0.428;
479                }
480                rel1 { relative: 1.0 1.0; to: "mbe.label.left.padding"; }
481                rel2 { relative: 0.0 0.0; to: "mbe.label.right.padding"; }
482             }
483             description {
484                state: "no_text" 0.0;
485                inherit: "default" 0.0;
486                min: 10 50;
487             }
488          }
489       }
490
491       programs {
492          program {
493             name: "has_text";
494             signal: "elm,mbe,set_text";
495             source: "";
496             action: STATE_SET "default" 0.0;
497             target: "mbe.label.bg";
498             target: "mbe.label.left.padding";
499             target: "mbe.label.right.padding";
500             target: "mbe.label";
501          }
502          program {
503             name: "no_text";
504             signal: "elm,mbe,clear_text";
505             source: "";
506             action: STATE_SET "no_text" 0.0;
507             target: "mbe.label.bg";
508             target: "mbe.label.left.padding";
509             target: "mbe.label.right.padding";
510             target: "mbe.label";
511          }
512       }
513    }
514