dd9af84d113fe4568f95b477b166709963421250
[profile/ivi/lemolo.git] / data / themes / includes / multiparty-list.edc
1 group {
2    name: "elm/layout/dialer/multiparty-details";
3
4    images {
5       image: "bt_multiparty_hangup.png" COMP;
6       image: "bt_multiparty_private.png" COMP;
7    }
8
9    parts {
10       part {
11          name: "hangup.ico";
12          type: IMAGE;
13          mouse_events: 1;
14          description {
15             state: "default" 0.0;
16             color: 255 255 255 255;
17             color_class: "action";
18             min: LIST_ICON_SIZE LIST_ICON_SIZE;
19             max: LIST_ICON_SIZE LIST_ICON_SIZE;
20             align: 0.0 0.5;
21             rel1.offset: BORDER_PADDING 0;
22             rel2 {
23                relative: 0.0 1.0;
24                offset: (LIST_ICON_SIZE + BORDER_PADDING - 1) -1;
25             }
26             image.normal: "bt_multiparty_hangup.png";
27          }
28          description {
29             state: "pressed" 0.0;
30             inherit: "default" 0.0;
31             color_class: "light";
32          }
33       }
34
35       programs {
36          program {
37             signal: "mouse,down,1";
38             source: "hangup.ico";
39             action: STATE_SET "pressed" 0.0;
40             transition: ACCELERATE 0.1;
41             target: "hangup.ico";
42          }
43
44          program {
45             signal: "mouse,up,1";
46             source: "hangup.ico";
47             action: STATE_SET "default" 0.0;
48             transition: DECELERATE 0.1;
49             target: "hangup.ico";
50          }
51
52          program {
53             signal: "mouse,clicked,1";
54             source: "hangup.ico";
55             action: SIGNAL_EMIT "clicked,hangup" "call";
56          }
57       }
58
59       part {
60          name: "private.clipper";
61          type: RECT;
62          mouse_events: 0;
63          description {
64             state: "default" 0.0;
65             color: 255 255 255 255;
66          }
67          description {
68             state: "hidden" 0.0;
69             inherit: "default" 0.0;
70             color: 255 255 255 0;
71             visible: 0;
72          }
73       }
74
75       part {
76          name: "private.ico";
77          type: IMAGE;
78          mouse_events: 1;
79          clip_to: "private.clipper";
80          description {
81             state: "default" 0.0;
82             color: 255 255 255 255;
83             color_class: "action";
84             min: LIST_ICON_SIZE LIST_ICON_SIZE;
85             max: LIST_ICON_SIZE LIST_ICON_SIZE;
86             align: 0.0 0.5;
87             rel1 {
88                relative: 1.0 0.0;
89                offset: (-LIST_ICON_SIZE -BORDER_PADDING - 1) 0;
90             }
91             rel2 {
92                relative: 1.0 1.0;
93                offset: (-BORDER_PADDING - 1) -1;
94             }
95             image.normal: "bt_multiparty_private.png";
96          }
97          description {
98             state: "pressed" 0.0;
99             inherit: "default" 0.0;
100             color_class: "light";
101          }
102       }
103
104       part {
105          name: "private.label";
106          type: TEXT;
107          mouse_events: 0;
108          clip_to: "private.clipper";
109          description {
110             state: "default" 0.0;
111             color: 255 255 255 255;
112             color_class: "action";
113             align: 0.5 0.0;
114             fixed: 1 1;
115             rel1 {
116                to: "private.ico";
117                relative: 0.5 1.0;
118                offset: 0 2;
119             }
120             rel2 {
121                to_x: "private.ico";
122                relative: 0.5 1.0;
123                offset: -1 -1;
124             }
125             text {
126                text: "PRIVATE";
127                font: FONT_NORMAL;
128                size: SIZE_SMALL;
129                min: 1 1;
130                align: 0.5 0.0;
131             }
132          }
133          description {
134             state: "pressed" 0.0;
135             inherit: "default" 0.0;
136             color_class: "light";
137          }
138       }
139
140       programs {
141          program {
142             signal: "mouse,down,1";
143             source: "private.ico";
144             action: STATE_SET "pressed" 0.0;
145             transition: ACCELERATE 0.1;
146             target: "private.ico";
147             target: "private.label";
148          }
149
150          program {
151             signal: "mouse,up,1";
152             source: "private.ico";
153             action: STATE_SET "default" 0.0;
154             in: 0.1 0.0;
155             transition: DECELERATE 0.1;
156             target: "private.ico";
157             target: "private.label";
158          }
159
160          program {
161             name: "clicked_private_ico_phase1";
162             signal: "mouse,clicked,1";
163             source: "private.ico";
164             action: SIGNAL_EMIT "clicked,private" "call";
165          }
166
167          program {
168             signal: "show,private";
169             source: "call";
170             action: STATE_SET "default" 0.0;
171             target: "private.clipper";
172          }
173          program {
174             signal: "hide,private";
175             source: "call";
176             action: STATE_SET "hidden" 0.0;
177             target: "private.clipper";
178          }
179       }
180
181       part {
182          name: "elm.text.name";
183          type: TEXT;
184          mouse_events: 0;
185          scale: 1;
186          api: "name" "party name";
187          description {
188             state: "default" 0.0;
189             color: 255 255 255 255;
190             color_class: "action";
191             rel1 {
192                to_x: "hangup.ico";
193                relative: 1.0 0.0;
194                offset: ITEM_PADDING ITEM_PADDING;
195             }
196             rel2 {
197                to_x: "private.ico";
198                relative: 0.0 0.5;
199                offset: (-ITEM_PADDING - 1) 0;
200             }
201             text {
202                text: "Name Here";
203                font: FONT_NORMAL;
204                size: SIZE_LARGE;
205                size_range: SIZE_SMALL SIZE_LARGE;
206                ellipsis: 0.0;
207                min: 0 1;
208                fit: 1 0;
209                align: -1.0 1.0;
210             }
211          }
212          description {
213             state: "alternate" 0.0;
214             inherit: "default" 0.0;
215             color: 255 0 0 255;
216             visible: 0;
217          }
218       }
219
220       part {
221          name: "elm.text.number";
222          type: TEXT;
223          mouse_events: 0;
224          scale: 1;
225          api: "number" "party number";
226          description {
227             state: "default" 0.0;
228             color: 255 255 255 255;
229             color_class: "light";
230             rel1 {
231                to_x: "hangup.ico";
232                relative: 1.0 0.5;
233                offset: ITEM_PADDING 0;
234             }
235             rel2 {
236                to_x: "private.ico";
237                relative: 0.0 1.0;
238                offset: (-ITEM_PADDING - 1) (-ITEM_PADDING - 1);
239             }
240             text {
241                text: "3333-4444";
242                font: FONT_NORMAL;
243                size: SIZE_MEDIUM;
244                size_range: SIZE_SMALL SIZE_MEDIUM;
245                ellipsis: 1.0;
246                min: 0 1;
247                fit: 1 0;
248                align: -1.0 0.0;
249             }
250          }
251          description {
252             state: "alternate" 0.0;
253             inherit: "default" 0.0;
254             color_class: "action";
255             rel1 {
256                to_x: "hangup.ico";
257                relative: 1.0 0.0;
258                offset: ITEM_PADDING ITEM_PADDING;
259             }
260             rel2 {
261                to_x: "private.ico";
262                relative: 0.0 1.0;
263                offset: (-ITEM_PADDING - 1) (-ITEM_PADDING - 1);
264             }
265             text {
266                text: "3333-4444";
267                font: FONT_NORMAL;
268                size: SIZE_LARGE;
269                size_range: SIZE_SMALL SIZE_LARGE;
270                ellipsis: 1.0;
271                min: 0 1;
272                fit: 1 0;
273                align: -1.0 0.5;
274             }
275          }
276       }
277
278       programs {
279          program {
280             signal: "show,name";
281             source: "call";
282             action: STATE_SET "default" 0.0;
283             target: "elm.text.name";
284             target: "elm.text.number";
285          }
286
287          program {
288             signal: "hide,name";
289             source: "call";
290             action: STATE_SET "alternate" 0.0;
291             target: "elm.text.name";
292             target: "elm.text.number";
293          }
294       }
295    }
296 }