tizen 2.4 release
[apps/home/starter.git] / lock_pwd / res / edje / lock_pwd_control_panel.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
18         styles {
19                 style {
20                         name: "btn_text_style";
21                         base: "font=Tizen:style=Regular color=#FFFFFF font_size=32 wrap=none align=center";
22                 }
23         }
24
25         group {
26                 name: "lock-control-panel";
27                 images {
28                         image: "event_close_bg.#.png" COMP;
29                 }
30                 parts {
31                         part {
32                                 name: "bg";
33                                 type: SPACER;
34                                 description {
35                                         state: "default" 0.0;
36                                 }
37                         }
38                         part {
39                                 name: "padding.top";
40                                 type: SPACER;
41                                 description {
42                                         state: "default" 0.0;
43                                         rel1 { relative: 0.0 0.0; to: "bg"; }
44                                         rel2 { relative: 1.0 0.0; to: "bg"; }
45                                 }
46                         }
47                         part {
48                                 name: "padding.left";
49                                 type: SPACER;
50                                 description {
51                                         state: "default" 0.0;
52                                         rel1 { relative: 0.0 0.0; to: "bg"; }
53                                         rel2 { relative: 38/WIN_WIDTH 1.0; to: "bg"; }
54                                 }
55                         }
56                         part {
57                                 name: "padding.right";
58                                 type: SPACER;
59                                 description {
60                                         state: "default" 0.0;
61                                         rel1 { relative: (WIN_WIDTH-50)/WIN_WIDTH 0.0; to: "bg"; }
62                                         rel2 { relative: 1.0 1.0; to: "bg"; }
63                                 }
64                         }
65                         part {
66                                 name: "padding.bottom";
67                                 type: SPACER;
68                                 description {
69                                         state: "default" 0.0;
70                                         rel1 { relative: 0.0 (CONTROL_AREA_HEIGHT-42)/CONTROL_AREA_HEIGHT; to: "bg"; }
71                                         rel2 { relative: 1.0 1.0; to: "bg"; }
72                                 }
73                         }
74
75                         /* Return to Call*/
76                         part {
77                                 name: "sw.btn.return_to_call";
78                                 type: SWALLOW;
79                                 scale: 1;
80                                 description {
81                                         state: "default" 0.0;
82                                         align: 0.0 1.0;
83                                         min: 1 46;
84                                         rel1 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.btn"; }
85                                         rel2 { relative: 0.0 0.0; to_x: "btn.cancel"; to_y: "padding.btn"; }
86                                 }
87                         }
88
89                         part {
90                                 name: "padding.btn";
91                                 type: SPACER;
92                                 scale: 1;
93                                 description {
94                                         state: "default" 0.0;
95                                         align: 0.0 1.0;
96                                         min: WIN_WIDTH 16;
97                                         max: WIN_WIDTH 16;
98                                         rel1 { relative: 0.0 0.0; to_x: "bg"; to_y: "sw.btn.plmn"; }
99                                         rel2 { relative: 1.0 0.0; to_x: "bg"; to_y: "sw.btn.plmn"; }
100                                 }
101                         }
102
103                         /* PLMN-SPN */
104                         part {
105                                 name: "sw.btn.plmn";
106                                 type: SWALLOW;
107                                 scale: 1;
108                                 description {
109                                         state: "default" 0.0;
110                                         align: 0.0 1.0;
111                                         min: 1 46;
112                                         rel1 { relative: 1.0 0.0; to_x: "padding.left"; to_y: "padding.bottom"; }
113                                         rel2 { relative: 0.0 0.0; to_x: "btn.cancel"; to_y: "padding.bottom"; }
114                                 }
115                         }
116
117                         /* Cancel */
118                         part {
119                                 name: "rect.cancel.btn";
120                                 type: SPACER;
121                                 description {
122                                         state: "default" 0.0;
123                                         align: 1.0 1.0;
124                                         rel1 { to: "txt.cancel"; }
125                                         rel2 { to: "txt.cancel"; }
126                                 }
127                         }
128                         part {
129                                 name: "txt.cancel";
130                                 type: TEXTBLOCK;
131                                 scale: 1;
132                                 repeat_events: 1;
133                                 description {
134                                         state: "default" 0.0;
135                                         align: 1.0 1.0;
136                                         rel1 { relative: 0.0 0.0; to_x: "padding.right"; to_y: "padding.bottom"; }
137                                         rel2 { relative: 0.0 0.0; to_x: "padding.right"; to_y: "padding.bottom"; }
138                                         text {
139                                                 style: "btn_text_style";
140                                                 min: 1 1;
141                                                 ellipsis: -1;
142                                                 align: 0.5 0.5;
143                                                 text: "CANCEL";
144                                         }
145                                 }
146                         }
147                         part {
148                                 name: "btn.cancel";
149                                 type: IMAGE;
150                                 description {
151                                         state: "default" 0.0;
152                                         align: 1.0 0.0;
153                                         rel1 { to: "txt.cancel"; offset: -10 0; }
154                                         rel2 { to: "txt.cancel"; offset: 10 0; }
155                                         image {
156                                                 normal: "event_close_bg.#.png";
157                                         }
158                                         color: 100 100 100 100;
159                                 }
160                                 description {
161                                         state: "press" 0.0;
162                                         inherit: "default" 0.0;
163                                         color: 50 50 50 50;
164                                 }
165                                 description {
166                                         state: "show" 0.0;
167                                         inherit: "default" 0.0;
168                                         color: 178 178 178 178;
169                                 }
170                         }
171                         part {
172                                 name: "btn.cancel.block";
173                                 type: RECT;
174                                 mouse_events: 1;
175                                 repeat_events: 0;
176                                 description {
177                                         state: "default" 0.0;
178                                         rel1 { to: "btn.cancel"; }
179                                         rel2 { to: "btn.cancel"; }
180                                         color: 0 0 0 0;
181                                         visible: 0;
182                                 }
183                                 description {
184                                         state: "show" 0.0;
185                                         inherit: "default" 0.0;
186                                         visible: 1;
187                                 }
188                         }
189                 }
190                 programs {
191                         program {
192                                 signal: "btn,cancel,enable";
193                                 source: "prog";
194                                 action: STATE_SET "default" 0.0;
195                                 target: "btn.cancel.block";
196                                 target: "btn.cancel";
197                         }
198                         program {
199                                 signal: "btn,cancel,disable";
200                                 source: "prog";
201                                 action: STATE_SET "show" 0.0;
202                                 target: "btn.cancel.block";
203                                 target: "btn.cancel";
204                         }
205                         program {
206                                 name: "btn,cancel,press";
207                                 signal: "mouse,down,1";
208                                 source: "btn.cancel";
209                                 action: STATE_SET "press" 0.0;
210                                 target: "btn.cancel";
211                         }
212                         program {
213                                 name: "btn,cancel,release";
214                                 signal: "mouse,up,1";
215                                 source: "btn.cancel";
216                                 action: STATE_SET "default" 0.0;
217                                 target: "btn.cancel";
218                         }
219                         program {
220                                 name: "btn,cancel,clicked";
221                                 signal: "mouse,clicked,1";
222                                 source: "btn.cancel";
223                                 action: SIGNAL_EMIT "btn,cancel,clicked" "btn.cancel";
224                         }
225                 }
226         }
227
228         group {
229                 name: "btn-return-to-call";
230                 images {
231                         image: "ls_icon_call.png" COMP;
232                 }
233                 parts {
234                         part {
235                                 name: "bg";
236                                 type: SPACER;
237                                 description {
238                                         state: "default" 0.0;
239                                 }
240                         }
241                         part {
242                                 name: "img.call.icon";
243                                 type: IMAGE;
244                                 scale: 1;
245                                 description {
246                                         state: "default" 0.0;
247                                         align: 0.0 0.0;
248                                         min: RETURN_TO_CALL_ICON_SIZE RETURN_TO_CALL_ICON_SIZE;
249                                         max: RETURN_TO_CALL_ICON_SIZE RETURN_TO_CALL_ICON_SIZE;
250                                         rel1 { relative: 0.0 0.0; to: "bg"; }
251                                         rel2 { relative: 0.0 0.0; to: "bg"; }
252                                         image {
253                                                 normal: "ls_icon_call.png";
254                                         }
255                                 }
256                         }
257                         part {
258                                 name: "padding.icon";
259                                 type: SPACER;
260                                 scale: 1;
261                                 description {
262                                         state: "default" 0.0;
263                                         align: 0.0 0.0;
264                                         min: 10 RETURN_TO_CALL_HEIGHT;
265                                         max: 10 RETURN_TO_CALL_HEIGHT;
266                                         rel1 { relative: 1.0 0.0; to_x: "img.call.icon"; to_y: "bg"; }
267                                         rel2 { relative: 1.0 1.0; to_x: "img.call.icon"; to_y: "bg"; }
268                                 }
269                         }
270                         part {
271                                 name: "txt.return_to_call";
272                                 type: TEXTBLOCK;
273                                 scale: 1;
274                                 description {
275                                         state: "default" 0.0;
276                                         align: 0.0 0.0;
277                                         rel1 { relative: 1.0 0.0; to_x: "padding.icon"; to_y: "bg"; }
278                                         rel2 { relative: 1.0 1.0; to_x: "padding.icon"; to_y: "bg"; }
279                                         text {
280                                                 style: "btn_text_style";
281                                                 min: 1 1;
282                                                 ellipsis: -1;
283                                                 align: 0.0 0.5;
284                                                 text: "Return to call";
285                                         }
286                                 }
287                         }
288                         part {
289                                 name: "btn.return_to_call";
290                                 type: RECT;
291                                 mouse_events: 1;
292                                 scale: 1;
293                                 description {
294                                         state: "default" 0.0;
295                                         align: 0.0 0.0;
296                                         color: 0 0 0 0;
297                                         rel1 { relative: 0.0 0.0; to_x: "img.call.icon"; to_y: "bg"; }
298                                         rel2 { relative: 1.0 1.0; to_x: "txt.return_to_call"; to_y: "bg"; }
299                                 }
300                                 description {
301                                         state: "press" 0.0;
302                                         inherit: "default" 0.0;
303                                         color: 50 50 50 50;
304                                 }
305                         }
306                 }
307                 programs {
308                         program {
309                                 name: "btn,return_to_call,press";
310                                 signal: "mouse,down,1";
311                                 source: "btn.return_to_call";
312                                 action: STATE_SET "press" 0.0;
313                                 target: "btn.return_to_call";
314                         }
315                         program {
316                                 name: "btn,return_to_call,release";
317                                 signal: "mouse,up,1";
318                                 source: "btn.return_to_call";
319                                 action: STATE_SET "default" 0.0;
320                                 target: "btn.return_to_call";
321                         }
322                         program {
323                                 name: "btn,return_to_call,clicked";
324                                 signal: "mouse,clicked,1";
325                                 source: "btn.return_to_call";
326                                 action: SIGNAL_EMIT "btn,return_to_call,clicked" "btn.return_to_call";
327                         }
328                 }
329         }