2 * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #define WINDOW_HEIGHT 960
18 #define WINDOW_WIDTH 540
19 #define INDICATOR_SIZE 38
22 #define NUMBER_KEYPAD_PANEL_WIDTH WINDOW_WIDTH
23 #define NUMBER_KEYPAD_PANEL_HEIGHT WINDOW_HEIGHT
24 #define NUMBER_KEYPAD_BUTTON_WIDTH 112
25 #define NUMBER_KEYPAD_BUTTON_HEIGHT 112
26 #define NUMBER_KEYPAD_BUTTON_PAD_X 68
27 #define NUMBER_KEYPAD_BUTTON_PAD_Y 10
29 #define NUMBER_KEYPAD_REL_W(x) ((x)/NUMBER_KEYPAD_PANEL_WIDTH)
30 #define NUMBER_KEYPAD_REL_H(y) ((y)/NUMBER_KEYPAD_PANEL_HEIGHT)
31 #define NUMBER_KEYPAD_BUTTON_REL_W(x) ((x)/NUMBER_KEYPAD_BUTTON_WIDTH)
32 #define NUMBER_KEYPAD_BUTTON_REL_H(y) ((y)/NUMBER_KEYPAD_BUTTON_HEIGHT)
34 #define PASS_KEY_NUM_SIZE 54
35 #define PASS_KEY_SUB_SIZE 24
40 /* simple password - button pressed color */
41 #define LOCK_TEXT_COLOR 245 245 245 255
42 #define LOCK_TEXT_COLOR2 0 0 0 0
43 #define LOCK_TEXT_COLOR3 0 0 0 178
44 #define BUTTON_PRESSED_COLOR 179 179 179 179
46 /* complex password */
47 #define LINE_COLOR "AO021"
48 #define LINE_SHADOW_COLOR "AO017"
49 #define INFO_FONT_COLOR "ATO033"
50 #define PASS_FONT_COLOR "ATO035"
51 #define PASS_FONT_SIZE 43
52 #define INFO_FONT_SIZE 30
61 #include "lock_pwd_simple.edc"
62 #include "lock_pwd_complex.edc"
72 rel1 { relative: 0.0 0.0; }
73 rel2 { relative: 1.0 1.0; }
100 name: "lock-control-panel";
106 state: "default" 0.0;
113 state: "default" 0.0;
114 rel1 { relative: 0.0 0.0; to: "bg"; }
115 rel2 { relative: 1.0 0.0; to: "bg"; }
119 name: "padding.left";
122 state: "default" 0.0;
123 rel1 { relative: 0.0 0.0; to: "bg"; }
124 rel2 { relative: 40/WINDOW_WIDTH 1.0; to: "bg"; }
128 name: "padding.right";
131 state: "default" 0.0;
132 rel1 { relative: (WINDOW_WIDTH - 40)/WINDOW_WIDTH 0.0; to: "bg"; }
133 rel2 { relative: 1.0 1.0; to: "bg"; }
137 name: "padding.bottom";
140 state: "default" 0.0;
141 rel1 { relative: 0.0 65/110; to: "bg"; }
142 rel2 { relative: 1.0 1.0; to: "bg"; }
145 state: "button2_visible" 0.0;
146 rel1 { relative: 0.0 84/110; to: "bg"; }
147 rel2 { relative: 1.0 1.0; to: "bg"; }
157 state: "default" 0.0;
159 rel1 { to: "button1"; offset: -3 0; }
160 rel2 { to: "button1"; offset: 3 0; }
166 state: "pressed" 0.0;
168 rel1 { to: "button1"; offset: -3 0; }
169 rel2 { to: "button1"; offset: 3 0; }
182 state: "default" 0.0;
187 to_x: "padding.left";
192 to_x: "padding.left";
197 state: "button2_visible" 0.0;
202 to_x: "padding.left";
207 to_x: "padding.left";
219 state: "default" 0.0;
223 state: "pressed" 0.0;
224 rel1 { to: "button2"; offset: -3 0; }
225 rel2 { to: "button2"; offset: 3 0; }
231 state: "button2_visible" 0.0;
232 rel1 { to: "button2"; }
233 rel2 { to: "button2"; }
246 state: "default" 0.0;
250 state: "button2_visible" 0.0;
257 to_x: "padding.left";
258 to_y: "padding.bottom";
262 to_x: "padding.left";
263 to_y: "padding.bottom";
269 name: "button3.clipper";
273 state: "default" 0.0;
274 rel1 { to: "button3"; }
275 rel2 { to: "button3"; }
276 color: 255 255 255 255;
281 inherit: "default" 0.0;
282 color: 178 178 178 178;
289 clip_to: "button3.clipper";
291 state: "default" 0.0;
296 to_x: "padding.right";
301 to_x: "padding.right";
307 name: "button3.block";
312 state: "default" 0.0;
313 rel1 { to: "button3"; }
314 rel2 { to: "button3"; }
320 inherit: "default" 0.0;
327 name: "show,button2";
328 signal: "show,button2";
330 action: STATE_SET "button2_visible" 0.0;
331 target: "padding.bottom";
334 target: "button2,bg";
337 name: "hide,button2";
338 signal: "hide,button2";
340 action: STATE_SET "default" 0.0;
341 target: "padding.bottom";
344 target: "button2,bg";
347 name: "button1,clicked";
348 signal: "mouse,clicked,1";
349 source: "button1,bg";
350 action: SIGNAL_EMIT "emg_button" "clicked";
353 name: "button2,clicked";
354 signal: "mouse,clicked,1";
355 source: "button2,bg";
356 action: SIGNAL_EMIT "account_button" "clicked";
359 name: "button1,down";
360 signal: "mouse,down,1";
361 source: "button1,bg";
362 action: STATE_SET "pressed" 0.0;
363 target: "button1,bg";
367 signal: "mouse,up,1";
368 source: "button1,bg";
369 action: STATE_SET "default" 0.0;
370 target: "button1,bg";
373 name: "button2,down";
374 signal: "mouse,down,1";
375 source: "button2,bg";
376 action: STATE_SET "pressed" 0.0;
377 target: "button2,bg";
381 signal: "mouse,up,1";
382 source: "button2,bg";
383 action: STATE_SET "button2_visible" 0.0;
384 target: "button2,bg";
387 signal: "button3,enable";
389 action: STATE_SET "default" 0.0;
390 target: "button3.clipper";
391 target: "button3.block";
394 signal: "button3,disable";
396 action: STATE_SET "show" 0.0;
397 target: "button3.clipper";
398 target: "button3.block";