e5a0b64c6cd904b0079865d2ff5a367e96c1d9cd
[apps/core/preloaded/lockscreen.git] / data / edje / swipe_lock.edc
1 /*
2  * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 group {
18         styles {
19                 style {
20                         name: "time_style_default";
21                         base: "style=far_shadow,bottom shadow_color=#00000033 font=SamsungNeoNum-3T:style=Regular color=#FFFFFF font_size=102 wrap=none";
22                         tag: "small_font" "+ font_size=40 font=SamsungNeoNum-3T:style=Light";
23                 }
24                 style {
25                         name: "date_style_default";
26                         base: "style=far_shadow,bottom shadow_color=#00000033 font=Tizen:style=Regular font_size=30 color=#FFFFFF wrap=none align=left text_class=ATO003";
27                         tag: "small_font" "+ font_size=24";
28                 }
29         }
30         name: "swipe-lock";
31         parts {
32                 part {
33                         name: "bg";
34                         type: SPACER;
35                         description {
36                                 state: "default" 0.0;
37                         }
38                 }
39                 part {
40                         name: "vi_clipper";
41                         type: RECT;
42                         description {
43                                 state: "default" 0.0;
44                                 color: 255 255 255 255;
45                         }
46                         description {
47                                 state: "effect" 0.0;
48                                 color: 255 255 255 0;
49                         }
50                 }
51                 part {
52                         name: "padding.status_bar";
53                         type: SPACER;
54                         description {
55                                 state: "default" 0.0;
56                                 align: 0 0;
57                                 rel1 { relative: 0.0 0.0; to: "bg"; }
58                                 rel2 { relative: 1.0 INDICATOR_HEIGHT/WIN_HEIGHT; to: "bg"; }
59                         }
60                 }
61                 part {
62                         name: "padding.top";
63                         type: SPACER;
64                         description {
65                                 state: "default" 0.0;
66                                 align: 0 0;
67                                 rel1 { relative: 0.0 INDICATOR_HEIGHT/WIN_HEIGHT; to: "bg"; }
68                                 rel2 { relative: 1.0 (INDICATOR_HEIGHT+SWIPE_LOCK_PADDING_TOP)/WIN_HEIGHT; to: "bg"; }
69                         }
70                         description {
71                                 state: "effect_start" 0.0;
72                                 inherit: "default" 0.0;
73                                 rel1 { offset: 0 -6; }
74                                 rel2 { offset: 0 -6; }
75                         }
76                         description {
77                                 state: "effect" 0.0;
78                                 inherit: "default" 0.0;
79                                 rel1 { offset: 0 -SWIPE_LOCK_EFFECT_HEIGHT; }
80                                 rel2 { offset: 0 -SWIPE_LOCK_EFFECT_HEIGHT; }
81                         }
82                 }
83                 part {
84                         name: "padding.bottom";
85                         type: SPACER;
86                         description {
87                                 state: "default" 0.0;
88                                 align: 0 0;
89                                 rel1 { relative: 0.0 (WIN_HEIGHT-SWIPE_LOCK_PADDING_BOTTOM)/WIN_HEIGHT; to: "bg"; }
90                                 rel2 { relative: 1.0 1.0; to: "bg"; }
91                         }
92                         description {
93                                 state: "effect_start" 0.0;
94                                 inherit: "default" 0.0;
95                                 rel1 { offset: 0 6; }
96                                 rel2 { offset: 0 6; }
97                         }
98                         description {
99                                 state: "effect" 0.0;
100                                 inherit: "default" 0.0;
101                                 rel1 { offset: 0 SWIPE_LOCK_EFFECT_HEIGHT; }
102                                 rel2 { offset: 0 SWIPE_LOCK_EFFECT_HEIGHT; }
103                         }
104                 }
105                 part {
106                         name: "padding.left";
107                         type: SPACER;
108                         description {
109                                 state: "default" 0.0;
110                                 align: 0 0;
111                                 rel1 { relative: 0.0 0.0; to: "bg"; }
112                                 rel2 { relative: SWIPE_LOCK_PADDING_LEFT/WIN_WIDTH 1.0; to: "bg"; }
113                         }
114                 }
115                 part {
116                         name: "padding.right";
117                         type: SPACER;
118                         description {
119                                 state: "default" 0.0;
120                                 align: 0 0;
121                                 rel1 { relative: (WIN_WIDTH-SWIPE_LOCK_PADDING_RIGHT)/WIN_WIDTH 0.0; to: "bg"; }
122                                 rel2 { relative: 1.0 1.0; to: "bg"; }
123                         }
124                 }
125                 part {
126                         name: "sw.contextual_event";
127                         type: SWALLOW;
128                         clip_to: "vi_clipper";
129                         description {
130                                 state: "default" 0.0;
131                                 align: 0 0;
132                                 rel1 { relative: 0.0 INDICATOR_HEIGHT/WIN_HEIGHT; to: "bg"; }
133                                 rel2 { relative: 1.0 (INDICATOR_HEIGHT+CONTEXTUAL_INFO_HEIGHT)/WIN_HEIGHT; to: "bg"; }
134                         }
135                         description {
136                                 state: "effect_start" 0.0;
137                                 inherit: "default" 0.0;
138                                 rel1 { offset: 0 -6; }
139                                 rel2 { offset: 0 -6; }
140                         }
141                         description {
142                                 state: "effect" 0.0;
143                                 inherit: "default" 0.0;
144                                 rel1 { offset: 0 -SWIPE_LOCK_EFFECT_HEIGHT; }
145                                 rel2 { offset: 0 -SWIPE_LOCK_EFFECT_HEIGHT; }
146                         }
147                 }
148                 part {
149                         name: "txt.time";
150                         type: TEXTBLOCK;
151                         clip_to: "vi_clipper";
152                         description {
153                                 state: "default" 0.0;
154                                 align: 0 0;
155                                 fixed: 1 1;
156                                 rel1 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "padding.top"; }
157                                 rel2 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "padding.top"; }
158                                 text {
159                                         style: "time_style_default";
160                                         align: 0.5 0.5;
161                                         min: 1 1;
162                                         ellipsis: -1;
163                                         text: "12:45 <small_font>PM</samll_font>";
164                                 }
165                         }
166                 }
167                 part {
168                         name: "txt.date";
169                         type: TEXTBLOCK;
170                         clip_to: "vi_clipper";
171                         description {
172                                 state: "default" 0.0;
173                                 align: 0 0;
174                                 fixed: 1 1;
175                                 rel1 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "txt.time"; offset: 0 -13; }
176                                 rel2 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "txt.time"; offset: 0 -13; }
177                                 text {
178                                         style: "date_style_default";
179                                         align: 0.5 0.5;
180                                         min: 1 1;
181                                         ellipsis: -1;
182                                         text: "Wed 1 December";
183                                 }
184                         }
185                 }
186                 part {
187                         name: "padding.txt.battery";
188                         type: SPACER;
189                         scale: 1;
190                         description {
191                                 state: "default" 0.0;
192                                 min: WIN_WIDTH 62;
193                                 max: WIN_WIDTH 62;
194                                 fixed: 1 1;
195                                 align: 0 0;
196                                 rel1 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "txt.date"; }
197                                 rel2 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "txt.date"; }
198                         }
199                 }
200                 part {
201                         name: "txt.battery";
202                         type: TEXT;
203                         scale: 1;
204                         clip_to: "vi_clipper";
205                         description {
206                                 state: "default" 0.0;
207                                 min: 314 40;
208                                 max: 314 40;
209                                 fixed: 1 1;
210                                 align: 0 0;
211                                 visible: 1;
212                                 rel1 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "padding.txt.battery"; }
213                                 rel2 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "padding.txt.battery"; }
214                                 text {
215                                         align: 0.0 0.5;
216                                         min: 1 1;
217                                         ellipsis: -1;
218                                         text: "Charging: 50%";
219                                         size: 28;
220                                 }
221                         }
222                         description {
223                                 state: "contextual_event" 0.0;
224                                 inherit: "default" 0.0;
225                                 align: 0 0;
226                                 rel1 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "sw.contextual_event"; offset: 0 5; }
227                                 rel2 { relative: 1.0 1.0; to_x: "padding.left"; to_y: "sw.contextual_event"; offset: 0 5; }
228                         }
229                         description {
230                                 state: "hide" 0.0;
231                                 inherit: "default" 0.0;
232                                 visible: 0;
233                         }
234                 }
235                 part {
236                         name: "padding.txt.plmn";
237                         type: SPACER;
238                         scale: 1;
239                         description {
240                                 state: "default" 0.0;
241                                 min: WIN_WIDTH 14;
242                                 max: WIN_WIDTH 14;
243                                 fixed: 1 1;
244                                 align: 0 1;
245                                 rel1 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.bottom"; }
246                                 rel2 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.bottom"; }
247                         }
248                 }
249                 part {
250                         name: "txt.plmn";
251                         type: SWALLOW;
252                         scale: 1;
253                         clip_to: "vi_clipper";
254                         description {
255                                 state: "default" 0.0;
256                                 min: 314 40;
257                                 max: 314 40;
258                                 fixed: 1 1;
259                                 align: 0 1;
260                                 visible: 1;
261                                 rel1 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.txt.plmn"; }
262                                 rel2 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.txt.plmn"; }
263                         }
264                         description {
265                                 state: "hide" 0.0;
266                                 inherit: "default" 0.0;
267                                 visible: 0;
268                         }
269                 }
270                 part {
271                         name: "sw.camera";
272                         type: SWALLOW;
273                         scale: 1;
274                         clip_to: "vi_clipper";
275                         description {
276                                 state: "default" 0.0;
277                                 min: CAMERA_LAYOUT_SIZE CAMERA_LAYOUT_SIZE;
278                                 max: CAMERA_LAYOUT_SIZE CAMERA_LAYOUT_SIZE;
279                                 align: 1 1;
280                                 fixed: 1 1;
281                                 rel1 { relative: 0.0 0.0; to_x: "padding.right"; to_y: "padding.bottom"; offset: 85 85; }
282                                 rel2 { relative: 0.0 0.0; to_x: "padding.right"; to_y: "padding.bottom"; offset: 85 85; }
283                         }
284                 }
285         }
286         programs {
287                 program {
288                         name: "vi_effect_start.top";
289                         signal: "vi_effect_start.top";
290                         source: "padding.top";
291                         action: STATE_SET "effect_start" 0.0;
292                         target: "padding.top";
293                         target: "sw.contextual_event";
294                 }
295                 program {
296                         name: "vi_effect_start.bottom";
297                         signal: "vi_effect_start.bottom";
298                         source: "padding.bottom";
299                         action: STATE_SET "effect_start" 0.0;
300                         target: "padding.bottom";
301                 }
302                 program {
303                         name: "vi_effect_start";
304                         signal: "vi_effect_start";
305                         source: "padding.top";
306                         action: STATE_SET "effect_start" 0.0;
307                         target: "padding.top";
308                         target: "sw.contextual_event";
309                         target: "padding.bottom";
310                 }
311                 program {
312                         name: "vi_effect";
313                         signal: "vi_effect";
314                         source: "padding.top";
315                         action: STATE_SET "effect" 0.0;
316                         target: "padding.top";
317                         target: "sw.contextual_event";
318                         target: "padding.bottom";
319                         target: "vi_clipper";
320                         transition: SIN_FAC 0.5 1.7;
321                         after: "vi_effect_end";
322                 }
323                 program {
324                         name: "vi_effect_end";
325                         signal: "vi_effect_end";
326                         source: "vi_clipper";
327                         action: SIGNAL_EMIT "vi_effect_end" "vi_clipper";
328                 }
329                 program {
330                         name: "vi_effect_stop";
331                         signal: "vi_effect_stop";
332                         source: "padding.top";
333                         action: STATE_SET "default" 0.0;
334                         target: "padding.top";
335                         target: "sw.contextual_event";
336                         target: "padding.bottom";
337                         target: "vi_clipper";
338                         transition: BOUNCE 0.6 2.5 3.0;
339                 }
340                 program {
341                         name: "hide,txt,battery";
342                         signal: "hide,txt,battery";
343                         source: "txt.battery";
344                         action: STATE_SET "hide" 0.0;
345                         target: "txt.battery";
346                 }
347                 program {
348                         name: "show,txt,battery";
349                         signal: "show,txt,battery";
350                         source: "txt.battery";
351                         action: STATE_SET "default" 0.0;
352                         target: "txt.battery";
353                 }
354                 program {
355                         name: "show,txt,battery,contextual,event";
356                         signal: "show,txt,battery,contextual,event";
357                         source: "txt.battery";
358                         action: STATE_SET "contextual_event" 0.0;
359                         target: "txt.battery";
360                 }
361                 program {
362                         name: "hide,txt,plmn";
363                         signal: "hide,txt,plmn";
364                         source: "txt.plmn";
365                         action: STATE_SET "hide" 0.0;
366                         target: "txt.plmn";
367                 }
368                 program {
369                         name: "show,txt,plmn";
370                         signal: "show,txt,plmn";
371                         source: "txt.plmn";
372                         action: STATE_SET "default" 0.0;
373                         target: "txt.plmn";
374                 }
375         }
376 }