modify transition speed
[profile/tv/apps/native/air_home.git] / edje / view / user.edc
1 /*
2  * Copyright (c) 2015 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 #include "../../include/defs.h"
18 group {
19         name, GRP_USER;
20         parts {
21                 part {
22                         name, "pad.text";
23                         type, RECT;
24                         scale, 1;
25                         description {
26                                 state, "default" 0.0;
27                                 rel1.relative, 0.5 1.0;
28                                 rel2.relative, 0.5 1.0;
29                                 min, 0 388;
30                                 align, 0.5 1.0;
31                                 fixed, 1 1;
32                                 visible, 0;
33                         }
34                 }
35                 part {
36                         name, "text";
37                         type, TEXT;
38                         scale, 1;
39                         description {
40                                 state, "default" 0.0;
41                                 rel1.to, "pad.text";
42                                 rel2 {
43                                         to, "pad.text";
44                                         relative, 0.0 0.0;
45                                 }
46                                 min, 200 34;
47                                 fixed, 1 1;
48                                 align, 0.5 1.0;
49                                 text {
50                                         text, "Switch User";
51                                         font, "TizenSans";
52                                         size, 34;
53                                 }
54                                 color, 0 0 0 0;
55                                 color2, 0 0 0 255;
56                         }
57                         description {
58                                 state, "show" 0.0;
59                                 inherit, "default" 0.0;
60                                 color, 255 255 255 178;
61                         }
62                 }
63                 part {
64                         name, "pad.list";
65                         type, RECT;
66                         scale, 1;
67                         description {
68                                 state, "default" 0.0;
69                                 rel1 {
70                                         to, "text";
71                                         relative, 0.5 1.0;
72                                 }
73                                 rel2 {
74                                         to, "text";
75                                         relative, 0.5 1.0;
76                                 }
77                                 min, 0 42;
78                                 align, 0.5 0.0;
79                                 fixed, 1 1;
80                                 visible, 0;
81                         }
82                 }
83                 part {
84                         name, "clip";
85                         type, RECT;
86                         scale, 1;
87                         description {
88                                 state, "default" 0.0;
89                                 color, 0 0 0 0;
90                         }
91                         description {
92                                 state, "show" 0.0;
93                                 inherit, "default" 0.0;
94                                 color, 255 255 255 255;
95                         }
96                 }
97                 part {
98                         name, PART_USER_BAR;
99                         type, SWALLOW;
100                         scale, 1;
101                         clip_to, "clip";
102                         description {
103                                 state, "default" 0.0;
104                                 rel1 {
105                                         to, "pad.list";
106                                         relative, 1.0 1.0;
107                                 }
108                                 rel2 {
109                                         to, "pad.list";
110                                         relative, 1.0 1.0;
111                                 }
112                                 min, 0 228;
113                                 align, 0.5 0.0;
114                                 fixed, 1 1;
115                         }
116                         description {
117                                 state, "show" 0.0;
118                                 inherit, "default" 0.0;
119                                 min, 1422 228;
120                         }
121                 }
122         }
123         programs {
124                 program {
125                         name, "sig,show";
126                         signal, SIG_SHOW;
127                         source, SRC_PROG;
128                         action, STATE_SET "show" 0.0;
129                         transition, TRANSITION_DECEL;
130                         target, "clip";
131                         target, PART_USER_BAR;
132                         target, "text";
133                 }
134                 program {
135                         name, "sig,hide";
136                         signal, SIG_HIDE;
137                         source, SRC_PROG;
138                         action, STATE_SET "default" 0.0;
139                         transition, TRANSITION_DECEL;
140                         target, "clip";
141                         target, PART_USER_BAR;
142                         target, "text";
143                         after, "sig,hide,done";
144                 }
145                 program {
146                         name, "sig,hide,done";
147                         action, SIGNAL_EMIT SIG_HIDE_DONE SRC_EDJE;
148                 }
149         }
150 }
151
152 group {
153         name, GRP_USER_ITEM;
154         inherit, GRP_BAR_ITEM;
155         data.item, TITLE_WIDTH "130";
156         images {
157                 image, "btn_navigation_down.png" COMP;
158         }
159         parts {
160                 part {
161                         name, "bg";
162                         type, RECT;
163                         scale, 1;
164                         description {
165                                 state, "default" 0.0;
166                                 min, 158 228;
167                                 visible, 0;
168                         }
169                 }
170                 part {
171                         name, "pad.icon";
172                         type, RECT;
173                         scale, 1;
174                         description {
175                                 state, "default" 0.0;
176                                 min, 0 26;
177                                 rel1.relative, 0.5 0.0;
178                                 rel2.relative, 0.5 0.0;
179                                 align, 0.5 0.0;
180                                 fixed, 1 1;
181                                 visible, 0;
182                         }
183                 }
184                 part {
185                         name, PART_BAR_ITEM_ICON;
186                         type, SWALLOW;
187                         scale, 1;
188                         description {
189                                 state, "default" 0.0;
190                                 min, 70 70;
191                                 rel1 {
192                                         to, "pad.icon";
193                                         relative, 1.0 1.0;
194                                 }
195                                 rel2 {
196                                         to, "pad.icon";
197                                         relative, 1.0 1.0;
198                                 }
199                                 align, 0.5 0.0;
200                                 fixed, 1 1;
201                         }
202                 }
203                 part {
204                         name, "pad.text";
205                         type, RECT;
206                         scale, 1;
207                         description {
208                                 state, "default" 0.0;
209                                 min, 0 12;
210                                 rel1 {
211                                         to, PART_BAR_ITEM_ICON;
212                                         relative, 0.5 1.0;
213                                 }
214                                 rel2 {
215                                         to, PART_BAR_ITEM_ICON;
216                                         relative, 0.5 1.0;
217                                 }
218                                 align, 0.5 0.0;
219                                 fixed, 1 1;
220                                 visible, 0;
221                         }
222                 }
223                 part {
224                         name, PART_BAR_ITEM_TITLE;
225                         type, SWALLOW;
226                         scale, 1;
227                         description {
228                                 state, "default" 0.0;
229                                 rel1 {
230                                         to, "pad.text";
231                                         relative, 1.0 1.0;
232                                 }
233                                 rel2 {
234                                         to, "pad.text";
235                                         relative, 1.0 1.0;
236                                 }
237                                 align, 0.5 0.0;
238                                 fixed, 1 1;
239                                 min, 130 22;
240                         }
241                 }
242                 part {
243                         name, PART_BAR_ITEM_TITLE_FOCUS;
244                         type, SWALLOW;
245                         scale, 1;
246                         clip_to, "clip";
247                         description {
248                                 state, "default" 0.0;
249                                 rel1.to, PART_BAR_ITEM_TITLE;
250                                 rel2.to, PART_BAR_ITEM_TITLE;
251                         }
252                 }
253                 part {
254                         name, "pad.lock";
255                         type, RECT;
256                         scale, 1;
257                         description {
258                                 state, "default" 0.0;
259                                 min, 16 18;
260                                 rel1.relative, 1.0 0.0;
261                                 rel2.relative, 1.0 0.0;
262                                 align, 1.0 0.0;
263                                 fixed, 1 1;
264                                 visible, 0;
265                         }
266                 }
267                 part {
268                         name, PART_BAR_ITEM_LOCK;
269                         type, SWALLOW;
270                         scale, 1;
271                         description {
272                                 state, "default" 0.0;
273                                 min, 30 30;
274                                 rel1 {
275                                         to, "pad.lock";
276                                         relative, 0.0 1.0;
277                                 }
278                                 rel2 {
279                                         to, "pad.lock";
280                                         relative, 0.0 1.0;
281                                 }
282                                 align, 1.0 0.0;
283                                 fixed, 1 1;
284                         }
285                 }
286                 part {
287                         name, PART_BAR_ITEM_LOCK_FOCUS;
288                         type, SWALLOW;
289                         scale, 1;
290                         clip_to, "clip";
291                         description {
292                                 state, "default" 0.0;
293                                 rel1.to, PART_BAR_ITEM_LOCK;
294                                 rel2.to, PART_BAR_ITEM_LOCK;
295                         }
296                 }
297                 part {
298                         name, "text";
299                         type, TEXT;
300                         scale, 1;
301                         description {
302                                 state, "default" 0.0;
303                                 min, 158 50;
304                                 rel1 {
305                                         to, "pad";
306                                         relative, 0.5 1.0;
307                                 }
308                                 rel2 {
309                                         to, "pad";
310                                         relative, 0.5 1.0;
311                                 }
312                                 align, 0.5 0.0;
313                                 fixed, 1 1;
314                                 text {
315                                         size, 26;
316                                         font, "TizenSans";
317                                         text, "Edit";
318                                 }
319                                 color, 255 255 255 178;
320                                 visible, 0;
321                         }
322                         description {
323                                 state, "focus";
324                                 inherit, "default" 0.0;
325                                 visible, 1;
326                         }
327                 }
328                 part {
329                         name, "arrow";
330                         type, IMAGE;
331                         scale, 1;
332                         description {
333                                 state, "default" 0.0;
334                                 min, 86 30;
335                                 rel1.relative, 0.5 1.0;
336                                 rel2.relative, 0.5 1.0;
337                                 image.normal, "btn_navigation_down.png";
338                                 align, 0.5 1.0;
339                                 fixed, 1 1;
340                                 visible, 0;
341                         }
342                         description {
343                                 state, "focus";
344                                 inherit, "default" 0.0;
345                                 visible, 1;
346                         }
347                 }
348         }
349         programs {
350                 program {
351                         name, "sig,show,arrow";
352                         signal, SIG_FOCUS;
353                         source, SRC_PROG;
354                         action, STATE_SET "focus";
355                         target, "text";
356                         target, "arrow";
357                 }
358                 program {
359                         name, "sig,hide,arrow";
360                         signal, SIG_UNFOCUS;
361                         source, SRC_PROG;
362                         action, STATE_SET "default";
363                         target, "text";
364                         target, "arrow";
365                 }
366                 program {
367                         name, "arrow,clicked";
368                         source, "arrow";
369                         signal, "mouse,clicked,1";
370                         action, SIGNAL_EMIT SIG_CLICK_ARROW SRC_EDJE;
371                 }
372         }
373 }