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