[entry] Fix a editfield_space which using by rename icon and clear button.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / multibuttonentry.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18    sounds {
19       sample {
20          name: "touch_sound" AS_IS;
21          source: "S_Touch_30ms.wav";
22       }
23    }
24
25 group {
26    name: "elm/multibuttonentry/base/default";
27
28    data.item: "horizontal_pad" MULTIBUTTONENTRY_BOX_HORIZONTAL_PAD_INC;
29    data.item: "vertical_pad" MULTIBUTTONENTRY_BOX_VERTICAL_PAD_INC;
30    data.item: "closed_button_type" "label"; /* image, label, default: label */
31
32    parts {
33       part {
34          name: "top.left.pad";
35          type: RECT;
36          mouse_events: 0;
37          scale: 1;
38          description {
39             state: "default" 0.0;
40             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
41             fixed: 1 1;
42             rel2.relative: 0.0 0.0;
43             align: 0.0 0.0;
44             color: 0 0 0 0;
45          }
46       }
47       part {
48          name: "bottom.right.pad";
49          type: RECT;
50          mouse_events: 0;
51          scale: 1;
52          description {
53             state: "default" 0.0;
54             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
55             fixed: 1 1;
56             rel1.relative: 1.0 1.0;
57             align: 1.0 1.0;
58             color: 0 0 0 0;
59          }
60       }
61       part {
62          name: "box.swallow";
63          type: SWALLOW;
64          description {
65             state: "default" 0.0;
66             rel1 {
67                relative: 1.0 1.0;
68                to: "top.left.pad";
69             }
70             rel2 {
71                relative: 0.0 0.0;
72                to: "bottom.right.pad";
73             }
74          }
75       }
76       part { name: "block_events";
77          type: RECT;
78          description {
79             state: "default" 0.0;
80             color: 0 0 0 0;
81          }
82          description {
83             state: "invisible" 0.0;
84             visible: 0;
85          }
86       }
87       part { name: "events";
88          type: RECT;
89          repeat_events: 1;
90          ignore_flags: ON_HOLD;
91          description {
92             state: "default" 0.0;
93             color: 0 0 0 0;
94          }
95       }
96    }
97    programs {
98       program {
99          name: "clicked";
100          signal: "mouse,clicked,1";
101          source: "events";
102          action: SIGNAL_EMIT "elm,action,clicked" "";
103       }
104       program {
105          name: "event_allow";
106          signal: "elm,state,event,allow";
107          source: "";
108          action: STATE_SET "invisible" 0.0;
109          target: "block_events";
110       }
111       program {
112          name: "event_block";
113          signal: "elm,state,event,block";
114          source: "";
115          action: STATE_SET "default" 0.0;
116          target: "block_events";
117       }
118    }
119 }
120
121 group {
122    name: "elm/multibuttonentry/guidetext/default";
123
124    styles {
125       style {
126          name: "multibuttonentry_guide_style";
127          base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_GUIDE_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_GUIDE_TEXT_COLOR_INC" wrap=char text_class=tizen";
128          tag:  "br" "\n";
129          tag:  "ps" "ps";
130          tag:  "hilight" "+ font=Tizen:style=Bold";
131          tag:  "b" "+ font=Tizen:style=Bold";
132          tag:  "tab" "\t";
133       }
134    }
135
136    parts {
137       part {
138          name: "elm.text";
139          type: TEXTBLOCK;
140          mouse_events: 0;
141          scale: 1;
142          description {
143             state: "default" 0.0;
144             min: 0 MULTIBUTTONENTRY_GUIDE_HEIGHT_INC;
145             text.style: "multibuttonentry_guide_style";
146          }
147       }
148    }
149 }
150
151 group {
152    name: "elm/multibuttonentry/btn/default";
153
154    styles {
155       style {
156          name: "multibuttonentry_btn_text_style";
157          base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" text_class=tizen";
158       }
159       style {
160          name: "multibuttonentry_btn_text_ellipsis_style";
161          base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" ellipsis=1 text_class=tizen";
162       }
163    }
164
165    images {
166       image: "00_contacts_button.png" COMP;
167       image: "00_contacts_button_press.png" COMP;
168    }
169
170    data.item: "button_left_pad" MULTIBUTTONENTRY_BUTTON_PAD_INC;
171    data.item: "button_right_pad" MULTIBUTTONENTRY_BUTTON_PAD_INC;
172
173    parts {
174       part {
175          name: "elm.btn.bg";
176          type: IMAGE;
177          mouse_events: 0;
178          scale: 1;
179          description {
180             state: "default" 0.0;
181             min: 0 MULTIBUTTONENTRY_BUTTON_HEIGHT_INC;
182             image {
183                normal: "00_contacts_button.png";
184                border: MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC;
185                border_scale: 1;
186             }
187          }
188          description {
189             state: "focused" 0.0;
190             inherit: "default" 0.0;
191             image.normal: "00_contacts_button_press.png";
192          }
193       }
194       part {
195          name: "left.padding";
196          type: RECT;
197          mouse_events: 0;
198          scale: 1;
199          description {
200             state: "default" 0.0;
201             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
202             fixed: 1 0;
203             rel2.relative: 0.0 1.0;
204             align: 0.0 0.5;
205             color: 0 0 0 0;
206          }
207       }
208       part {
209          name: "right.padding";
210          type: RECT;
211          mouse_events: 0;
212          scale: 1;
213          description {
214             state: "default" 0.0;
215             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
216             fixed: 1 0;
217             rel1.relative: 1.0 0.0;
218             align: 1.0 0.5;
219             color: 0 0 0 0;
220          }
221       }
222       part {
223          name: "elm.btn.text";
224          type: TEXTBLOCK;
225          mouse_events: 0;
226          multiline: 0;
227          scale: 1;
228          description {
229             state: "default" 0.0;
230             text {
231                style: "multibuttonentry_btn_text_style";
232                min: 1 0;
233             }
234             rel1 {
235                relative: 1.0 0.0;
236                to: "left.padding";
237             }
238             rel2 {
239                relative: 0.0 1.0;
240                to: "right.padding";
241             }
242          }
243          description {
244             state: "ellipsis" 0.0;
245             inherit: "default" 0.0;
246             text {
247                style: "multibuttonentry_btn_text_ellipsis_style";
248                min: 0 0;
249             }
250          }
251       }
252       part { name: "events";
253          type: RECT;
254          ignore_flags: ON_HOLD;
255          description {
256             state: "default" 0.0;
257             color: 0 0 0 0;
258          }
259       }
260    }
261    programs {
262       program {
263          name: "text_ellipsis";
264          signal: "elm,state,text,ellipsis";
265          source: "";
266          action: STATE_SET "ellipsis" 0.0;
267          target: "elm.btn.text";
268       }
269       program {
270          name: "focused";
271          signal: "focused";
272          source: "";
273          action: STATE_SET "focused" 0.0;
274          target: "elm.btn.bg";
275          after: "selected";
276       }
277       program {
278          name: "unfocused";
279          signal: "default";
280          source: "";
281          action: STATE_SET "default" 0.0;
282          target: "elm.btn.bg";
283       }
284       program {
285          name: "clicked";
286          signal: "mouse,clicked,1";
287          source: "events";
288          action: SIGNAL_EMIT "elm,action,clicked" "";
289          after: "touch_snd";
290       }
291       program {
292          name: "touch_snd";
293          action: PLAY_SAMPLE "touch_sound" 1.0;
294       }
295       program {
296          name: "selected";
297          action: SIGNAL_EMIT "elm,action,selected" "";
298       }
299    }
300 }
301
302 group {
303    name: "elm/multibuttonentry/number/default";
304
305    parts {
306       part {
307          name: "left.pad";
308          type: RECT;
309          mouse_events: 0;
310          scale: 1;
311          description {
312             state: "default" 0.0;
313             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
314             fixed: 1 0;
315             rel2.relative: 0.0 1.0;
316             align: 0.0 0.5;
317             color: 0 0 0 0;
318          }
319       }
320       part {
321          name: "elm.text";
322          type: TEXT;
323          mouse_events: 0;
324          scale: 1;
325          description {
326             state: "default" 0.0;
327             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
328             color: MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC;
329             text {
330                font: "Tizen:style=Regular";
331                size: MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC;
332                min: 1 0;
333                text_class: "tizen";
334             }
335             rel1 {
336                relative: 1.0 0.0;
337                to: "left.pad";
338             }
339          }
340       }
341    }
342 }
343
344 group {
345    name: "elm/multibuttonentry/closedbutton/default";
346
347    images {
348       image: "00_circle_button.png" COMP;
349       image: "00_button_expand_closed.png" COMP;
350    }
351
352    parts {
353       part {
354          name: "closed_button_bg";
355          scale: 1;
356          mouse_events: 0;
357          description {
358             state: "default" 0.0;
359             min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC;
360             image.normal: "00_circle_button.png";
361          }
362       }
363       part {
364          name: "closed_button";
365          scale: 1;
366          mouse_events: 0;
367          description {
368             state: "default" 0.0;
369             image.normal: "00_button_expand_closed.png";
370          }
371       }
372    }
373 }
374
375 group {
376    name: "elm/multibuttonentry/label/default";
377
378    styles {
379       style {
380          name: "multibuttonentry_label_style";
381          base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_LABEL_TEXT_COLOR_INC" wrap=char text_class=tizen";
382          tag:  "br" "\n";
383          tag:  "ps" "ps";
384          tag:  "hilight" "+ font=Tizen:style=Bold";
385          tag:  "b" "+ font=Tizen:style=Bold";
386          tag:  "tab" "\t";
387       }
388    }
389
390    parts {
391       part {
392          name: "mbe.label.right.padding";
393          type: RECT;
394          mouse_events: 0;
395          scale: 1;
396          description {
397             state: "default" 0.0;
398             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
399             fixed: 1 0;
400             rel1.relative: 1.0 0.0;
401             align: 1.0 0.5;
402             color: 0 0 0 0;
403          }
404       }
405       part {
406          name: "mbe.label";
407          type: TEXTBLOCK;
408          mouse_events: 0;
409          scale: 1;
410          description {
411             state: "default" 0.0;
412             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
413             text {
414                style: "multibuttonentry_label_style";
415                min: 1 0;
416             }
417             rel2 {
418                relative: 0.0 1.0;
419                to: "mbe.label.right.padding";
420             }
421          }
422       }
423    }
424 }