Lockscreen refactor
[apps/core/preloaded/lockscreen.git] / res / edje / lockscreen.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 #define WIN_WIDTH 720
18 #define WIN_HEIGHT 1280
19
20 #define INDICATOR_HEIGHT 38
21
22 #define SWIPE_LOCK_PADDING_TOP 10
23 #define SWIPE_LOCK_PADDING_BOTTOM 32
24 #define SWIPE_LOCK_PADDING_LEFT 24
25 #define SWIPE_LOCK_PADDING_RIGHT 24
26 #define SWIPE_LOCK_EFFECT_HEIGHT 130
27 #define SWIPE_LOCK_BOUNCE_EFFECT_OFFSET 12
28
29 #define CONTEXTUAL_INFO_HEIGHT 314
30 #define CONTEXTUAL_INFO_DATE_HEIGHT 44
31 #define CONTEXTUAL_INFO_CLOSE_BTN_HEIGHT 41
32 #define CONTEXTUAL_INFO_PAGE_HEIGHT 181
33 #define CONTEXTUAL_INFO_PAGE_INDICATOR_HEIGHT 48
34 #define CONTEXTUAL_INFO_EVENT_AREA_HEIGHT (CONTEXTUAL_INFO_PAGE_HEIGHT+CONTEXTUAL_INFO_CLOSE_BTN_HEIGHT)
35
36 #define MISSED_EVT_ITEM_HEIGHT 90
37 #define MISSED_EVT_ITEM_PADDING_LEFT 15
38 #define MISSED_EVT_ITEM_PADDING_RIGHT 15
39 #define MISSED_EVT_ITEM_PADDING_TOP 8
40 #define MISSED_EVT_ITEM_PADDING_BOTTOM 8
41
42 #define MISSED_EVT_SEPARATOR_WIDTH (540-20)
43 #define MISSED_EVT_SEPARATOR_HEIGHT 1
44
45 #define MISSED_EVT_ICON_SIZE 55
46
47 #define CAMERA_LAYOUT_SIZE 280
48 #define CAMERA_ICON_SIZE 110
49
50 collections {
51         base_scale: 2.6;
52
53 #include "color_classes.edc"
54 #include "swipe_lock.edc"
55 #include "camera.edc"
56 #include "contextual_event.edc"
57 #include "missed_event_item.edc"
58
59         group {
60                 name: "lockscreen";
61                 parts {
62                         part {
63                                 name: "bg";
64                                 type: SPACER;
65                                 description {
66                                         state: "default" 0.0;
67                                         rel1 { relative: 0.0 0.0; }
68                                         rel2 { relative: 1.0 1.0; }
69                                 }
70                         }
71                         part {
72                                 name: "bg_clipper";
73                                 type: RECT;
74                                 description {
75                                         state: "default" 0.0;
76                                         color: 255 255 255 255;
77                                 }
78                                 description {
79                                         state: "effect" 0.0;
80                                         color: 0 0 0 0;
81                                 }
82                         }
83                         part {
84                                 name: "sw.bg";
85                                 type: SWALLOW;
86                                 clip_to: "bg_clipper";
87                                 description {
88                                         state: "default" 0.0;
89                                         fixed: 1 1;
90                                 }
91                         }
92                         part {
93                                 name: "music_dim";
94                                 type: RECT;
95                                 description {
96                                         state: "default" 0.0;
97                                         rel1 { relative: 0.0 0.0; to : "sw.bg";}
98                                         rel2 { relative: 1.0 1.0; to : "sw.bg";}
99                                         color: 0 0 0 0;
100                                         visible: 0;
101                                 }
102                                 description {
103                                         state: "music_on" 0.0;
104                                         inherit: "default" 0.0;
105                                         color: 20 20 20 100;
106                                         visible: 1;
107                                 }
108                         }
109                         part {
110                                 name: "sw.password_layout";
111                                 type: SWALLOW;
112                                 description {
113                                         state: "default" 0.0;
114                                         fixed: 1 1;
115                                 }
116                         }
117                         part {
118                                 name: "sw.swipe_layout";
119                                 type: SWALLOW;
120                                 description {
121                                         state: "default" 0.0;
122                                         fixed: 1 1;
123                                 }
124                         }
125                 }
126                 programs {
127                         program {
128                                 name: "bg,hide";
129                                 signal: "bg,hide";
130                                 source: "lockscreen";
131                                 action: STATE_SET "effect" 0.0;
132                                 target: "bg_clipper";
133                                 transition: SIN_FAC 0.5 1.7;
134                         }
135                         program {
136                                 name: "bg,show";
137                                 signal: "bg,show";
138                                 source: "lockscreen";
139                                 action: STATE_SET "default" 0.0;
140                                 target: "bg_clipper";
141                                 transition: SIN_FAC 0.5 1.7;
142                         }
143                         program {
144                                 name: "music_on";
145                                 signal: "music_on";
146                                 source: "lockscreen";
147                                 action: STATE_SET "music_on" 0.0;
148                                 target: "music_dim";
149                         }
150                         program {
151                                 name: "music_off";
152                                 signal: "music_off";
153                                 source: "lockscreen";
154                                 action: STATE_SET "default" 0.0;
155                                 target: "music_dim";
156                         }
157                 }
158         }
159 }