[mobile] Fix logic to launch menu-screen at 64bit binary
[apps/native/starter.git] / res / edje / mobile / lock_pwd_complex.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 styles {
18         style {
19                 name: "style_complex_title";
20                 base: "font=Tizen:style=Regular color=#ffffffff color_class=ATO033 font_size=30 wrap=mixed align=center style=shadow shadow_color=#000000bf text_class=ATO033";
21                 tag: "br" "\n";
22                 tag: "hilight" "+ color=#ffff";
23                 tag: "b" "+ color=#ffff";
24                 tag: "tab" "\t";
25         }
26 }
27
28         group {
29                 name: "lock-complex-password";
30                 parts {
31                         part {
32                                 name: "bg";
33                                 type: SPACER;
34                                 description {
35                                         state: "default" 0.0;
36                                 }
37                         }
38                         part {
39                                 name: "title";
40                                 type: TEXTBLOCK;
41                                 effect: "SHADOW";
42                                 description {
43                                         state: "default" 0.0;
44                                         rel1 { relative : NUMBER_KEYPAD_REL_W(14) NUMBER_KEYPAD_REL_H(INDICATOR_SIZE+49); to : "bg"; }
45                                         rel2 { relative : NUMBER_KEYPAD_REL_W(526) NUMBER_KEYPAD_REL_H(INDICATOR_SIZE+49+42); to : "bg"; }
46                                         color_class: "ATO033";
47                                         fixed: 1 1;
48                                         text {
49                                                 min: 0 1;
50                                                 align: 0.5 0.5;
51                                                 style: "style_complex_title";
52                                                 text : "Enter PIN";
53                                         }
54                                 }
55                                 description {
56                                         state: "show_title" 0.0;
57                                         inherit: "default" 0.0;
58                                         visible: 1;
59                                 }
60                                 description {
61                                         state: "hide_title" 0.0;
62                                         inherit: "default" 0.0;
63                                         visible: 0;
64                                 }
65                         }
66                         part {
67                                 name: "entry";
68                                 type: SWALLOW;
69                                 description {
70                                         state: "default" 0.0;
71                                         rel1 { relative : NUMBER_KEYPAD_REL_W(34) NUMBER_KEYPAD_REL_H(INDICATOR_SIZE+49+42+42+18); to : "bg"; }
72                                         rel2 { relative : NUMBER_KEYPAD_REL_W(506) NUMBER_KEYPAD_REL_H(INDICATOR_SIZE+49+42+42+18+65); to : "bg"; }
73                                 }
74                         }
75                         part {
76                                 name: "underline";
77                                 type: RECT;
78                                 scale: 1;
79                                 description {
80                                         state: "default" 0.0;
81                                         color_class: LINE_COLOR;
82                                         fixed: 1 1;
83                                         rel1 { relative: 0.0 1.0; to: "entry"; offset : 0 11; }
84                                         rel2 { relative: 1.0 1.0; to: "entry"; offset : 0 11; }
85                                         min: 0 3;
86                                         max: -1 3;
87                                 }
88                         }
89                         part {
90                                 name: "underline_shadow";
91                                 type: RECT;
92                                 scale: 1;
93                                 description {
94                                         state: "default" 0.0;
95                                         color_class: LINE_SHADOW_COLOR;
96                                         fixed: 1 1;
97                                         rel1 { relative: 0.0 0.0; to: "underline"; }
98                                         rel2 { relative: 1.0 1.0; to: "underline"; }
99                                         min: 0 1;
100                                         max: -1 1;
101                                 }
102                         }
103                         /* Bottom : changed by IME height */
104                         part {
105                                 name: "control_panel";
106                                 type: SWALLOW;
107                                 description {
108                                         state: "default" 0.0;
109                                         rel1 {
110                                                 relative: 0.0 (INDICATOR_SIZE+312+478)/NUMBER_KEYPAD_PANEL_HEIGHT; to: "bg";
111                                         }
112                                         rel2 {
113                                                 relative: 1.0 1.0; to: "bg";
114                                         }
115                                 }
116                         }
117                 }
118                 program {
119                         name: "show.title";
120                         signal: "show_title";
121                         action: STATE_SET "show_title" 0.0;
122                         source: "title";
123                         target: "title";
124                 }
125                 program {
126                         name: "hide.title";
127                         signal: "hide_title";
128                         action: STATE_SET "hide_title" 0.0;
129                         source: "title";
130                         target: "title";
131                 }
132                 script {
133                         public message(Msg_Type:type, id, ...) {
134                                 if((type == MSG_INT_SET) && (id == IME_RESIZED)) {
135                                         new h;
136                                         h = getarg(2);
137
138                                         custom_state(PART:"control_panel", "default", 0.0);
139                                         set_state_val(PART:"control_panel", STATE_REL1_OFFSET, 0, -1*h);
140                                         set_state_val(PART:"control_panel", STATE_REL2_OFFSET, 0, -1*h);
141                                         set_state(PART:"control_panel", "custom", 0.0);
142                                 }
143                                 if((type == MSG_INT_SET) && (id == IME_DOWN)) {
144                                         set_state(PART:"control_panel", "default", 0.0);
145                                 }
146                         }
147                 }
148         }