tizen 2.4 release
[apps/home/starter.git] / lock_pwd / res / edje / lock_btn.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: "unlock_text";
21                 base: "font=Tizen:style=Regular color=#FFFFFFFF color_class=ATO017 font_size=10 text_class=ATO017 style=shadow shadow_color=#000000bf align: 0.5 0.0 wrap=word";
22         }
23 }
24
25 #define TEXT_BUTTON_CLASS "ATO007"
26
27
28 collections {
29         base_scale: 2.6;
30         group {
31                 name: "elm/button/base/emg_cal_btn";
32                 parts {
33                         part {
34                                 name: "elm.swallow.content";
35                                 type: RECT;
36                                 mouse_events: 1;
37                                 repeat_events: 1;
38                                 description {
39                                         state: "default" 0.0;
40                                         color: 0 0 0 0;
41                                         visible: 1;
42                                         rel1.relative: 0.0 0.0;
43                                         rel2.relative: 1.0 1.0;
44                                         align: 0.0 0.0;
45                                 }
46                         }
47                         part {
48                                 name: "elm.text";
49                                 type: TEXT;
50                                 effect: "SHADOW";
51                                 mouse_events: 1;
52                                 repeat_events: 1;
53                                 description {
54                                         state: "default" 0.0;
55                                         fixed: 1 1;
56                                         color: 255 255 255 255;
57                                         visible: 1;
58                                         rel1.relative: 0.0 0.0;
59                                         rel2.relative: 1.0 1.0;
60                                         text {
61                                                 align: 0.0 0.5;
62                                                 size: 28;
63                                                 text_class: TEXT_BUTTON_CLASS;
64                                         }
65                                 }
66                                 description {
67                                         state: "pressed" 0.0;
68                                         inherit: "default" 0.0;
69                                         color: 255 255 255 120;
70                                 }
71                         }
72                 }
73                 programs {
74                         program {
75                                 name: "mouse,clicked";
76                                 signal: "mouse,clicked,1";
77                                 source: "elm.swallow.content";
78                                 action: SIGNAL_EMIT "elm,action,click" "";
79                         }
80                         program {
81                                 name: "button,pressed";
82                                 signal: "mouse,down,1";
83                                 action: STATE_SET "pressed" 0.0;
84                                 source: "elm.swallow.content";
85                                 target: "elm.text";
86                         }
87                         program {
88                                 name: "button,unpressed";
89                                 signal: "mouse,up,1";
90                                 action: STATE_SET "default" 0.0;
91                                 source: "elm.swallow.content";
92                                 target: "elm.text";
93                         }
94                 }
95         }
96
97         group {
98                 name: "elm/button/base/tizen_account_btn";
99                 parts {
100                         part {
101                                 name: "elm.swallow.content";
102                                 type: RECT;
103                                 mouse_events: 1;
104                                 repeat_events: 1;
105                                 description {
106                                         state: "default" 0.0;
107                                         color: 0 0 0 0;
108                                         visible: 1;
109                                         rel1.relative: 0.0 0.0;
110                                         rel2.relative: 1.0 1.0;
111                                         align: 0.0 0.0;
112                                 }
113                         }
114                         part {
115                                 name: "elm.text";
116                                 type: TEXTBLOCK;
117                                 effect: "SHADOW";
118                                 mouse_events: 1;
119                                 repeat_events: 1;
120                                 description {
121                                         state: "default" 0.0;
122                                         fixed: 1 1;
123                                         color: 255 255 255 255;
124                                         visible: 1;
125                                         rel1.relative: 0.0 0.0;
126                                         rel2.relative: 1.0 1.0;
127                                         text {
128                                                 style: "unlock_text";
129                                         }
130                                 }
131                                 description {
132                                         state: "pressed" 0.0;
133                                         inherit: "default" 0.0;
134                                         color: 255 255 255 120;
135                                 }
136                         }
137                 }
138                 programs {
139                         program {
140                                 name: "mouse,clicked";
141                                 signal: "mouse,clicked,1";
142                                 source: "elm.swallow.content";
143                                 action: SIGNAL_EMIT "elm,action,click" "";
144                         }
145                         program {
146                                 name: "button,pressed";
147                                 signal: "mouse,down,1";
148                                 action: STATE_SET "pressed" 0.0;
149                                 source: "elm.swallow.content";
150                                 target: "elm.text";
151                         }
152                         program {
153                                 name: "button,unpressed";
154                                 signal: "mouse,up,1";
155                                 action: STATE_SET "default" 0.0;
156                                 source: "elm.swallow.content";
157                                 target: "elm.text";
158                         }
159                 }
160         }
161
162         group {
163                 name: "elm/button/base/right_button";
164                 parts {
165                         part {
166                                 name: "elm.swallow.content";
167                                 type: RECT;
168                                 mouse_events: 1;
169                                 repeat_events: 1;
170                                 description {
171                                         state: "default" 0.0;
172                                         color: 0 0 0 0;
173                                         visible: 1;
174                                         rel1.relative: 0.0 0.0;
175                                         rel2.relative: 1.0 1.0;
176                                         align: 1.0 0.0;
177                                 }
178                         }
179                         part {
180                                 name: "effect";
181                                 type: RECT;
182                                 mouse_events: 1;
183                                 repeat_events: 1;
184                                 description {
185                                         state: "default" 0.0;
186                                         visible: 0;
187                                 }
188                                 description {
189                                         state: "pressed" 0.0;
190                                         //color_class: AO018;
191                                         visible: 1;
192                                         rel1.to: "elm.text";
193                                         rel1.offset: -3 0;
194                                         rel2.to: "elm.text";
195                                         rel2.offset: 3 0;
196                                 }
197                         }
198                         part {
199                                 name: "elm.text";
200                                 type: TEXT;
201                                 effect: "SHADOW";
202                                 mouse_events: 1;
203                                 repeat_events: 1;
204                                 description {
205                                         state: "default" 0.0;
206                                         color: 255 255 255 255;
207                                         visible: 1;
208                                         rel1.relative: 1.0 0.0;
209                                         rel2.relative: 1.0 1.0;
210                                         align: 1.0 0.5;
211                                         text {
212                                                 align: 1.0 0.5;
213                                                 size: 32;
214                                                 //text_class: "ATO007";
215                                                 min: 1 0;
216                                                 ellipsis: -1;
217                                         }
218                                 }
219                         }
220                 }
221                 programs {
222                         program {
223                                 name: "mouse,clicked";
224                                 signal: "mouse,clicked,1";
225                                 source: "elm.swallow.content";
226                                 action: SIGNAL_EMIT "elm,action,click" "";
227                         }
228                         program {
229                                 name: "button,pressed";
230                                 signal: "mouse,down,1";
231                                 action: STATE_SET "pressed" 0.0;
232                                 source: "elm.swallow.content";
233                                 target: "effect";
234                         }
235                         program {
236                                 name: "button,unpressed";
237                                 signal: "mouse,up,1";
238                                 action: STATE_SET "default" 0.0;
239                                 source: "elm.swallow.content";
240                                 target: "effect";
241                         }
242                 }
243         }
244
245         group {
246                 name: "elm/button/base/left_button";
247                 parts {
248                         part {
249                                 name: "elm.swallow.content";
250                                 type: RECT;
251                                 mouse_events: 1;
252                                 repeat_events: 1;
253                                 description {
254                                         state: "default" 0.0;
255                                         color: 0 0 0 0;
256                                         visible: 1;
257                                         rel1.relative: 0.0 0.0;
258                                         rel2.relative: 1.0 1.0;
259                                         align: 0.0 0.0;
260                                 }
261                         }
262                         part {
263                                 name: "effect";
264                                 type: RECT;
265                                 mouse_events: 1;
266                                 repeat_events: 1;
267                                 description {
268                                         state: "default" 0.0;
269                                         visible: 0;
270                                 }
271                                 description {
272                                         state: "pressed" 0.0;
273                                         color_class: AO018;
274                                         visible: 1;
275                                         rel1.to: "elm.text";
276                                         rel1.offset: -3 -3;
277                                         rel2.to: "elm.text";
278                                         rel2.offset: 3 3;
279                                 }
280                         }
281                         part {
282                                 name: "elm.text";
283                                 type: TEXT;
284                                 effect: "SHADOW";
285                                 mouse_events: 1;
286                                 repeat_events: 1;
287                                 description {
288                                         state: "default" 0.0;
289                                         fixed: 1 1;
290                                         color: 255 255 255 255;
291                                         visible: 1;
292                                         rel1.relative: 0.0 0.0;
293                                         rel2.relative: 0.0 1.0;
294                                         align: 0.0 0.5;
295                                         text {
296                                                 align: 0.0 0.5;
297                                                 size: 28;
298                                                 //text_class: "ATO007";
299                                                 min: 1 0;
300                                                 ellipsis: -1;
301                                         }
302                                 }
303                         }
304                 }
305                 programs {
306                         program {
307                                 name: "mouse,clicked";
308                                 signal: "mouse,clicked,1";
309                                 source: "elm.text";
310                                 action: SIGNAL_EMIT "elm,action,click" "";
311                         }
312                         program {
313                                 name: "button,pressed";
314                                 signal: "mouse,down,1";
315                                 action: STATE_SET "pressed" 0.0;
316                                 source: "elm.text";
317                                 target: "effect";
318                         }
319                         program {
320                                 name: "button,unpressed";
321                                 signal: "mouse,up,1";
322                                 action: STATE_SET "default" 0.0;
323                                 source: "elm.text";
324                                 target: "effect";
325                         }
326                 }
327         }
328
329         group {
330                 name: "elm/button/base/center_button";
331                 parts {
332                         part {
333                                 name: "elm.swallow.content";
334                                 type: RECT;
335                                 mouse_events: 1;
336                                 repeat_events: 1;
337                                 description {
338                                         state: "default" 0.0;
339                                         color: 0 0 0 0;
340                                         visible: 1;
341                                         rel1.relative: 0.0 0.0;
342                                         rel2.relative: 1.0 1.0;
343                                         align: 0.0 0.0;
344                                 }
345                         }
346                         part {
347                                 name: "elm.text";
348                                 type: TEXT;
349                                 effect: "SHADOW";
350                                 mouse_events: 1;
351                                 repeat_events: 1;
352                                 description {
353                                         state: "default" 0.0;
354                                         fixed: 1 1;
355                                         color: 255 255 255 255;
356                                         visible: 1;
357                                         rel1.relative: 0.0 0.0;
358                                         rel2.relative: 1.0 1.0;
359                                         text {
360                                                 align: 0.5 0.5;
361                                                 size: 28;
362                                                 //text_class: "ATO007";
363                                         }
364                                 }
365                                 description {
366                                         state: "pressed" 0.0;
367                                         inherit: "default" 0.0;
368                                         color: 255 255 255 128;
369                                 }
370                         }
371                 }
372                 programs {
373                         program {
374                                 name: "mouse,clicked";
375                                 signal: "mouse,clicked,1";
376                                 source: "elm.swallow.content";
377                                 action: SIGNAL_EMIT "elm,action,click" "";
378                         }
379                         program {
380                                 name: "button,pressed";
381                                 signal: "mouse,down,1";
382                                 action: STATE_SET "pressed" 0.0;
383                                 source: "elm.swallow.content";
384                                 target: "elm.text";
385                         }
386                         program {
387                                 name: "button,unpressed";
388                                 signal: "mouse,up,1";
389                                 action: STATE_SET "default" 0.0;
390                                 source: "elm.swallow.content";
391                                 target: "elm.text";
392                         }
393                 }
394         }
395 }