initial commit
[profile/tv/apps/native/homescreen.git] / edje / bar / cbar.edc
1 /*
2  * Copyright (c) 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 #include "../../include/defs.h"
18
19 group {
20         name, GRP_PIN;
21         data.item, DATA_PIN_HEIGHT "115";
22         images{
23                 image, "ico_pin.png" COMP;
24         }
25         parts {
26                 part {
27                         name, "area";
28                         type, RECT;
29                         scale, 1;
30                         description {
31                                 state, "default" 0.0;
32                                 min, 270 115;
33                                 color, 20 20 21 80;
34                         }
35                 }
36                 part {
37                         name, "padding.pin";
38                         type, RECT;
39                         scale, 1;
40                         description {
41                                 state, "default" 0.0;
42                                 rel2 {
43                                         to, "area";
44                                         relative, 0.0 0.0;
45                                 }
46                                 min, 40 27;
47                                 align, 0.0 0.0;
48                                 fixed, 1 1;
49                                 visible, 0;
50                         }
51                 }
52                 part {
53                         name, "img.pin";
54                         type, IMAGE;
55                         scale, 1;
56                         description {
57                                 state, "default" 0.0;
58                                 rel1 {
59                                         to, "padding.pin";
60                                         relative, 1.0 1.0;
61                                 }
62                                 rel2.to, "padding.pin";
63                                 min, 60 60;
64                                 align, 0.0 0.0;
65                                 fixed, 1 1;
66                                 image.normal, "ico_pin.png";
67                         }
68                         description {
69                                 state, "dim" 0.0;
70                                 inherit, "default" 0.0;
71                                 color, 255 255 255 50;
72                         }
73                 }
74                 part {
75                         name, "text.pin";
76                         type, TEXT;
77                         scale, 1;
78                         description {
79                                 state, "default" 0.0;
80                                 rel1 {
81                                         to, "img.pin";
82                                         relative, 1.0 0.0;
83                                 }
84                                 rel2 {
85                                         to, "img.pin";
86                                         relative, 1.0 0.0;
87                                 }
88                                 min, 130 60;
89                                 align, 0.0 0.0;
90                                 text {
91                                         font, "TizenSans:style=Bold";
92                                         size, 25;
93                                         align, 0.5 0.5;
94                                         text, "PINNED";
95                                 }
96                                 align, 0.0 0.0;
97                                 fixed, 1 1;
98                                 color, 255 255 255 255;
99                         }
100                         description {
101                                 state, "dim" 0.0;
102                                 inherit, "default" 0.0;
103                                 color, 255 255 255 20;
104                         }
105                 }
106         }
107         programs {
108                 program {
109                         name, "dim,pin";
110                         signal, SIG_DIM_ITEM;
111                         source, SRC_PROG;
112                         action, STATE_SET "dim" 0.0;
113                         transition, LINEAR 0.2;
114                         target, "img.pin";
115                         target, "text.pin";
116                 }
117
118                 program {
119                         name, "undim,pin";
120                         signal, SIG_UNDIM_ITEM;
121                         source, SRC_PROG;
122                         action, STATE_SET "default" 0.0;
123                         transition, LINEAR 0.2;
124                         target, "img.pin";
125                         target, "text.pin";
126                 }
127         }
128 }
129
130 group {
131         name, GRP_EDIT_X;
132         images {
133                 image, "ico_delete.png" COMP;
134         }
135         parts {
136                 part {
137                         name, "area";
138                         type, RECT;
139                         scale, 1;
140                         description {
141                                 state, "default" 0.0;
142                                 min, 64 150;
143                                 align, 0.0 0.0;
144                                 color, 0 0 0 216;
145                         }
146                 }
147                 part {
148                         name, "clip.bg";
149                         type, RECT;
150                         description {
151                                 state, "default" 0.0;
152                                 rel1 {
153                                         to, "area";
154                                         relative, -1.0 0.0;
155                                 }
156                                 rel2 {
157                                         to, "area";
158                                         relative, 0.0 1.0;
159                                 }
160                         }
161                         description {
162                                 state, "focus" 0.0;
163                                 inherit, "default" 0.0;
164                                 rel1 {
165                                         to, "area";
166                                         relative, 0.0 0.0;
167                                 }
168                                 rel2 {
169                                         to, "area";
170                                         relative, 1.0 1.0;
171                                 }
172                         }
173                 }
174                 part {
175                         name, PART_BG;
176                         type, SWALLOW;
177                         clip_to, "clip.bg";
178                         scale, 1;
179                         description {
180                                 state, "default" 0.0;
181                                 rel1.to, "area";
182                                 rel2.to, "area";
183                                 min, 64 150;
184                         }
185                 }
186                 part {
187                         name, "icon";
188                         type, IMAGE;
189                         scale, 1;
190                         description {
191                                 state, "default" 0.0;
192                                 rel1 {
193                                         to, "area";
194                                         relative, 0.5 0.5;
195                                 }
196                                 rel2 {
197                                         to, "area";
198                                         relative, 0.5 0.5;
199                                 }
200                                 min, 40 40;
201                                 image.normal, "ico_delete.png";
202                                 fixed, 1 1;
203                         }
204                 }
205         }
206         programs {
207                 program {
208                         name, "initial_focus_pre";
209                         signal, SIG_INITIAL_FOCUS;
210                         source, SRC_PROG;
211                         action, STATE_SET "default" 0.0;
212                         transition, LINEAR 0.35;
213                         target, "clip.bg";
214                         after, "focus";
215                 }
216                 program {
217                         name, "focus";
218                         signal, SIG_FOCUS;
219                         source, SRC_PROG;
220                         action, STATE_SET "focus" 0.0;
221                         transition, LINEAR 0.35;
222                         target, "clip.bg";
223                 }
224                 program {
225                         name, "unfocus_pre";
226                         signal, SIG_UNFOCUS;
227                         source, SRC_PROG;
228                         action, STATE_SET "default" 0.0;
229                         transition, LINEAR 0.35;
230                         target, "clip.bg";
231                 }
232                 program {
233                         name, "unfocus";
234                         action, STATE_SET "default" 0.0;
235                         transition, LINEAR 0.35;
236                         target, "clip.bg";
237                 }
238                 program {
239                         name, "hide";
240                         signal, SIG_HIDE;
241                         source, SRC_PROG;
242                         action, STATE_SET "default" 0.0;
243                         target, "clip.bg";
244                 }
245         }
246 }
247
248 group {
249         name, GRP_EDIT_ARROW_UP;
250         images {
251                 image, "ico_arrow_up.png" COMP;
252         }
253         parts {
254                 part {
255                         name, "area";
256                         type, RECT;
257                         scale, 1;
258                         description {
259                                 state, "default" 0.0;
260                                 min, 270 50;
261                                 align, 0.0 0.0;
262                                 visible, 0;
263                         }
264                 }
265                 part {
266                         name, "pad.arrow";
267                         type, RECT;
268                         scale, 1;
269                         description {
270                                 state, "default" 0.0;
271                                 rel1 {
272                                         to, "area";
273                                         relative, 0.5 0.0;
274                                 }
275                                 rel2 {
276                                         to, "area";
277                                         relative, 0.5 0.0;
278                                 }
279                                 min, 0 5;
280                                 fixed, 1 1;
281                                 align, 0.5 0.0;
282                         }
283                         description {
284                                 state, "focus" 0.0;
285                                 inherit, "default" 0.0;
286                                 min, 0 0;
287                         }
288                 }
289                 part {
290                         name, "arrow";
291                         type, IMAGE;
292                         scale, 1;
293                         description {
294                                 state, "default" 0.0;
295                                 rel1 {
296                                         to, "pad.arrow";
297                                         relative, 1.0 1.0;
298                                 }
299                                 rel2 {
300                                         to, "pad.arrow";
301                                         relative, 1.0 1.0;
302                                 }
303                                 min, 40 40;
304                                 image.normal, "ico_arrow_up.png";
305                                 fixed, 1 1;
306                                 align, 0.5 0.0;
307                         }
308                 }
309         }
310         programs {
311                 program {
312                         name, "focus,arrow,after";
313                         source, SRC_PROG;
314                         transition, DECEL 0.01;
315                         action, STATE_SET "default" 0.0;
316                         target, "pad.arrow";
317                 }
318                 program {
319                         name, "focus,arrow";
320                         signal, SIG_FOCUS_ARROW;
321                         source, SRC_PROG;
322                         transition, BOUNCE 0.6 1 6;
323                         action, STATE_SET "focus" 0.0;
324                         target, "pad.arrow";
325                         after, "focus,arrow,after";
326                 }
327         }
328 }
329
330 group {
331         name, GRP_EDIT_ARROW_DOWN;
332         images {
333                 image, "ico_arrow_down.png" COMP;
334         }
335         parts {
336                 part {
337                         name, "area";
338                         type, RECT;
339                         scale, 1;
340                         description {
341                                 state, "default" 0.0;
342                                 min, 270 50;
343                                 align, 0.0 0.0;
344                                 visible, 0;
345                         }
346                 }
347                 part {
348                         name, "pad.arrow";
349                         type, RECT;
350                         scale, 1;
351                         description {
352                                 state, "default" 0.0;
353                                 rel1 {
354                                         to, "area";
355                                         relative, 0.5 1.0;
356                                 }
357                                 rel2 {
358                                         to, "area";
359                                         relative, 0.5 1.0;
360                                 }
361                                 min, 0 5;
362                                 fixed, 1 0;
363                                 align, 0.5 1.0;
364                         }
365                         description {
366                                 state, "focus" 0.0;
367                                 inherit, "default" 0.0;
368                                 min, 0 0;
369                         }
370                 }
371                 part {
372                         name, "arrow";
373                         type, IMAGE;
374                         scale, 1;
375                         description {
376                                 state, "default" 0.0;
377                                 rel1 {
378                                         to, "pad.arrow";
379                                         relative, 0.0 0.0;
380                                 }
381                                 rel2 {
382                                         to, "pad.arrow";
383                                         relative, 0.0 0.0;
384                                 }
385                                 min, 40 40;
386                                 image.normal, "ico_arrow_down.png";
387                                 fixed, 1 1;
388                                 align, 0.5 1.0;
389                         }
390                 }
391         }
392         programs {
393                 program {
394                         name, "focus,arrow,after";
395                         source, SRC_PROG;
396                         transition, DECEL 0.03;
397                         action, STATE_SET "default" 0.0;
398                         target, "pad.arrow";
399                 }
400                 program {
401                         name, "focus,arrow";
402                         signal, SIG_FOCUS_ARROW;
403                         source, SRC_PROG;
404                         transition, BOUNCE 0.6 1 6;
405                         action, STATE_SET "focus" 0.0;
406                         target, "pad.arrow";
407                         after, "focus,arrow,after";
408                 }
409         }
410 }