Remove security-server dependency
[apps/core/preloaded/lockscreen.git] / data / edje / index.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 INDEX_PAGECONTROL_IND_INC 35 35
18 #define INDEX_PAGECONTROL_IND_MIN_INC 35 35
19 #define INDEX_PAGECONTROL_FONT_COLOR_INC 255 255 255
20 #define INDEX_PAGECONTROL_FONT_SIZE_INC 18
21
22 collections {
23         base_scale: 1.7;
24         group {
25                 name: "elm/index/base/vertical/lockscreen/index";
26                 alias: "elm/index/base/horizontal/lockscreen/index";
27                 parts {
28                         part {
29                                 name: "clip";
30                                 type: RECT;
31                                 mouse_events: 0;
32                                 description {
33                                         state: "default" 0.0;
34                                         visible:  0;
35                                         color: 255 255 255 0;
36                                 }
37                                 description {
38                                         state: "active" 0.0;
39                                         visible:  1;
40                                         color: 255 255 255 255;
41                                 }
42                         }
43                         part {
44                                 name: "elm.swallow.index.0";
45                                 type: SWALLOW;
46                                 mouse_events: 0;
47                                 clip_to: "clip";
48                                 description {
49                                         state: "default" 0.0;
50                                         align: 0.5 0.5;
51                                         rel1.relative: 0 0;
52                                         rel2.relative: 1 1;
53                                 }
54                         }
55                         part {
56                                 name: "elm.swallow.event.0";
57                                 type: SWALLOW;
58                                 mouse_events: 0;
59                                 repeat_events: 0;
60                                 description {
61                                         state: "default" 0.0;
62                                         align: 0.5 0.5;
63                                 }
64                         }
65                 }
66                 programs {
67                         program {
68                                 name: "active";
69                                 signal: "elm,state,active";
70                                 source: "elm";
71                                 action: STATE_SET "active" 0.0;
72                                 transition: DECELERATE 0.5;
73                                 target: "clip";
74                         }
75                         program {
76                                 name: "inactive";
77                                 signal: "elm,state,inactive";
78                                 source: "elm";
79                                 action: STATE_SET "default" 0.0;
80                                 transition: DECELERATE 0.5;
81                                 target: "clip";
82                         }
83                 }
84         }
85
86         group {
87                 name: "elm/index/item/vertical/lockscreen/index";
88                 alias: "elm/index/item_odd/vertical/lockscreen/index";
89                 alias: "elm/index/item/horizontal/lockscreen/index";
90                 alias: "elm/index/item_odd/horizontal/lockscreen/index";
91                 images {
92                         image: "page indicator.png" COMP;
93                         image: "page indicator_focus.png" COMP;
94                 }
95                 parts {
96                         part {
97                                 name:"bg";
98                                 type: RECT;
99                                 scale: 1;
100                                 description {
101                                         state: "default" 0.0;
102                                         min: INDEX_PAGECONTROL_IND_INC;
103                                         max: INDEX_PAGECONTROL_IND_INC;
104                                         visible: 0;
105                                         align: 0.5 0.5;
106                                 }
107                         }
108                         part {
109                                 name: "indicator1";
110                                 type: IMAGE;
111                                 mouse_events: 0;
112                                 scale: 1;
113                                 description {
114                                         state: "default" 0.0;
115                                         align: 0.5 0.5;
116                                         fixed: 1 1;
117                                         rel1.to: "bg";
118                                         rel2.to: "bg";
119                                         min: INDEX_PAGECONTROL_IND_MIN_INC;
120                                         max: INDEX_PAGECONTROL_IND_MIN_INC;
121                                         image.normal: "page indicator.png";
122                                 }
123                                 description {
124                                         state: "active" 0.0;
125                                         inherit: "default" 0.0;
126                                         visible: 0;
127                                 }
128                         }
129                         part {
130                                 name: "indicator2";
131                                 type: IMAGE;
132                                 mouse_events: 0;
133                                 scale: 1;
134                                 description {
135                                         state: "default" 0.0;
136                                         align: 0.5 0.5;
137                                         fixed: 1 1;
138                                         min: INDEX_PAGECONTROL_IND_MIN_INC;
139                                         max: INDEX_PAGECONTROL_IND_MIN_INC;
140                                         image.normal: "page indicator_focus.png";
141                                         visible: 0;
142                                 }
143                                 description {
144                                         state: "active" 0.0;
145                                         inherit: "default" 0.0;
146                                         min: INDEX_PAGECONTROL_IND_INC;
147                                         max: INDEX_PAGECONTROL_IND_INC;
148                                         visible: 1;
149                                 }
150                         }
151                         part {
152                                 name: "elm.text";
153                                 type: TEXT;
154                                 mouse_events: 0;
155                                 description {
156                                         state: "default" 0.0;
157                                         fixed: 1 1;
158                                         color: INDEX_PAGECONTROL_FONT_COLOR_INC 0;
159                                         align: 0.5 0.5;
160                                         text {
161                                                 font: "TIZEN:style=Bold";
162                                                 size: INDEX_PAGECONTROL_FONT_SIZE_INC;
163                                                 min: 0 1;
164                                                 //FIXME:values should be 0.5 0.5 when fonts are aligned correctly.
165                                                 align: 0.53 0.56;
166                                         }
167                                         rel1 { to: "indicator2"; }
168                                         rel2 { to: "indicator2"; }
169                                 }
170                                 description {
171                                         state: "active" 0.0;
172                                         inherit: "default" 0.0;
173                                         color: INDEX_PAGECONTROL_FONT_COLOR_INC 255;
174                                 }
175                         }
176                 }
177                 programs {
178                         program {
179                                 name: "active";
180                                 signal: "elm,state,active";
181                                 source: "elm";
182                                 action: STATE_SET "active" 0.0;
183                                 target: "indicator1";
184                                 target: "indicator2";
185                                 target: "elm.text";
186                                 transition: LINEAR 0.2;
187                         }
188                         program {
189                                 name: "inactive";
190                                 signal: "elm,state,inactive";
191                                 source: "elm";
192                                 action: STATE_SET "default" 0.0;
193                                 target: "indicator1";
194                                 target: "indicator2";
195                                 target: "elm.text";
196                                 transition: LINEAR 0.2;
197                         }
198                 }
199         }
200 }