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